Skip to content

Commit

Permalink
Issue 703 - Rename async modules (plotly#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed Feb 27, 2020
1 parent cd11476 commit 6852769
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
10 changes: 7 additions & 3 deletions packages/dash-table/.circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
jobs:
"server-test":
docker:
- image: circleci/python:3.6-node-browsers
- image: circleci/python:3.6.9-node-browsers
- image: cypress/base:10

steps:
Expand Down Expand Up @@ -40,7 +40,9 @@ jobs:
. venv/bin/activate
npm run private::build:js-test
npm run private::build:py
pip install -e .
python setup.py sdist
cd dist
find . -name "*.gz" | xargs pip install --no-cache-dir --ignore-installed && cd ..
- run:
name: Run tests
Expand Down Expand Up @@ -225,7 +227,9 @@ jobs:
command: |
. venv/bin/activate
npm run build
pip install -e .
python setup.py sdist
cd dist
find . -name "*.gz" | xargs pip install --no-cache-dir --ignore-installed && cd ..
- run:
name: ⚙️ run integration test
Expand Down
6 changes: 5 additions & 1 deletion packages/dash-table/.config/webpack/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ module.exports = (options = {}) => {
name: true,
cacheGroups: {
async: {

chunks: 'async',
minSize: 0,
name(module, chunks, cacheGroupKey) {
return `${cacheGroupKey}-${chunks[0].name}`;
}
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/dash-table/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/).

## [Unreleased]
### Changed
- [#704](https://github.com/plotly/dash-table/pull/704) Renamed async modules with hyphen `-` instead of tilde `~`

## [4.6.0] - 2020-01-14
### Added
- [#606](https://github.com/plotly/dash-table/pull/606) Add markdown support for table cells. Cells will be rendered as markdown if the column `presentation` is specified as `markdown`.
Expand Down
4 changes: 2 additions & 2 deletions packages/dash-table/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include dash_table/bundle.js
include dash_table/bundle.js.map
include dash_table/async~*.js
include dash_table/async~*.js.map
include dash_table/async-*.js
include dash_table/async-*.js.map
include dash_table/metadata.json
include dash_table/package-info.json
include LICENSE
Expand Down
8 changes: 4 additions & 4 deletions packages/dash-table/dash_table_base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@
_js_dist = []

_js_dist.extend([{
'relative_package_path': 'async~{}.js'.format(async_resource),
'relative_package_path': 'async-{}.js'.format(async_resource),
'external_url': (
'https://unpkg.com/dash-table@{}'
'/dash_table/async~{}.js'
'/dash_table/async-{}.js'
).format(__version__, async_resource),
'namespace': package_name,
'async': True
} for async_resource in async_resources])

_js_dist.extend([{
'relative_package_path': 'async~{}.js.map'.format(async_resource),
'relative_package_path': 'async-{}.js.map'.format(async_resource),
'external_url': (
'https://unpkg.com/dash-table@{}'
'/dash_table/async~{}.js.map'
'/dash_table/async-{}.js.map'
).format(__version__, async_resource),
'namespace': package_name,
'dynamic': True
Expand Down

0 comments on commit 6852769

Please sign in to comment.