{ "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": "git://github.com/Pomax/svgo#dereferenceUses-plugin" }, "dependencies": { "write-good": "^1.0.3" } }