Skip to content

Commit 695ff15

Browse files
committed
Update dependencies.
1 parent 1e3fbd4 commit 695ff15

5 files changed

Lines changed: 12 additions & 11 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*.sublime-workspace
22
.DS_Store
3-
build/
3+
dist/
44
node_modules
55
npm-debug.log

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
*.sublime-*
2-
build/*.zip
2+
dist/*.zip
33
test/

d3-array.sublime-project

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
],
99
"build_systems": [
1010
{
11-
"name": "npm test",
12-
"cmd": ["npm", "test"],
11+
"name": "yarn test",
12+
"cmd": ["yarn", "test"],
1313
"file_regex": "\\((...*?):([0-9]*):([0-9]*)\\)",
1414
"working_dir": "$project_path"
1515
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
"name": "Mike Bostock",
2020
"url": "http://bost.ocks.org/mike"
2121
},
22-
"main": "build/d3-array.js",
22+
"main": "dist/d3-array.min.js",
2323
"module": "index",
2424
"jsnext:main": "index",
2525
"repository": {
2626
"type": "git",
2727
"url": "https://github.com/d3/d3-array.git"
2828
},
2929
"scripts": {
30-
"pretest": "rm -rf build && mkdir build && rollup -c",
30+
"pretest": "rollup -c",
3131
"test": "tape 'test/**/*-test.js' && eslint index.js src test",
32-
"prepublish": "yarn test",
33-
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../d3-array/build/d3-array.js d3-array.v1.js && cp ../d3-array/build/d3-array.min.js d3-array.v1.min.js && git add d3-array.v1.js d3-array.v1.min.js && git commit -m \"d3-array ${npm_package_version}\" && git push && cd - && zip -j build/d3-array.zip -- LICENSE README.md build/d3-array.js build/d3-array.min.js"
32+
"prepublishOnly": "rm -rf dist && yarn test",
33+
"postpublish": "git push && git push --tags && cd ../d3.github.com && git pull && cp ../${npm_package_name}/dist/${npm_package_name}.js ${npm_package_name}.v1.js && cp ../${npm_package_name}/dist/${npm_package_name}.min.js ${npm_package_name}.v1.min.js && git add ${npm_package_name}.v1.js ${npm_package_name}.v1.min.js && git commit -m \"${npm_package_name} ${npm_package_version}\" && git push && cd - && zip -j dist/${npm_package_name}.zip -- LICENSE README.md dist/${npm_package_name}.js dist/${npm_package_name}.min.js"
3434
},
3535
"devDependencies": {
3636
"eslint": "5",

rollup.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ const config = {
55
input: "index.js",
66
external: Object.keys(meta.dependencies || {}),
77
output: {
8-
file: `build/${meta.name}.js`,
8+
file: `dist/${meta.name}.js`,
99
name: "d3",
1010
format: "umd",
11+
indent: false,
1112
extend: true,
12-
banner: `// ${meta.homepage} Version ${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}.`,
13+
banner: `// ${meta.homepage} v${meta.version} Copyright ${(new Date).getFullYear()} ${meta.author.name}`,
1314
globals: Object.assign({}, ...Object.keys(meta.dependencies || {}).map(key => ({[key]: "d3"})))
1415
},
1516
plugins: []
@@ -21,7 +22,7 @@ export default [
2122
...config,
2223
output: {
2324
...config.output,
24-
file: `build/${meta.name}.min.js`
25+
file: `dist/${meta.name}.min.js`
2526
},
2627
plugins: [
2728
...config.plugins,

0 commit comments

Comments
 (0)