Sfoglia il codice sorgente

[server-ce] precompile pug files concurrent to npm-i-dev/webpack build (#23824)

GitOrigin-RevId: 7fd153dd0fa89ca4bc12efc1e26276844ff9431a
Jakob Ackermann 1 anno fa
parent
commit
d65be7772d
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      server-ce/genScript.js

+ 7 - 2
server-ce/genScript.js

@@ -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`)