-
Notifications
You must be signed in to change notification settings - Fork 358
Open
Description
Trying to set up different watch configurations for dev vs prod
What am I missing?
Verifying property watch.dev.files exists in config...ERROR
>> Unable to process task.
Warning: Required config property "watch.dev.files" missing.
concurrent: {
dev: {
tasks: ['nodemon', 'watch:dev'],
options: {
logConcurrentOutput: true
}
},
prod: {
tasks: ['nodemon', 'watch:prod'],
options: {
logConcurrentOutput: true
}
}
},
watch: {
prod: {
js: {
files: [
'editor/js/**/*.js'
],
tasks: ['copy:build', 'concat', 'uglify', 'attachCopyright:js']
},
sass: {
files: [
'editor/sass/**/*.scss'
],
tasks: ['sass', 'attachCopyright:css']
},
json: {
files: [
'nodes/core/locales/en-US/messages.json',
'red/api/locales/en-US/editor.json',
'red/runtime/locales/en-US/runtime.json'
],
tasks: ['jsonlint:messages']
},
keymaps: {
files: [
'editor/js/keymap.json'
],
tasks: ['jsonlint:keymaps', 'copy:build']
},
misc: {
files: [
'CHANGELOG.md'
],
tasks: ['copy:build']
}
},
dev: {
js: {
files: [
'editor/js/**/*.js'
],
tasks: ['copy:build', 'concat', 'babel']
},
sass: {
files: [
'editor/sass/**/*.scss'
],
tasks: ['sass', 'attachCopyright:css']
},
json: {
files: [
'nodes/core/locales/en-US/messages.json',
'red/api/locales/en-US/editor.json',
'red/runtime/locales/en-US/runtime.json'
],
tasks: ['jsonlint:messages']
},
keymaps: {
files: [
'editor/js/keymap.json'
],
tasks: ['jsonlint:keymaps', 'copy:build']
},
misc: {
files: [
'CHANGELOG.md'
],
tasks: ['copy:build']
}
}
Metadata
Metadata
Assignees
Labels
No labels