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

Commit e0856ab

Browse files
committed
Added generate-python-classes call to build:py.
1 parent 7504b9a commit e0856ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"build-dev": "builder run clean-lib && builder run extract-metadata && builder run generate-python-classes && webpack -w --config=./config/webpack/webpack.config.dev.js",
1212
"build-dist": "builder run clean-lib && builder run extract-metadata && builder run generate-python-classes && cross-env NODE_ENV=production webpack --config=./config/webpack/webpack.config.dist.js",
1313
"copy-lib": "copyfiles -f lib/* dash_core_components",
14-
"generate-python-classes": "python -c \"import dash; dash.development.component_loader.generate_classes('dash_core_components');\"",
14+
"generate-python-classes": "python -c \"import dash; dash.development.component_loader.generate_classes('dash_core_components', 'dash_core_components/metadata.json');\"",
1515
"install-local": "npm run copy-lib && python setup.py install",
1616
"prepublish": "npm test && builder run build-dist && npm run copy-lib",
1717
"publish-all": "npm publish && python setup.py sdist upload",
@@ -22,7 +22,7 @@
2222
"test-debug": "./node_modules/.bin/builder run test-frontend-debug",
2323
"uninstall-local": "pip uninstall dash-core-components -y",
2424
"build:js": "webpack --mode production",
25-
"build:py": "node ./extract-meta src/components > dash_core_components/metadata.json && copyfiles package.json dash_core_components"
25+
"build:py": "node ./extract-meta src/components > dash_core_components/metadata.json && copyfiles package.json dash_core_components && npm run generate-python-classes"
2626
},
2727
"author": "Chris Parmer <[email protected]>",
2828
"license": "MIT",

0 commit comments

Comments
 (0)