Skip to content

Commit 5344fdd

Browse files
author
Xing Han Lu
authored
Merge pull request #117 from plotly/update-package-json
Add `npm run build:backends`
2 parents 542646e + 62c6f3a commit 5344fdd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To use this boilerplate:
3333
3434
Installing the dependencies can take a long time. They will be installed in a
3535
folder named `venv`, created by virtualenv. This ensures that dash is installed
36-
to generate the components in the `build:py_and_r` script of the generated
36+
to generate the components in the `build:backends` script of the generated
3737
`package.json`.
3838
3939

{{cookiecutter.project_shortname}}/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
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": "npm run build:js && npm run build:backends",
24+
"build:activated": "npm run build:js && npm run build:backends-activated"
2525
},
2626
"author": "{{ cookiecutter.author_name }} <{{ cookiecutter.author_email }}>",
2727
"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)