Skip to content

Commit b8ef773

Browse files
committed
q
1 parent 0202f61 commit b8ef773

5 files changed

Lines changed: 6 additions & 177 deletions

File tree

TRANSPILATION.md

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
21
There 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
2423
See
2524
pages/bash/xx/xx.node.cjs
2625
that 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-

build.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ time /bin/bash scripts/template.sh
9292
time node node_modules/envprocessor/dist/esm/cli.js --maskEnv EXPOSE_EXTRA_ENV_VARIABLES --verbose --debug build/preprocessed.js public/preprocessed.js
9393
cp 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

9997
time /bin/bash .github/ytlinksfix.sh
10098

bundle.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ EEE
2222
exit 1
2323
fi
2424

25+
rm -rf dist/
26+
mkdir -p dist/
27+
2528
find . -type d \( \
2629
-name node_modules \
2730
-o -name .git \

esbuild-entries.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

libs/utils.js

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)