-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
47 lines (47 loc) · 2.02 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
{
"name": "coolearning-playground",
"version": "1.18.0",
"description": "Bringing MIDI interactivity to `tensorflow/playground`",
"license": "Apache-2.0",
"scripts": {
"clean": "rimraf dist",
"start": "yarn serve-watch",
"dev": "yarn start",
"prep": "yarn clean && yarn prep:default && yarn prep:assets",
"prep:default": "copyfiles analytics.js dist && concat node_modules/material-design-lite/material.min.js node_modules/seedrandom/seedrandom.min.js > dist/lib.js",
"prep:assets": "copyfiles ./assets/**/*.svg dist",
"build-css": "concat node_modules/material-design-lite/material.min.css styles.css > dist/bundle.css",
"watch-css": "concat node_modules/material-design-lite/material.min.css styles.css -o dist/bundle.css",
"build-html": "copyfiles index.html dist",
"watch-html": "concat index.html -o dist/index.html",
"build-js": "browserify src/playground/playground.ts -p [tsify] | uglifyjs -c > dist/bundle.js",
"watch-js": "watchify src/playground/playground.ts -p [tsify] -v --debug -o dist/bundle.js",
"build": "yarn prep && yarn build-js && yarn build-css && yarn build-html",
"watch": "yarn prep && concurrently 'yarn watch-js' 'yarn watch-css' 'yarn watch-html'",
"serve:old": "npx serve dist/",
"serve": "npx browser-sync start --server dist/ --files 'dist/bundle.js' --no-open",
"serve-watch": "concurrently \"yarn serve\" \"yarn watch\"",
"build:archive": "./bin/archive-release.sh",
"build:prepare": "./bin/prepare-release.sh",
"package:reinstall": "npx rimraf node_modules && yarn"
},
"devDependencies": {
"@bamdadsabbagh/eslint-config": "^2.0.21",
"@types/d3": "^3.5.34",
"concat": "^1.0.3",
"concurrently": "6.3.0",
"copyfiles": "2.4.1",
"rimraf": "3.0.2",
"serve": "^12.0.1",
"tsify": "^5.0.4",
"typescript": "^4.4.4",
"uglify-js": "^3.14.2",
"watchify": "^4.0.0"
},
"dependencies": {
"d3": "^3.5.16",
"material-design-lite": "^1.3.0",
"seedrandom": "^3.0.5",
"webmidi": "^2.5.3"
}
}