2013-04-08 23:55:50 +03:00
|
|
|
{
|
2014-02-15 03:52:48 +03:00
|
|
|
"project": {
|
|
|
|
"owner": "videojs",
|
|
|
|
"name": "video.js",
|
|
|
|
"requirements": [
|
|
|
|
{
|
|
|
|
"name": "git",
|
|
|
|
"info": "http://git-scm.com",
|
|
|
|
"test": "which git"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "node.js",
|
|
|
|
"info": "http://nodejs.org",
|
|
|
|
"test": "which node"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
|
|
|
|
"test": {
|
|
|
|
"desc": "Run automated tests",
|
|
|
|
"steps": ["grunt test"]
|
|
|
|
},
|
|
|
|
|
|
|
|
"contributions": {
|
|
|
|
|
|
|
|
"release": {
|
|
|
|
"desc": "Create and publish a release",
|
|
|
|
"steps": [
|
|
|
|
{
|
|
|
|
"desc": "Ensure there's no unadded changes",
|
|
|
|
"exec": "git diff --exit-code"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Ensure there's no added changes",
|
|
|
|
"exec": "git diff --cached --exit-code"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Have the changes been merged into the release branch (stable)?",
|
|
|
|
"prompt": "confirm"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Provide the release type",
|
|
|
|
"prompt": {
|
|
|
|
"id": "type",
|
|
|
|
"message": "release type",
|
|
|
|
"default": "patch",
|
|
|
|
"type": "text"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Checkout and update the release branch",
|
|
|
|
"exec": "git checkout stable & git pull"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Run tests",
|
|
|
|
"exec": "grunt test"
|
|
|
|
},
|
2014-02-19 04:17:58 +03:00
|
|
|
{
|
|
|
|
"desc": "Update the changelog with the new release",
|
|
|
|
"exec": "grunt chg-release:<%= type %>"
|
|
|
|
},
|
2014-02-15 03:52:48 +03:00
|
|
|
{
|
|
|
|
"desc": "Bump the package version",
|
2014-02-19 00:41:56 +03:00
|
|
|
"exec": "grunt bump-only:<%= type %>"
|
2014-02-15 03:52:48 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Build the release",
|
|
|
|
"exec": "grunt dist"
|
|
|
|
},
|
|
|
|
{
|
2014-02-19 02:40:56 +03:00
|
|
|
"desc": "Add the (otherwise ignored) release files",
|
2014-02-15 03:52:48 +03:00
|
|
|
"exec": "git add dist/video-js --force"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Rebuild the docs",
|
|
|
|
"exec": "grunt vjsdocs"
|
|
|
|
},
|
2014-02-19 23:49:29 +03:00
|
|
|
{
|
|
|
|
"desc": "Update the cdn urls in the docs",
|
|
|
|
"exec": "grunt cdn-links"
|
|
|
|
},
|
2014-02-15 03:52:48 +03:00
|
|
|
{
|
|
|
|
"desc": "Tag the release",
|
|
|
|
"exec": "grunt tagrelease"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Push changes to the remote",
|
2014-02-19 01:39:20 +03:00
|
|
|
"exec": "git push origin stable"
|
2014-02-15 03:52:48 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Push tags to the remote",
|
|
|
|
"exec": "git push --tags"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Publish to npm",
|
|
|
|
"exec": "npm publish"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Checkout the development branch (master) and merge changes",
|
|
|
|
"exec": "git checkout master && git merge stable"
|
|
|
|
},
|
2014-02-19 02:40:56 +03:00
|
|
|
{
|
|
|
|
"desc": "Remove built dist files to re-ignore them",
|
|
|
|
"exec": "grunt clean:dist"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"desc": "Commit the removed dist files",
|
|
|
|
"exec": "git add -u && git commit -m 'Removed dist files'"
|
|
|
|
},
|
2014-02-15 03:52:48 +03:00
|
|
|
{
|
|
|
|
"desc": "Push development branch changes",
|
2014-02-19 01:39:20 +03:00
|
|
|
"exec": "git push origin master"
|
2014-02-15 03:52:48 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2013-05-21 02:02:31 +03:00
|
|
|
}
|