Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit b5d9da7

Browse files
committed
Update scripts.
1 parent 83da633 commit b5d9da7

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@
2020
"generate-python-classes": "python -c 'import dash; dash.development.component_loader.generate_classes(\"dash_html_components\", \"dash_html_components/metadata.json\")'",
2121
"generate-components": "cd scripts && sh generate-all.sh && cd -",
2222
"install-local": "npm run copy-lib && python setup.py install",
23+
"uninstall-local": "pip uninstall dash-html-components -y",
2324
"prepublish": "npm run clean && npm run generate-components && npm test && npm run build:js && npm run build:js-dev && npm run build:py",
24-
"publish-all": "npm publish && python setup.py sdist upload",
25+
"publish-all": "node scripts/publish.js",
2526
"start": "webpack-serve ./webpack.serve.config.js --open",
26-
"test": "eslint --fix src",
27-
"uninstall-local": "pip uninstall dash-html-components -y",
27+
"lint": "eslint src",
28+
"test": "python -m unittest tests.test_integration",
29+
"format": "prettier --config .prettierrc --write src/**/*.js",
30+
"format:test": "prettier --config .prettierrc src/**/*.js --list-different",
2831
"build:js": "webpack --mode production",
2932
"build:js-dev": "webpack --mode development",
30-
"build:py": "node ./extract-meta src/components > dash_html_components/metadata.json && cp package.json dash_html_components && npm run generate-python-classes"
33+
"build:py": "node ./extract-meta src/components > dash_html_components/metadata.json && cp package.json dash_html_components && npm run generate-python-classes",
34+
"build:all": "npm run build:js && npm run build:py",
35+
"build:all-dev": "npm run build:js-dev && npm run build:py",
36+
"build:watch": "watch 'npm run build:all' src"
3137
},
3238
"author": "Chris Parmer <chris@plot.ly>",
3339
"dependencies": {

0 commit comments

Comments
 (0)