-
Build your code:
$ npm run build -
Create a Python tarball
$ python setup.py sdistThis distribution tarball will get generated in the
dist/folder -
Test your tarball by copying it into a new environment and installing it locally:
$ pip install dash_ace-0.0.1.tar.gz -
If it works, then you can publish the component to NPM and PyPI:
- Publish on PyPI
$ twine upload dist/* - Cleanup the dist folder (optional)
$ rm -rf dist - Publish on NPM (Optional if chosen False in
publish_on_npm)Publishing your component to NPM will make the JavaScript bundles available on the unpkg CDN. By default, Dash serves the component library's CSS and JS locally, but if you choose to publish the package to NPM you can set$ npm publishserve_locallytoFalseand you may see faster load times.
- Publish on PyPI
-
Share your component with the community! https://community.plot.ly/c/dash
- Publish this repository to GitHub
- Tag your GitHub repository with the plotly-dash tag so that it appears here: https://github.com/topics/plotly-dash
- Create a post in the Dash community forum: https://community.plot.ly/c/dash