Skip to content

Commit

Permalink
(Maybe faster builds)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja committed Sep 29, 2023
1 parent be05f6f commit 574b1fe
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile_CNP
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ withPipeline(type, product, component) {
])

afterSuccess('build') {
yarnBuilder.yarn('build')
yarnBuilder.yarn('build:dev')
}

afterSuccess('test') {
Expand Down
15 changes: 15 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@
"maximumWarning": "6kb"
}
]
},
"development": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": false,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": false,
"extractLicenses": false,
"vendorChunk": false
}
}
},
Expand Down
1 change: 1 addition & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"ng": "ng",
"build": "NODE_ENV=production webpack --config ./webpack-node.config.js",
"build:dev": "webpack --config ./webpack-node.config.js",
"coverage": "npx nyc mocha --config ./test/.mocharc.json -r dotenv-extended/config",
"lint": "npx tslint --project .",
"watch": "nodemon -r dotenv-extended/config --watch '**/*.ts' --exec ts-node local.ts",
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
"node": ">=12.13.0"
},
"scripts": {
"build": "export NODE_OPTIONS=--openssl-legacy-provider; yarn build:prod && yarn build:node",
"build": "yarn build:prod && yarn build:node",
"build:dev": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --configuration=development && yarn build:node:dev",
"build:docker": "docker build -t xui .",
"build:ng": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod build",
"build:node": "cd api && yarn build",
"build:node:dev": "cd api && yarn build:dev",
"build:prod": "node --max_old_space_size=8192 node_modules/@angular/cli/bin/ng build --prod",
"cve": "yarn audit --groups dependencies --json | grep auditAdvisory > yarn-audit-known-issues",
"clean": "rimraf node_modules",
Expand Down

0 comments on commit 574b1fe

Please sign in to comment.