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

Issue 284 - Add source map to NPM and PyPi packages #285

Merged
merged 6 commits into from
Dec 7, 2018

Conversation

Marc-Andre-Rivet
Copy link
Contributor

@Marc-Andre-Rivet Marc-Andre-Rivet commented Dec 6, 2018

Fixes #284
Relates to plotly/dash#478
Relates to plotly/dash-renderer#104
Relates to plotly/dash-core-components#404

  • Add source-map to build output
  • Add source-map to npm package
  • Add source-map to PyPi package

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-285 December 6, 2018 15:25 Inactive
"no-console": false
},
"rulesDirectory": []
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solving small issues with tslint rules in toolchain subfolders. Not related to main issue.. want to be able to use console.log in toolchain!

@@ -21,18 +21,19 @@ module.exports = (preprocessor = {}, mode = 'development') => {
library: dashLibraryName,
libraryTarget: 'umd'
},
devtool: 'source-map',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All is tslint fixes except for this. This setting is slower but more accurate than other mappings. See here: https://webpack.js.org/configuration/devtool/

@@ -1,4 +1,5 @@
include dash_table/bundle.js
include dash_table/bundle.js.map
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyPi addition

'external_url': (
'https://unpkg.com/dash-table@{}/dash_table/bundle.js.map'
).format(__version__),
'namespace': package_name
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For Dash

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@@ -1,6 +1,6 @@
{
"name": "dash-table",
"version": "3.1.8",
"version": "3.1.9",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump version

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-285 December 6, 2018 15:33 Inactive
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-285 December 6, 2018 15:35 Inactive
@@ -76,7 +76,7 @@
"webpack-preprocessor": "^0.1.12"
},
"files": [
"/dash_table/bundle*.js"
"/dash_table/bundle*{.js,.map}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pickup both js and map files for the NPM package

Copy link
Contributor

@valentijnnieman valentijnnieman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 🎉

'external_url': (
'https://unpkg.com/dash-table@{}/dash_table/bundle.js.map'
).format(__version__),
'namespace': package_name
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@chriddyp chriddyp temporarily deployed to dash-table-review-pr-285 December 6, 2018 22:53 Inactive
…-map

# Conflicts:
#	CHANGELOG.md
#	dash_table/bundle.js
#	dash_table/demo.js
#	dash_table/package-info.json
#	package-lock.json
#	package.json
@chriddyp chriddyp temporarily deployed to dash-table-review-pr-285 December 6, 2018 23:05 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants