mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[server-ce] precompile pug files concurrent to npm-i-dev/webpack build (#23824)
GitOrigin-RevId: 7fd153dd0fa89ca4bc12efc1e26276844ff9431a
This commit is contained in:
@@ -12,6 +12,10 @@ switch (process.argv.pop()) {
|
||||
console.log('pushd', `services/${service.name}`)
|
||||
switch (service.name) {
|
||||
case 'web':
|
||||
// precompile pug in background
|
||||
console.log('npm run precompile-pug &')
|
||||
console.log('pug_precompile=$!')
|
||||
|
||||
// Avoid downloading of cypress
|
||||
console.log('export CYPRESS_INSTALL_BINARY=0')
|
||||
|
||||
@@ -21,8 +25,9 @@ switch (process.argv.pop()) {
|
||||
console.log('npm run webpack:production')
|
||||
// uninstall webpack and frontend dependencies
|
||||
console.log('npm install --omit=dev')
|
||||
// precompile pug
|
||||
console.log('npm run precompile-pug')
|
||||
|
||||
// Wait for pug precompile to finish
|
||||
console.log('wait "$pug_precompile"')
|
||||
break
|
||||
default:
|
||||
console.log(`echo ${service.name} does not require a compilation`)
|
||||
|
||||
Reference in New Issue
Block a user