0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

🛠 grunt master (#8251)

refs #8235

- add a new grunt command `dev-master`
- this command will bring back your working directory to latest master
- plus it will update your dependencies and checks your database health
- it won't build the client (!)

* 🛠    grunt dev-master
* fix jscs 💣
* change to grunt master
This commit is contained in:
Katharina Irrgang 2017-04-05 21:46:22 +02:00 committed by Hannah Wolfe
parent 587ff6f026
commit 13fb0c68b4

View file

@ -236,6 +236,21 @@ var overrides = require('./core/server/overrides'),
}
},
// ### grunt-shell
// Command line tools where it's easier to run a command directly than configure a grunt plugin
shell: {
master: {
command: function () {
var upstream = grunt.option('upstream') || 'origin';
return 'git checkout master; git pull ' + upstream + ' master; npm install;';
}
},
dbhealth: {
command: 'knex-migrator health'
}
},
// ### grunt-docker
// Generate documentation from code
docker: {
@ -670,6 +685,18 @@ var overrides = require('./core/server/overrides'),
}
});
/**
* This command helps you to bring your working directory back to current master.
* It will also update your dependencies and shows you if your database is health.
* It won't build the client!
*
* grunt master [origin is the default upstream to pull from]
* grunt master --upstream=parent
*/
grunt.registerTask('master', 'Update your current working folder to latest master.',
['shell:master', 'update_submodules', 'subgrunt:init', 'shell:dbhealth']
);
// ### Release
// Run `grunt release` to create a Ghost release zip file.
// Uses the files specified by `.npmignore` to know what should and should not be included.