-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
66 lines (66 loc) · 4.52 KB
/
package.json
File metadata and controls
66 lines (66 loc) · 4.52 KB
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
{
"name": "px-stream",
"version": "1.0.14-alpha-24",
"devDependencies": {
"canvas": "^3.2.0",
"chalk": "^5.6.2",
"cli-table3": "^0.6.5",
"commander": "^14.0.1",
"esbuild": "^0.25.10",
"eslint": "^9.34.0",
"eslint-plugin-maxpat": "github:darosh/eslint-plugin-maxpat",
"glob": "^11.0.3",
"glsl-parser": "^2.0.1",
"glsl-tokenizer": "^2.1.5",
"json-stringify-pretty-compact": "^4.0.0",
"json5": "^2.2.3",
"lygia": "^1.3.3",
"node-fetch": "^3.3.2",
"npm-run-all": "^4.1.5",
"puppeteer": "^24.22.0",
"sharp": "^0.34.3"
},
"private": true,
"scripts": {
"build": "run-s debug:demos:off build:assets build:pre build:v8:mini build:v8:maxi osascript:amxd:freeze move:devices build:post build:check",
"build:assets": "run-s clean:assets copy:assets clean:temp:assets clean:user:assets",
"build:check": "bash -c 'comm -23 <(cd devices && ls *.amxd | sort) <(cd \"build/PX Stream/Devices\" && ls *.amxd | sort)'",
"build:post": "sed -i '' 's|/Assets/|/assets/|g' ./devices/PX._path.maxpat && sed -i '' 's|/Assets/|/assets/|g' ./devices/PX._path_alt.maxpat",
"build:pre": "sed -i '' 's|/assets/|/Assets/|g' ./devices/PX._path.maxpat && sed -i '' 's|/assets/|/Assets/|g' ./devices/PX._path_alt.maxpat",
"build:v8:maxi": "esbuild \"./devices/PX Shader._file.js\" --format=cjs --bundle --keep-names --outfile=\"./devices/PX Shader._file.min.js\"",
"build:v8:mini": "esbuild \"./devices/PX GEN Mini Shader._convert.js\" --format=cjs --bundle --keep-names --outfile=\"./devices/PX GEN Mini Shader._convert.min.js\"",
"clean:assets": "rm -rf './build/PX Stream/Assets'",
"clean:devices": "'./build/PX Stream/Devices'",
"clean:temp:assets": "rm -f ./build/PX\\ Stream/Assets/mini-shaders/.temp.jxs ./build/PX\\ Stream/Assets/shaders/.temp-.*.*",
"clean:user:assets": "rm -f ./build/PX\\ Stream/Assets/images/SCR.*.* ./build/PX\\ Stream/Assets/video/REC.*.*",
"copy:assets": "rsync -av --exclude='*/.*' ./assets/ './build/PX Stream/Assets/'",
"copy:lygia": "rm -rf assets/lib/lygia && rsync -av --include='*/' --include='*.glsl' --include='LICENSE.md' --exclude='*' ./node_modules/lygia/ ./assets/lib/lygia/ && rm -rf assets/lib/lygia/.github",
"debug:demos:off": "mkdir -p ./build/debug && mv -f ./build/PX\\ Stream/Demo/DEBUG*.* ./build/debug/ 2>/dev/null || true",
"debug:demos:on": "mv ./build/debug/DEBUG*.* ./build/PX\\ Stream/Demo/",
"doc": "npm run doc:screenshots && npm run doc:readme",
"doc:readme": "node ./scripts/doc.js",
"doc:screenshots": "rm -f ./docs/media/devices/*.webp && node ./scripts/screenshots.js",
"doc:screenshots:animated:clean": "rm -f ./docs/media/automation/*.webp && rm -f ./docs/media/previews/*.webp",
"doc:screenshots:animated:update": "node ./scripts/screenshots.animated.js",
"downloads": "node ./scripts/downloads.js",
"format:shader": "node ./scripts/format-shader.js",
"lint:maxpat": "eslint ./devices/*.maxpat --rule={\"maxpat/ui/annotation-info\":\"off\"}",
"lint:maxpat:fix": "eslint ./devices/*.maxpat --fix --rule={\"maxpat/ui/annotation-info\":\"off\"}",
"lint:maxpat:fix-dry-run": "eslint ./devices/*.maxpat --fix-dry-run --rule={\"maxpat/ui/annotation-info\":\"off\"}",
"lint:maxpat:fix:layout": "eslint ./devices/*.maxpat --fix --fix-type layout",
"lint:maxpat:info": "eslint ./devices/*.maxpat --format node_modules/eslint-plugin-maxpat/lib/formatter.js",
"measure": "node ./scripts/meausures.js",
"move:devices": "mkdir -p './build/PX Stream/Devices' && mv ./frozen/*.amxd './build/PX Stream/Devices/'",
"osascript:amxd:freeze": "rm -f ./devices/frozen/*.amxd && osascript ./scripts/freeze.scpt \"$(pwd)/devices\" \"$(pwd)/frozen\"",
"osascript:amxd:freeze-post": "osascript ./scripts/freeze-post.scpt \"$(pwd)/devices\" \"$(pwd)/frozen\"",
"osascript:amxd:resave": "osascript ./scripts/resave.scpt \"$(pwd)/devices\"",
"osascript:maxpat:resave": "osascript ./scripts/resave-maxpat.scpt \"$(pwd)/devices\"",
"params:collect": "node scripts/params.js collect './devices/*.maxpat' './scripts/params/'",
"params:info": "node scripts/params.js info './devices/*.maxpat'",
"params:update": "node scripts/params.js update './devices/*.maxpat' './scripts/params/*.maxpat.json'",
"transitions": "run-s transitions:prepare transitions:make",
"transitions:make": "node scripts/transitions/make-jxs.js",
"transitions:prepare": "node scripts/transitions/gl-transition-transform.js -d ./scripts/transitions/glsl -o ./scripts/transitions/glsl.json"
},
"type": "module"
}