Skip to content

Commit

Permalink
Move build to dist.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Feb 28, 2018
1 parent 3dee44c commit 898fa38
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.sublime-workspace
.DS_Store
build/
dist/
node_modules
npm-debug.log
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*.sublime-*
build/*.zip
dist/*.zip
img/
test/
2 changes: 1 addition & 1 deletion d3-contour.sublime-project
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"path": ".",
"file_exclude_patterns": ["*.sublime-workspace"],
"folder_exclude_patterns": ["build"]
"folder_exclude_patterns": ["dist"]
}
],
"build_systems": [
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
"name": "Mike Bostock",
"url": "http://bost.ocks.org/mike"
},
"main": "build/d3-contour.js",
"main": "dist/d3-contour.js",
"module": "index",
"jsnext:main": "index",
"repository": {
"type": "git",
"url": "https://github.com/d3/d3-contour.git"
},
"scripts": {
"pretest": "rm -rf build && mkdir build && rollup -c --banner \"$(preamble)\"",
"pretest": "rm -rf dist && mkdir dist && rollup -c --banner \"$(preamble)\"",
"test": "tape 'test/**/*-test.js' && eslint index.js src",
"prepublish": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" build/d3-contour.js -c -m -o build/d3-contour.min.js",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-contour/build/d3-contour.js d3-contour.v1.js && cp ../d3-contour/build/d3-contour.min.js d3-contour.v1.min.js && git add d3-contour.v1.js d3-contour.v1.min.js && git commit -m \"d3-contour ${npm_package_version}\" && git push && cd - && zip -j build/d3-contour.zip -- LICENSE README.md build/d3-contour.js build/d3-contour.min.js"
"prepublishOnly": "npm run test && uglifyjs -b beautify=false,preamble=\"'$(preamble)'\" dist/d3-contour.js -c -m -o dist/d3-contour.min.js",
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-contour/dist/d3-contour.js d3-contour.v1.js && cp ../d3-contour/dist/d3-contour.min.js d3-contour.v1.min.js && git add d3-contour.v1.js d3-contour.v1.min.js && git commit -m \"d3-contour ${npm_package_version}\" && git push && cd - && zip -j dist/d3-contour.zip -- LICENSE README.md dist/d3-contour.js dist/d3-contour.min.js"
},
"devDependencies": {
"eslint": "4",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
external: dependencies,
output: {
extend: true,
file: `build/${definition.name}.js`,
file: `dist/${definition.name}.js`,
format: "umd",
globals: dependencies.reduce((p, v) => (p[v] = "d3", p), {}),
name: "d3"
Expand Down

0 comments on commit 898fa38

Please sign in to comment.