File tree 6 files changed +235
-225
lines changed
examples/SmartSwitch/data
6 files changed +235
-225
lines changed Original file line number Diff line number Diff line change @@ -7,22 +7,18 @@ Based on https://github.com/birkett/cbintools/tree/master/c2bin and compiled wi
7
7
Tools used (on Win 10):
8
8
9
9
https://www.7-zip.org (install 7z and use gzip - command line)
10
- https://nodejs.org (install node then: npm install html-minifier-terser -g)
10
+ https://nodejs.org
11
+ (install node and npm install html-minifier-terser -g, npm install -g github-files-fetcher)
11
12
https://www.npmjs.com/package/html-minifier-terser
13
+ https://www.npmjs.com/package/github-files-fetcher
14
+
12
15
Optional:
13
16
https://bellard.org/tcc/ (to compile ehg.c and rehg.c)
14
17
18
+ Provided batch files (MS Win)
15
19
16
- do.bat: Batch file for generating edit.htm.gz.h
17
-
18
- copy ..\src\edit.htm edit_src.htm
19
- call html-minifier-terser --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --minify-css true --minify-js true -o edit.htm edit_src.htm
20
- "C:\Program Files\7-Zip\7z.exe" a -tgzip -mx9 edit.htm.gz edit.htm
21
- ehg.exe edit.htm.gz
22
- copy edit.htm.gz.h ..\src\edit.htm.gz.h
20
+ do.bat: Generates edit.htm.gz.h
23
21
22
+ undo.bat: Reverts edit.htm from C array header to file (still minified!)
24
23
25
- undo.bat: Batch file to revert from c array header (file still minified!)
26
- copy ..\src\edit.htm.gz.h edit.htm.gz.h
27
- rehg edit.htm.gz.h edit.htm.gz
28
- "C:\Program Files\7-Zip\7z.exe" e -tgzip edit.htm.gz
24
+ update_ace.bat: Updates acefull.js.gz from latest Github sources
Original file line number Diff line number Diff line change 1
1
copy ..\src\edit.htm edit_src.htm
2
- call html-minifier-terser --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --minify-css true --minify-js true -o edit.htm edit_src.htm
2
+ call html-minifier-terser --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --minify-css true --minify-js true -o edit.htm edit_src.htm
3
3
" C:\Program Files\7-Zip\7z.exe" a -tgzip -mx9 edit.htm.gz edit.htm
4
4
ehg edit.htm.gz
5
5
copy edit.htm.gz.h ..\src\edit.htm.gz.h
Original file line number Diff line number Diff line change
1
+ REM https://www.npmjs.com/package/github-files-fetcher
2
+ REM npm install -g github-files-fetcher
3
+ REM fetcher --url=resource_url --out=output_directory
4
+
5
+ call fetcher --url=" https://github.com/ajaxorg/ace-builds/blob/master/src-min-noconflict/ace.js" --out=tmp1
6
+ call fetcher --url=" https://github.com/ajaxorg/ace-builds/blob/master/src-min-noconflict/mode-html.js" --out=tmp1
7
+ call fetcher --url=" https://github.com/ajaxorg/ace-builds/blob/master/src-min-noconflict/theme-monokai.js" --out=tmp1
8
+
9
+ cd tmp1
10
+ type ace.js mode-html.js theme-monokai.js > acefull.js
11
+ " C:\Program Files\7-Zip\7z.exe" a -tgzip -mx9 acefull.js.gz acefull.js
12
+ REM update:
13
+ copy acefull.js.gz ..\..\examples\SmartSwitch\data\acefull.js.gz
14
+ pause
You can’t perform that action at this time.
0 commit comments