Skip to content

Commit

Permalink
Merge pull request #98 from jtpio/build-dev
Browse files Browse the repository at this point in the history
`jlpm run build` builds with --development by default
  • Loading branch information
jasongrout authored Oct 23, 2020
2 parents 6df95af + 010666a commit 41bd3ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions {{cookiecutter.python_name}}/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"url": "{{ cookiecutter.repository }}.git"
},
"scripts": {
"build": "jlpm run build:lib && jlpm run build:labextension",
"build": "jlpm run build:lib && jlpm run build:labextension:dev",
"build:prod": "jlpm run build:lib && jlpm run build:labextension",
"build:labextension": "jupyter labextension build .",
"build:labextension:dev": "jupyter labextension build --development True .",
"build:lib": "tsc",
Expand All @@ -36,7 +37,7 @@
"eslint": "eslint . --ext .ts,.tsx --fix",
"eslint:check": "eslint . --ext .ts,.tsx",
"install:extension": "jupyter labextension develop --overwrite .",
"prepare": "jlpm run clean && jlpm run build",
"prepare": "jlpm run clean && jlpm run build:prod",
"watch": "run-p watch:src watch:labextension",
"watch:src": "tsc -w",
"watch:labextension": "jupyter labextension watch ."
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.python_name}}/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
)

cmdclass["jsdeps"] = combine_commands(
install_npm(HERE, build_cmd="build", npm=["jlpm"]),
install_npm(HERE, build_cmd="build:prod", npm=["jlpm"]),
ensure_targets(jstargets),
)

Expand Down

0 comments on commit 41bd3ed

Please sign in to comment.