Add new task to help carto.js v3 development

pull/14605/head
elenatorro 6 years ago
parent b5e6dd5fed
commit e214adc15c

@ -342,6 +342,11 @@ module.exports = function (grunt) {
'manifest'
]);
grunt.registerTask('editor-cdb', [
'editor',
'watch:cdb'
]);
registerCmdTask('npm-start', {cmd: 'npm', args: ['run', 'start']});
registerCmdTask('npm-build', {cmd: 'npm', args: ['run', 'build']});
registerCmdTask('npm-build-static', {cmd: 'npm', args: ['run', 'build:static']});

@ -73,6 +73,19 @@ exports.task = function () {
spawn: false,
atBegin: false
}
},
cdb: {
files: [
'lib/assets/javascripts/cdb/**/*'
],
tasks: [
'cdb',
'dev-editor'
],
options: {
spawn: false,
atBegin: false
}
}
};
};

@ -218,6 +218,7 @@
"carto-node": "NODE_ENV=production webpack --progress --config webpack/carto-node/webpack.config.js",
"dev": "NODE_ENV=development webpack --progress --watch --config webpack/v4/webpack.dev.config.js",
"dev:editor": "grunt editor",
"dev:editor:cdb": "grunt editor-cdb",
"dev:static": "webpack --progress --watch --config webpack/static-pages/webpack.dev.config.js",
"profile": "NODE_ENV=production webpack --profile --json --config webpack/v4/webpack.prod.config.js > compilation-stats.json",
"fix-shrinkwrap-protocol": "node ./lib/build/fix-shrinkwrap.js"

Loading…
Cancel
Save