-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathpackage.json
223 lines (223 loc) · 7 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
{
"name": "cubing",
"version": "0.20.1",
"description": "A collection of Javascript cubing libraries.",
"author": "The js.cubing.net team",
"type": "module",
"types": "dist/types/index.d.ts",
"license": "GPL-3.0-or-later",
"repository": "github:cubing/cubing.js",
"dependencies": {
"@types/three": "^0.126.1",
"@types/web-bluetooth": "0.0.4",
"comlink": "^4.3.1",
"three": "^0.126.1"
},
"devDependencies": {
"@babel/preset-env": "^7.11.5",
"@babel/preset-typescript": "^7.13.0",
"@babylonjs/core": "^5.0.0-alpha.24",
"@snowpack/plugin-typescript": "^1.2.1",
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.17.0",
"@typescript-eslint/parser": "^4.17.0",
"babel-jest": "^26.6.3",
"esbuild": "^0.12.9",
"eslint": "^7.21.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-html": "^6.1.0",
"eslint-plugin-prettier": "^3.3.1",
"jest": "^27.0.5",
"jszip": "^3.5.0",
"peggy": "^1.1.0",
"prettier": "^2.2.1",
"puppeteer": "^8.0.0",
"snowpack": "^3.8.3",
"ts-jest": "^27.0.3",
"typescript": "^4.3.2",
"yargs": "^16.2.0"
},
"scripts": {
"build": "npm run clean && node ./script/build/main.js all",
"build-esm": "node ./script/build/main.js esm",
"build-bundle-global": "node ./script/build/main.js bundle-global",
"build-types": "node ./script/build/main.js types",
"build-bin": "node ./script/build/main.js bin",
"build-sites": "npm run build-site-twizzle && npm run build-site-experiments",
"build-site-twizzle": "node ./script/build/main.js twizzle",
"build-site-experiments": "node ./script/build/main.js experiments",
"build-search-worker": "node ./script/build/main.js search-worker",
"generate-js": "npm run generate-js-parsers && npm run generate-js-svg",
"generate-js-parsers": "npx peggy --format es src/cubing/kpuzzle/parser/parser-peggy.peggy",
"generate-js-svg": "echo \"TODO: Generating JS for SVGs is not implemented yet.\"",
"dev": "node ./script/build/main.js sites dev",
"clean": "rm -rf dist .cache .parcel-cache coverage .rpt2_cache /tmp/cubing-js-parcel src/cubing/search/worker-inside-generated* script/dist-test/parcel-test/parcel-package/.parcel-cache script/dist-test/parcel-test/parcel-package/dist script/dist-test/parcel-test/parcel-package/node_modules ./alg ./bluetooth ./kpuzzle ./notation ./protocol ./puzzle-geometry ./puzzles ./scramble ./search ./stream ./twisty",
"test": "npm run test-jest && npm run lint && npm run test-import-restrictions && npm run test-tsc # keep test.yml in sync with this",
"test-dist-esm-node-import": "node script/test/dist/esm/node-import/main.mjs",
"test-dist-esm-parcel": "node ./script/test/dist/esm/parcel/main.js",
"test-dist-esm-perf": "node script/test/dist/esm/perf/*.mjs",
"test-dist-experiments": "node ./script/test/dist/experiments/main.js",
"test-import-restrictions": "node ./script/test/import-restrictions/main.js",
"test-jest": "npx jest --collectCoverage",
"test-tsc": "npm run build-types && npx tsc --build ./tsconfig.json",
"format": "npx eslint --fix --ext=js,ts .; npx prettier --write src",
"setup": "npm install",
"lint": "npx eslint --ext=js,ts .",
"prepack": "npm run clean && npm run build && npm run test-dist-esm-node-import"
},
"targets": {
"twizzle-net": {},
"experiments-cubing-net": {}
},
"keywords": [
"cubing",
"speedcubing",
"puzzle",
"visualization",
"kpuzzle",
"cuble",
"bluetooth",
"rubik",
"rubik's"
],
"eslintConfig": {
"root": true,
"parserOptions": {
"project": "./tsconfig-eslint.json",
"extraFileExtensions": [
".cjs",
".mjs"
]
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-vars-experimental": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"eqeqeq": "error",
"quote-props": [
"error",
"consistent-as-needed"
],
"lines-between-class-members": [
"error",
"always",
{
"exceptAfterSingleLine": true
}
]
},
"ignorePatterns": [
"/coverage",
"/dist",
"/src/static",
"/snowpack.config.mjs",
"/src/cubing/search/inside/solve/vendor/min2phase/gwt.js",
"/src/cubing/search/inside/solve/vendor/sq12phase/scramble_sq1.js",
"/src/cubing/search/worker-inside-generated*",
"/script/test/dist/esm/parcel/parcel-package/**/*",
"/*/index.d.ts",
"parser-peggy.js"
],
"env": {
"commonjs": true,
"browser": true,
"node": true
}
},
"prettier": {
"semi": true,
"trailingComma": "all",
"tabWidth": 2,
"quoteProps": "consistent"
},
"exports": {
".": {
"import": "./index.js",
"types": "./types/types/index.d.ts"
},
"./alg": {
"import": "./dist/esm/alg/index.js",
"types": "./dist/types/alg/index.d.ts"
},
"./bluetooth": {
"import": "./dist/esm/bluetooth/index.js",
"types": "./dist/types/bluetooth/index.d.ts"
},
"./kpuzzle": {
"import": "./dist/esm/kpuzzle/index.js",
"types": "./dist/types/kpuzzle/index.d.ts"
},
"./notation": {
"import": "./dist/esm/notation/index.js",
"types": "./dist/types/notation/index.d.ts"
},
"./protocol": {
"import": "./dist/esm/protocol/index.js",
"types": "./dist/types/protocol/index.d.ts"
},
"./puzzle-geometry": {
"import": "./dist/esm/puzzle-geometry/index.js",
"types": "./dist/esm/types/puzzle-geometry/index.d.ts"
},
"./puzzles": {
"import": "./dist/esm/puzzles/index.js",
"types": "./dist/esm/types-geometry/index.d.ts"
},
"./scramble": {
"import": "./dist/esm/scramble/index.js",
"types": "./dist/types/scramble/index.d.ts"
},
"./search": {
"import": "./dist/esm/search/index.js",
"types": "./dist/types/search/index.d.ts"
},
"./stream": {
"import": "./dist/esm/stream/index.js",
"types": "./dist/types/stream/index.d.ts"
},
"./twisty": {
"import": "./dist/esm/twisty/index.js",
"types": "./dist/types/twisty/index.d.ts"
}
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
"@babel/preset-typescript"
]
},
"jest": {
"roots": [
"<rootDir>/src",
"<rootDir>/script"
],
"modulePathIgnorePatterns": [
"<rootDir>/script/test/experiments/"
]
},
"files": [
"/LICENSE.md",
"/README.md",
"/package.json",
"/package-lock.json",
"/dist/**/*",
"/src/cubing/**/*",
"/docs/**/*",
"/*/package.json",
"/*/index.d.ts"
]
}