mirror of
https://github.com/tridactyl/tridactyl.git
synced 2026-09-10 07:16:33 -04:00
Cut filesize by 50% by removing newlines and spaces
...really
This commit is contained in:
parent
0067efeccc
commit
41ef1726f0
|
|
@ -64,6 +64,7 @@ if [ "$QUICK_BUILD" != "1" ]; then
|
|||
"$(yarn bin)/typedoc" --json src/.metadata.generated.json --mode file \
|
||||
--exclude 'src/.excmds_*.generated.ts' --ignoreCompilerErrors \
|
||||
src/excmds.ts src/lib/config.ts
|
||||
node scripts/minify_json.js src/.metadata.generated.json
|
||||
node -e "var fs=require('fs');fs.writeFileSync('src/.themes.generated.json',JSON.stringify(fs.readdirSync('src/static/themes')))"
|
||||
printf 'export * from "./lib/metadata"\n' > src/.metadata.generated.ts
|
||||
|
||||
|
|
|
|||
7
scripts/minify_json.js
Executable file
7
scripts/minify_json.js
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env node
|
||||
require("fs").writeFileSync(
|
||||
process.argv[2],
|
||||
JSON.stringify(
|
||||
JSON.parse(require("fs").readFileSync(process.argv[2], "utf8")),
|
||||
),
|
||||
)
|
||||
Loading…
Reference in a new issue