Merge pull request #19764 from overleaf/jpa-server-pro-cache

[server-pro] faster local build

GitOrigin-RevId: d71abde37253e4c0398afa6935290af79a1204be
This commit is contained in:
Jakob Ackermann
2024-08-07 08:04:24 +00:00
committed by Copybot
parent 7aaa78e635
commit 399e834e36
6 changed files with 29 additions and 20 deletions
-7
View File
@@ -19,8 +19,6 @@ switch (process.argv.pop()) {
console.log('npm install --include=dev')
// 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('npm install --omit=dev')
// precompile pug
@@ -37,8 +35,3 @@ switch (process.argv.pop()) {
console.log('exit 101')
process.exit(101)
}
console.log('set +x')
console.log(
'rm -rf /root/.cache /root/.npm $(find /tmp/ -mindepth 1 -maxdepth 1)'
)