-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
38 lines (38 loc) · 1.59 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
{
"name": "ray-tracer",
"version": "0.0.0",
"description": "Pure TypeScript ray tracing playground",
"module": "build/src/ray-tracer.js",
"type": "module",
"license": "MIT",
"private": true,
"devDependencies": {
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.20.0",
"@typescript-eslint/parser": "^4.20.0",
"eslint": "^7.23.0",
"eslint-plugin-jest": "^24.3.3",
"jest": "^26.6.3",
"typescript": "^4.2.3"
},
"scripts": {
"animate": "anim() { node build/examples/animation/\"$1\".animation.js; }; anim",
"build-app": "tsc -p web/app/tsconfig.json",
"build-docs": "yarn clean-docs && yarn build-app && yarn build-worker && yarn copy-docs",
"build-examples": "tsc -p examples/tsconfig.json && mkdir -p build/artifacts",
"build-src": "tsc -p src/tsconfig.json",
"build-test": "tsc -p test/tsconfig.json",
"build-worker": "tsc -p web/worker/tsconfig.json",
"copy-docs": "mkdir -p docs && yarn copy-html && yarn copy-styles",
"copy-html": "cp web/index.html docs/",
"copy-styles": "cp -R web/styles docs/",
"clean": "yarn clean-build && yarn clean-docs",
"clean-build": "rm -rf build",
"clean-docs": "rm -rf docs",
"lint": "eslint . --ext .js,.ts",
"generate": "gen() { node build/examples/highres/\"$1\".highres.js; }; gen",
"jest": "node --experimental-vm-modules node_modules/.bin/jest",
"start": "python3 -m http.server",
"test": "yarn build-test && yarn jest"
}
}