8000 More consistent geo maps configs by etpinard · Pull Request #4 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

8000 More consistent geo maps configs #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Nov 16, 2015
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

8000 Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
make watchified bundle step output plotly.js in build/:
- so that temporary dev build are ignored by git.
- `npm run build` is reserved for dist/ builds, while
  `npm run watch` and `npm run start-test_dashboard`
  use the build/ plotly.js
  • Loading branch information
etpinard committed Nov 16, 2015
commit 6d6ba5441670776758ecd38fb89f4d0b4688a1b6
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,4 @@ node_modules
build/*
!build/README.md

dist/*
!dist/README.md

npm-debug.log
3 changes: 2 additions & 1 deletion devtools/test_dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

<script type="text/javascript" src="../../dist/extras/mathjax/MathJax.js?config=TeX-AMS-MML_SVG"></script>

<script type="text/javascript" src="../../dist/plotly.js" charset="utf-8"></script>
<!-- use dev plotly.js build -->
<script type="text/javascript" src="../../build/plotly.js" charset="utf-8"></script>

<!-- use local topojson files -->
<script>Plotly.setPlotConfig({ topojsonURL: '../../dist/topojson/' });</script>
Expand Down
3 changes: 3 additions & 0 deletions tasks/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ var constants = require('./util/constants');
* Run `npm run build -- dev` or `npm run build -- --dev`
* to include source map in the plotly.js bundle
*
* N.B. This script is meant for dist builds; the output bundles are placed
* in plotly.js/dist/.
* Use `npm run watch` for dev builds.
*/

var arg = process.argv[2];
Expand Down
1 change: 1 addition & 0 deletions tasks/util/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
pathToMocks: path.join(pathToRoot, 'test/image/mocks'),

pathToPlotlySrc: path.join(pathToSrc, 'index.js'),
pathToPlotlyBuild: path.join(pathToBuild, 'plotly.js'),
pathToPlotlyDist: path.join(pathToDist, 'plotly.js'),
pathToPlotlyDistMin: path.join(pathToDist, 'plotly.min.js'),
pathToPlotlyDistWithMeta: path.join(pathToDist, 'plotly-with-meta.js'),
Expand Down
8 changes: 6 additions & 2 deletions tasks/util/make_watchified_bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ var constants = require('./constants');
/**
* Make a plotly.js browserify bundle function watched by watchify.
*
* N.B. This module is meant for dev builds; the output bundle is placed
* in plotly.js/build/
* Use `npm run build` for dist builds.
*
* @param {function} onFirstBundleCallback executed when first bundle is completed
*
*/
Expand Down Expand Up @@ -47,10 +51,10 @@ module.exports = function makeWatchifiedBundle(onFirstBundleCallback) {
}
})
.pipe(
fs.createWriteStream(constants.pathToPlotlyDist)
fs.createWriteStream(constants.pathToPlotlyBuild)
)
.on('finish', function() {
appendVersion(constants.pathToPlotlyDist, {object: 'Plotly', DEV: true});
appendVersion(constants.pathToPlotlyBuild, {object: 'Plotly', DEV: true});
});
}

Expand Down
0