@@ -21,9 +21,9 @@ mkdir -p build;
21
21
# exit;
22
22
# fi
23
23
24
- # this is the biggest cache
25
- echo " Removing .yarn/cache "
26
- # rm -rf .yarn/cache
24
+ suffix= $( ' grep version package.json | sed -es/.*:// | sed -es/[\ \",]//g ' )
25
+ fileout= " build/trex ${suffix} .zip "
26
+ echo " zipping in $fileout "
27
27
28
28
# this should not be present anyways
29
29
echo " Removing node_modules"
@@ -34,18 +34,25 @@ echo "Removing test files and unnecessary folders"
34
34
# rm -rf platforms/*/backend
35
35
36
36
echo " Creating new version of README for extension reviewer"
37
- echo -e " ### Extension reviewer TODOs\n\n yarn\n yarn tk:ext dist\n ls -l platforms/tktrex/extension/dist/*.zip\n yarn yt:ext dist\n ls -l platforms/yttrex/extension/dist/*.zip\n yarn ycai build\n ls -l platforms/ycai/studio/build/extension/*.zip\n\n" > README.md
38
- echo " tktrex is tiktok.tracking.exposed extension" >> README.md
39
- echo " yttrex is youtube.tracking.exposed extension" >> README.md
40
- echo " ycai is youchoose.ai extension" >> README.md
37
+ echo -e " ## Extension reviewer TODOs\n\n" > TODO.md
38
+ echo -e ' Place the `trex.zip` in a folder an unzip it \n' >> TODO.md
39
+ echo -e " ### Requirements\n" >> TODO.md
40
+ echo -e ' - yarn `v3`\n - node `16` \n' >> TODO.md
41
+ echo -e " #### Installation \n" >> TODO.md
42
+ echo -e ' Install dependencies\n' >> TODO.md
43
+ echo -e ' ```bash\nyarn\n```\n' >> TODO.md
44
+ echo -e " tktrex is tiktok.tracking.exposed extension\n" >> TODO.md
45
+ echo -e ' ```bash\nyarn tk:ext dist\nls -l platforms/tktrex/extension/dist/*.zip\n```\n' >> TODO.md
46
+ echo -e " yttrex is youtube.tracking.exposed extension\n" >> TODO.md
47
+ echo -e ' ```bash\nyarn yt:ext dist\nls -l platforms/yttrex/extension/dist/*.zip\n```\n' >> TODO.md
48
+ echo -e " ycai is youchoose.ai extension\n" >> TODO.md
49
+ echo -e ' ```bash\nyarn ycai build\nls -l platforms/ycai/studio/build/extension/*.zip\n```\n' >> TODO.md
41
50
42
- suffix=$( ' grep version package.json | sed -es/.*:// | sed -es/[\ \",]//g' )
43
- fileout=" build/trex${suffix} .zip"
44
- echo " zipping in $fileout "
51
+ mv README.md .README.md
52
+ mv TODO.md README.md
45
53
46
54
zip $fileout -r ./* \
47
- .npmrc .nvmrc .yarn .yarnrc.yml \
48
- -x " yarn.lock" \
55
+ .npmrc .nvmrc .yarn .yarnrc.yml \
49
56
-x " .yarn/unplugged/**" \
50
57
-x " .yarn/cache/**" \
51
58
-x " .vscode/**" \
@@ -56,12 +63,15 @@ zip $fileout -r ./* \
56
63
-x " **/__tests__/**" \
57
64
-x " docs/**" -x " **/docs/**" \
58
65
-x " coverage/**" -x " **/coverage/**" \
66
+ -x " downloads/**" -x " **/downloads/**" \
67
+ -x " logs/**" -x " **/logs/**" \
59
68
-x " docker/**" \
60
69
-x " build/**" -x " **/build/**" \
61
- -x " platforms/guardoni/**" \
62
- -x " platforms/tktrex/observatory/**" \
63
- -x " platforms/tktrex/ua-observatory/**" \
64
- -x " platforms/tktrex/tt-automate/**" \
65
- -x " platforms/*/backend/**" \
70
+ -x " scripts/**" -x " **/scripts/**"
71
+
72
+ zip $fileout scripts/install-from-shrinkzip.sh
73
+
74
+ rm README.md
75
+ mv .README.md README.md
66
76
67
77
echo " done!"
0 commit comments