Skip to content

Commit b18d48a

Browse files
committed
build: refactor using shx
1 parent 45caaa2 commit b18d48a

7 files changed

Lines changed: 983 additions & 4677 deletions

File tree

package-lock.json

Lines changed: 398 additions & 4229 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"main": "index.js",
77
"scripts": {
88
"start": "http-server",
9-
"postinstall": "rimraf web_modules/d3 && cpx \"node_modules/d3/{dist/d3.js,dist/d3.min.js,README.md,LICENSE,package.json}\" web_modules/d3 && npm run compile",
9+
"postinstall": "shx rm -rf web_modules/d3 && shx mkdir -p web_modules/d3/dist && shx cp -r \"node_modules/d3/{README.md,LICENSE,package.json}\" web_modules/d3 && shx cp -r \"node_modules/d3/dist/d3*.js\" web_modules/d3/dist && npm run compile",
1010
"compile": "tsc -p .",
1111
"watch": "tsc -w -p .",
1212
"format": "prettier --print-width 120 --write \"examples/*.(html|ts|css|json)\" index.html README.md package.json"
@@ -22,14 +22,13 @@
2222
},
2323
"homepage": "https://github.com/sgratzl/d3tutorial#readme",
2424
"dependencies": {
25-
"d3": "^7.6.1"
25+
"d3": "^7.8.2"
2626
},
2727
"devDependencies": {
2828
"@types/d3": "^7.4.0",
29-
"cpx": "^1.5.0",
3029
"http-server": "^14.1.1",
31-
"prettier": "^2.7.1",
32-
"rimraf": "^3.0.2",
33-
"typescript": "^4.7.4"
30+
"prettier": "^2.8.3",
31+
"shx": "^0.3.4",
32+
"typescript": "^4.9.4"
3433
}
3534
}

web_modules/d3/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2010-2022 Mike Bostock
1+
Copyright 2010-2023 Mike Bostock
22

33
Permission to use, copy, modify, and/or distribute this software for any purpose
44
with or without fee is hereby granted, provided that the above copyright notice

web_modules/d3/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
## Installing
1616

17-
If you use npm, `npm install d3`. You can also download the [latest release on GitHub](https://github.com/d3/d3/releases/latest). For vanilla HTML in modern browsers, import D3 from Skypack:
17+
If you use npm, `npm install d3`. You can also download the [latest release on GitHub](https://github.com/d3/d3/releases/latest). For vanilla HTML in modern browsers, import D3 from jsDelivr:
1818

1919
```html
2020
<script type="module">
2121
22-
import * as d3 from "https://cdn.skypack.dev/d3@7";
22+
import * as d3 from "https://cdn.jsdelivr.net/npm/d3@7/+esm";
2323
2424
const div = d3.selectAll("div");
2525
@@ -42,7 +42,7 @@ You can also use the standalone D3 microlibraries. For example, [d3-selection](h
4242
```html
4343
<script type="module">
4444
45-
import {selectAll} from "https://cdn.skypack.dev/d3-selection@3";
45+
import {selectAll} from "https://cdn.jsdelivr.net/npm/d3-selection@3/+esm";
4646
4747
const div = selectAll("div");
4848

0 commit comments

Comments
 (0)