-
-
Notifications
You must be signed in to change notification settings - Fork 289
/
package.json
82 lines (82 loc) · 3.33 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "bezierinfo",
"type": "module",
"version": "3.0.0",
"description": "pomax.github.io/bezierinfo",
"author": "Pomax",
"license": "SEE LICENSE IN LICENSE.md",
"homepage": "https://pomax.github.io/bezierinfo",
"repository": {
"type": "git",
"url": "git+https://github.com/Pomax/BezierInfo-2.git"
},
"bugs": {
"url": "https://github.com/Pomax/BezierInfo-2/issues"
},
"scripts": {
"---": "--- These are the only three scripts you should care about ---",
"start": "run-s clean:* time lint:* build time clean:temp",
"test": "run-s start && run-p watch server browser",
"deploy": "run-s deploy:ci copy",
"----": "--- The rest are just the various parts that make the previous three work ---",
"browser": "open-cli http://localhost:8000",
"build": "node ./src/build.js",
"time": "node ./src/mark.js",
"clean:temp": "rm -f .timing && rm -rf ./temp",
"-----": "--- Note that due to github's naming policy, the public dir is called `docs` rather than `public` ---",
"clean:news": "rm -f ./docs/news/*.html",
"polish": "run-s pretty link-checker",
"deploy:ci": "run-s start pretty",
"------": "--- The copy commands rely on a parallel `bezierinfo` git repo existing ---",
"copy": "run-s copy:*",
"copy:prepare": "mkdir _ && mv ../bezierinfo/.git _ && rm -rf ../bezierinfo ",
"copy:files": "cp -r ./docs/. ../bezierinfo",
"copy:remove-md": "rm ../bezierinfo/chapters/**/*.md && rm ../bezierinfo/news/*.md",
"copy:cleanup": "mv _/.git ../bezierinfo && rm -rf _",
"-------": "--- Prettier is your friend. ---",
"lint:tools": "prettier \"./src/**/*.js\" --print-width 150 --write",
"lint:lib": "prettier \"./docs/js/**/*.js\" --print-width 150 --write",
"lint:css": "prettier \"./docs/**/*.css\" --print-width 150 --write",
"link-checker": "link-checker \"docs/index.html\" --allow-hash-href --url-ignore \"(ja-JP|zh-CN|uk-UA|legendre|news).*\" --ignore-error-exit",
"pretty": "prettier \"./docs/{!(legendre-gauss),**/*}.html\" --use-tabs --print-width 150 --write",
"--------": "--- Server and watch tasks ---",
"server": "cd docs && http-server -e -p 8000 --cors",
"watch": "run-p watch:*",
"watch:chapters": "chokidar \"./docs/chapters/**/*.(md|js)\" -c \"npm run build\"",
"watch:news": "chokidar \"./docs/news/**/*.md\" -c \"npm run build\"",
"watch:customelement": "chokidar \"./docs/js/custom-element/**/*.js\" -c \"npm run build\"",
"watch:src": "chokidar \"./src/**/*.*\" -c \"npm run build\"",
"---------": "--- Used as part of LaTeX generation: ---",
"svgo": "svgo",
"svgo:pretty": "node ./src/svgo-pretty.js"
},
"keywords": [
"Bezier",
"curves",
"math",
"maths",
"tutorial",
"article",
"primer",
"book",
"ebook"
],
"------": "There are a number of personal forks here, as they include patches not landed upstream yet",
"devDependencies": {
"canvas": "^2.8.0",
"chokidar-cli": "^2.1.0",
"fs-extra": "^9.0.1",
"glob": "^7.1.6",
"http-server": "git://github.com/Pomax/http-server#patch-1",
"link-checker": "git://github.com/Pomax/link-checker#master",
"marked": "^1.1.1",
"npm-run-all": "^4.1.5",
"nunjucks": "^3.2.2",
"open-cli": "^6.0.1",
"prettier": "^2.0.5",
"svgo": "^2.8.0"
},
"dependencies": {
"write-good": "^1.0.3"
}
}