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

Commit

Permalink
Merge pull request #77 from plotly/dev-bundle
Browse files Browse the repository at this point in the history
Support dev bundle
  • Loading branch information
T4rk1n authored Sep 20, 2018
2 parents b712db5 + 2eac353 commit 8b446a8
Show file tree
Hide file tree
Showing 9 changed files with 5,612 additions and 12 deletions.
8 changes: 3 additions & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ venv/
.DS_Store
dist
*egg-info*
npm-debug*
dash_renderer/bundle.js
dash_renderer/bundle.js.map
dash_renderer/react@*.min.js
dash_renderer/react-dom@*.min.js

dash_renderer/**/*.min.js
dash_renderer/**/*.dev.js
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [0.14.0] - 2018-09-20
### Added
- Unminified dev bundle support. [#77](https://github.com/plotly/dash-renderer/pull/77)

## [0.13.2] - 2018-07-24
### Fixed
- Attempting to render a `Boolean` value to the page no longer crashes the app.
Expand Down
3 changes: 2 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include dash_renderer/bundle.js
include dash_renderer/dash_renderer.min.js
include dash_renderer/dash_renderer.dev.js
include dash_renderer/react-dom@*.min.js
include dash_renderer/react@*.min.js
3 changes: 2 additions & 1 deletion dash_renderer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def _set_react_version(react_version):

_js_dist = [
{
'relative_package_path': 'bundle.js',
'relative_package_path': '{}.min.js'.format(__name__),
'dev_package_path': '{}.dev.js'.format(__name__),
"external_url": (
'https://unpkg.com/dash-renderer@{}'
'/dash_renderer/bundle.js'
Expand Down
5,563 changes: 5,563 additions & 0 deletions dash_renderer/dash_renderer.dev.js

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions dash_renderer/dash_renderer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_renderer/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.13.2'
__version__ = '0.14.0'
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "dash-renderer",
"version": "0.13.1",
"version": "0.14.0",
"description": "render dash components in react",
"main": "src/index.js",
"scripts": {
"lint": "./node_modules/.bin/eslint --quiet --fix .",
"prepublish": "npm test && npm run build:prod",
"prepublish": "npm test && npm run build:prod && npm run build:dev",
"publish-all": "npm publish && echo \"twine!!!\"",
"publish-pypi": "npm run prepublish && python setup.py sdist upload",
"server": "serv -p 8080 .",
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = (env, argv) => ({
entry: {main: './src/index.js'},
output: {
path: path.resolve(__dirname, dashLibraryName),
filename: 'bundle.js',
filename: argv.mode === 'development' ? `${dashLibraryName}.dev.js` : `${dashLibraryName}.min.js`,
library: dashLibraryName,
libraryTarget: 'window',
},
Expand All @@ -27,5 +27,5 @@ module.exports = (env, argv) => ({
}
],
},
devtool: argv.mode === 'development' ? "eval-source-map" : 'source-map'
devtool: argv.mode === 'development' ? "eval-source-map" : 'none'
});

0 comments on commit 8b446a8

Please sign in to comment.