Skip to content

Multiple watch configurations? #541

@kristianmandrup

Description

@kristianmandrup

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions