File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
21There are few ways typescript is treated here
32
43# transpile.sh
54
6- This is just for finding * .ts files and transpiling each file right next to * .js
5+ This is just for finding _ .ts files and transpiling each file right next to _ .js
76
87# bundle.sh
98
10- To find all * .entry.js & * .entry.jsx and transpiling to:
9+ To find all _ .entry.js & _ .entry.jsx and transpiling to:
1110
1211/dist/[ name] .bundle.js
1312/dist/[ name] .bundle.css
@@ -24,25 +23,3 @@ Is more flexible which can switch between transpiling and bundling for special c
2423See
2524pages/bash/xx/xx.node.cjs
2625that is good example how to override esbuild setup for individual files
27-
28-
29- # TODO
30- modify bundle.sh to take * .entry.ts too
31-
32-
33-
34-
35-
36-
37-
38-
39-
40-
41-
42-
43-
44-
45-
46-
47-
48-
Original file line number Diff line number Diff line change @@ -92,9 +92,7 @@ time /bin/bash scripts/template.sh
9292time node node_modules/envprocessor/dist/esm/cli.js --maskEnv EXPOSE_EXTRA_ENV_VARIABLES --verbose --debug build/preprocessed.js public/preprocessed.js
9393cp node_modules/envprocessor/dist/esm/env.js public/env.js
9494
95- time node esbuild-entries.js
96-
97- time /bin/bash esbuild-node.sh
95+ time /bin/bash bundle.sh bundle.ignore
9896
9997time /bin/bash .github/ytlinksfix.sh
10098
Original file line number Diff line number Diff line change 2222 exit 1
2323fi
2424
25+ rm -rf dist/
26+ mkdir -p dist/
27+
2528find . -type d \( \
2629 -name node_modules \
2730 -o -name .git \
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments