Commit 501a3966 authored by Ashur Cabrera's avatar Ashur Cabrera
Browse files

Consolidate Nova run tasks

parent d54725c1
{
"script" : "if [ $NOVA_TASK_NAME == \"build\" ]; then\n\tnpm run build\nfi\n\nif [ $NOVA_TASK_NAME == \"run\" ]; then\n\tnpm run watch\nfi\n",
"script" : "if [ $NOVA_TASK_NAME == \"build\" ]; then\n\tnpm run build\nfi\n\nif [ $NOVA_TASK_NAME == \"run\" ]; then\n\tnpm run watch\nfi\n\nif [ $NOVA_TASK_NAME == \"clean\" ]; then\n\tnpm run clean\nfi\n",
"actions" : [
"build",
"run"
"run",
"clean"
],
"identifier" : "2261895D-89D1-4AD2-9B77-2E42E2F2A339",
"openLogOnRun" : "start"
......
{
"script" : "if [ $NOVA_TASK_NAME == \"build\" ]; then\n\tnpm run build:dist\nfi\n",
"actions" : [
"build"
],
"identifier" : "8527A415-B85C-4DB3-B10E-46B09E4FC1D0",
"openLogOnRun" : "start"
}
\ No newline at end of file
......@@ -5,7 +5,8 @@
"repository": "https://dev.panic.com/ashur/nova-jsonlint",
"scripts": {
"build": "npx rollup -c",
"build:dist": "npm run build && rm -r *.novaextension/node_modules",
"build:dist": "npm run build && npm run clean",
"clean": "rm -r *.novaextension/node_modules",
"test:lint": "eslint *.novaextension/scripts/*.js",
"watch": "onchange -i \"src/**/*.js\" \"*.novaextension/extension.json\" -- npm run build"
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment