-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
76 lines (76 loc) · 2.28 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
{
"name": "ecstra",
"version": "0.0.2",
"description": "Fast & Flexible EntityComponentSystem (ECS) for JavaScript & TypeScript",
"repository": {
"type": "git",
"url": "git+https://github.com/DavidPeicho/ecstra.git"
},
"author": "David Peicho <[email protected]>",
"license": "MIT",
"keywords": [
"ecs",
"entity component system",
"game"
],
"type": "module",
"main": "./umd/ecstra.js",
"module": "./index.js",
"types": "./index.d.ts",
"scripts": {
"build": "npm run copy:to:dist && npm run build:ts && npm run build:umd",
"build:ts": "tsc",
"build:umd": "rollup -c",
"start": "npm run copy:to:dist && tsc --watch",
"example": "http-server ./ -c-1 -p 8080 --cors ./example",
"example:build": "tsc ./example/typescript/**/*.ts --target ES6 --experimentalDecorators && npm run example",
"example:start": "tsc ./example/typescript/**/*.ts --target ES6 --experimentalDecorators -w && npm run example",
"benchmark": "node --expose-gc --loader ts-node/esm ./benchmark/index.ts",
"lint": "eslint ./src/**/*.ts",
"test": "ava",
"test:coverage": "c8 check-coverage --lines 90 --functions 90 --branches 90 npm test",
"coverage": "c8 npm test",
"pretty": "prettier ./src/ ./test ./benchmark --write",
"copy:to:dist": "node --experimental-modules ./scripts/copy-to-dist.js"
},
"devDependencies": {
"@ava/typescript": "^1.1.1",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-replace": "^2.3.4",
"@types/node": "^14.14.28",
"@typescript-eslint/eslint-plugin": "^4.13.0",
"@typescript-eslint/parser": "^4.13.0",
"ava": "^3.15.0",
"c8": "^7.7.1",
"chalk": "^4.1.0",
"eslint": "^7.17.0",
"eslint-config-prettier": "^7.1.0",
"eslint-plugin-prettier": "^3.3.1",
"http-server": "^0.12.3",
"husky": "^4.3.8",
"prettier": "^2.2.1",
"rollup": "^2.38.5",
"rollup-plugin-terser": "^7.0.2",
"ts-node": "^9.1.1",
"typescript": "^4.1.3"
},
"ava": {
"extensions": {
"ts": "module"
},
"nonSemVerExperiments": {
"configurableModuleFormat": true
},
"nodeArguments": [
"--loader=ts-node/esm"
],
"files": [
"test/**/*.test.ts"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run pretty"
}
}
}