Commit Graph

20 Commits

Author SHA1 Message Date
Miao Wang e802728b44 add docker image for build environment 2024-04-21 13:17:19 +08:00
Harry Chen c147d43a86 Format code
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Harry Chen 5d499c4ef7 Add typescript shim for .vue files
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Harry Chen 7328ec3415 Switch some js files to ts for better typing
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Miao Wang 7ab0379dfa force use tersor to minify njs
because esbuild will generate export { ... as default } statements and
not supported by njs
2024-04-21 13:17:19 +08:00
Miao Wang 88adaa9ba4 transform non-default imports and exports using babel
since they are not supported by njs.

polyfill also added
2024-04-21 13:17:19 +08:00
Miao Wang d2f1d2d75b using vite to bundle njs scripts 2024-04-21 13:17:19 +08:00
Miao Wang e5e9c00c38 pass config through fd 2024-04-21 13:17:19 +08:00
Miao Wang 839bb69d09 Using babel for polyfill js 2024-04-21 13:17:19 +08:00
Miao Wang 7f412ef033 clearify the usage of empty target 2024-04-21 13:17:19 +08:00
Miao Wang 545383baf0 add entries for visualizer
Cherry-Picked from ce05e10
2024-04-21 13:17:19 +08:00
Harry Chen 6f9fbcfe31 Format vite config as well
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:19 +08:00
Miao Wang bb9370aee7 polyfill! 2024-04-21 13:17:19 +08:00
Miao Wang 5ef1cad7c3 make stats optional and ignored by jekyll 2024-04-21 13:17:18 +08:00
Harry Chen 46b340b732 Add visualizer plugin to vite
Signed-off-by: Harry Chen <i@harrychen.xyz>
2024-04-21 13:17:18 +08:00
Miao Wang 893083b089 remove thuhidden 2024-04-21 13:17:18 +08:00
Miao Wang 48d72f0fcf [WIP] using vue component 2024-04-21 13:17:18 +08:00
Miao Wang 5496373a19 extract style from help pages 2024-04-21 13:17:18 +08:00
Miao Wang 12d8cf1fa7 vite.config: also export help pages 2024-04-21 13:17:18 +08:00
Miao Wang e014df8126 Basic vite rendering config 2024-04-21 13:17:18 +08:00