@@ -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,17 +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 \
55
+ .npmrc .nvmrc .yarn .yarnrc.yml \
48
56
-x " yarn.lock" \
49
57
-x " .yarn/unplugged/**" \
50
58
-x " .yarn/cache/**" \
@@ -56,12 +64,19 @@ zip $fileout -r ./* \
56
64
-x " **/__tests__/**" \
57
65
-x " docs/**" -x " **/docs/**" \
58
66
-x " coverage/**" -x " **/coverage/**" \
67
+ -x " downloads/**" -x " **/downloads/**" \
68
+ -x " logs/**" -x " **/logs/**" \
59
69
-x " docker/**" \
60
70
-x " build/**" -x " **/build/**" \
71
+ -x " scripts/**" -x " **/scripts/**" \
72
+ -x " packages/taboule/**" \
61
73
-x " platforms/guardoni/**" \
62
- -x " platforms/tktrex/observatory/**" \
63
- -x " platforms/tktrex/ua-observatory/**" \
64
- -x " platforms/tktrex/tt-automate/**" \
65
74
-x " platforms/*/backend/**" \
75
+ -x " platforms/*/backend/**" \
76
+
77
+ zip $fileout scripts/install-from-shrinkzip.sh
78
+
79
+ rm README.md
80
+ mv .README.md README.md
66
81
67
82
echo " done!"
0 commit comments