Skip to content

Commit a2fdfed

Browse files
author
xhlulu
committed
Add npm run build:backends
1 parent 542646e commit a2fdfed

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

{{cookiecutter.project_shortname}}/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
"validate-init": "python _validate_init.py",
1919
"prepublishOnly": "npm run validate-init",
2020
"build:js": "webpack --mode production",
21-
"build:py_and_r": "dash-generate-components ./src/lib/components {{ cookiecutter.project_shortname }} -p package-info.json --r-prefix '{{ cookiecutter.r_prefix }}' --jl-prefix '{{ cookiecutter.jl_prefix }}'",
22-
"build:py_and_r-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py_and_r)",
23-
"build": "npm run build:js && npm run build:py_and_r",
24-
"build:activated": "npm run build:js && npm run build:py_and_r-activated"
21+
"build:backends": "dash-generate-components ./src/lib/components {{ cookiecutter.project_shortname }} -p package-info.json --r-prefix '{{ cookiecutter.r_prefix }}' --jl-prefix '{{ cookiecutter.jl_prefix }}'",
22+
"build:backends-activated": "(. venv/bin/activate || venv\\scripts\\activate && npm run build:py_and_r)",
23+
"build:py_and_r": "npm run build:backends",
24+
"build:py_and_r-activated": "npm run build:backends-activated",
25+
"build": "npm run build:js && npm run build:backends",
26+
"build:activated": "npm run build:js && npm run build:backends-activated"
2527
},
2628
"author": "{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>",
2729
"license": "{% set _license_identifiers = {'MIT License': 'MIT','BSD License': 'BSD','ISC License': 'ISC','Apache Software License 2.0': 'Apache-2.0','GNU General Public License v3': 'GPL-3.0','Not open source': ''} %}{{ _license_identifiers[cookiecutter.license] }}",

0 commit comments

Comments
 (0)