mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
🎨 improve gulp dev
reload behaviour (#7543)
refs #7427 - prevent unnecessary reloads of the server due to changes in client files, this makes working on the client as quick/painless as the old `grunt dev` command - fix nodemon `watch` config - it only accepts directories not files - update nodemon `ignore` config - directories should be specified without a `/*`, add directories that are changed on each client re-compile
This commit is contained in:
parent
61bf54ec88
commit
49191c9023
12
gulpfile.js
12
gulpfile.js
@ -87,13 +87,13 @@ nodemonServerInit = function () {
|
||||
script: 'index.js',
|
||||
ext: 'js,json,hbs',
|
||||
watch: [
|
||||
'core/index.js',
|
||||
paramConfig.ghost.path + '/',
|
||||
'core/built/assets/*.js'
|
||||
'core/'
|
||||
],
|
||||
ignore: [
|
||||
'core/client/*',
|
||||
'core/server/test/*'
|
||||
'core/client/',
|
||||
'core/server/test/',
|
||||
'core/server/views/',
|
||||
'core/built/'
|
||||
]
|
||||
}).on('restart', function () {
|
||||
gulp.src(paramConfig.ghost.path + '/')
|
||||
@ -327,7 +327,7 @@ gulp.task('server', 'Run Ghost server in development with livereload but without
|
||||
// Run `gulp dev` to enter development mode
|
||||
// Filechanges in client will force a livereload
|
||||
// Call it with `--deps` or `-d` to install dependencies as well`
|
||||
gulp.task('dev', 'Runs Ghost server in delelopment including client build and livereload for both', function (cb) {
|
||||
gulp.task('dev', 'Runs Ghost server in development with livereload and client rebuild on file changes', function (cb) {
|
||||
console.info(chalk.cyan('Development mode for Ghost will start right meow 👻 ...'));
|
||||
if (argv.deps || argv.d) {
|
||||
runSequence(
|
||||
|
Loading…
Reference in New Issue
Block a user