mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
aa142b3c09
[server-pro] add hotfixes 4.2.5 and 5.0.5 GitOrigin-RevId: 55a138662d3c2059ce802e6a6fd70e70fd01c8cd
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
--- a/genScript.js
|
|
+++ b/genScript.js
|
|
@@ -5,16 +5,26 @@ console.log('set -ex')
|
|
|
|
switch (process.argv.pop()) {
|
|
case 'install':
|
|
- console.log('npm ci')
|
|
+ console.log('npm install --omit=dev')
|
|
break
|
|
case 'compile':
|
|
for (const service of services) {
|
|
console.log('pushd', `services/${service.name}`)
|
|
switch (service.name) {
|
|
case 'web':
|
|
+ // Avoid downloading of cypress
|
|
+ console.log('export CYPRESS_INSTALL_BINARY=0')
|
|
+
|
|
+ // install webpack and frontend dependencies
|
|
+ console.log('npm install --include=dev')
|
|
+ // install misplaced dependencies (fixed via 18389)
|
|
+ console.log('pushd ../../ && npm install --include=dev --workspaces=false && popd')
|
|
+ // run webpack
|
|
console.log('npm run webpack:production')
|
|
// drop webpack/babel cache
|
|
console.log('rm -rf node_modules/.cache')
|
|
+ // uninstall webpack and frontend dependencies
|
|
+ console.log('pushd ../../ && npm install --omit=dev && popd')
|
|
break
|
|
default:
|
|
console.log(`echo ${service.name} does not require a compilation`)
|