Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.

Commit 7496434

Browse files
committed
chore(): fix npm-audit vulnerabilities
This fixes vulnerable build dependencies mainly by upgrading @angular/* packages to updated versions. The angular project defintion has changed accordingly, and incorporates a custom webpack config adapted from this guide: angular/angular-cli#1548 (comment)
1 parent 9a9a89b commit 7496434

File tree

6 files changed

+7617
-5021
lines changed

6 files changed

+7617
-5021
lines changed

.angular-cli.json

Lines changed: 0 additions & 72 deletions
This file was deleted.

angular.json

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"z-wallet": {
7+
"root": "",
8+
"sourceRoot": "src",
9+
"projectType": "application",
10+
"prefix": "app",
11+
"schematics": {},
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-builders/custom-webpack:browser",
15+
"options": {
16+
"customWebpackConfig": {
17+
"path": "./webpack.config.js"
18+
},
19+
"outputPath": "dist",
20+
"index": "src/index.html",
21+
"main": "src/main.ts",
22+
"polyfills": "src/polyfills.ts",
23+
"tsConfig": "src/tsconfig.app.json",
24+
"assets": [
25+
"src/favicon.ico",
26+
"src/assets",
27+
"src/set-env.ts",
28+
"src/worker-json.js"
29+
],
30+
"styles": [
31+
"src/styles.css",
32+
"./node_modules/font-awesome/css/font-awesome.css"
33+
],
34+
"scripts": [
35+
"./node_modules/jquery/dist/jquery.min.js",
36+
"./node_modules/popper.js/dist/umd/popper.js",
37+
"./node_modules/bootstrap/dist/js/bootstrap.min.js",
38+
"./node_modules/ace-builds/src-min/ace.js",
39+
"./node_modules/ace-builds/src-min/ext-searchbox.js",
40+
"./node_modules/ace-builds/src-min/mode-ocaml.js",
41+
"./node_modules/ace-builds/src-min/mode-json.js",
42+
"./node_modules/ace-builds/src-min/worker-json.js"
43+
]
44+
},
45+
"configurations": {
46+
"production": {
47+
"fileReplacements": [
48+
{
49+
"replace": "src/environments/environment.ts",
50+
"with": "src/environments/environment.prod.ts"
51+
}
52+
],
53+
"optimization": true,
54+
"outputHashing": "all",
55+
"sourceMap": false,
56+
"extractCss": true,
57+
"namedChunks": false,
58+
"aot": true,
59+
"extractLicenses": true,
60+
"vendorChunk": false,
61+
"buildOptimizer": true,
62+
"budgets": [
63+
{
64+
"type": "initial",
65+
"maximumWarning": "2mb",
66+
"maximumError": "5mb"
67+
}
68+
]
69+
}
70+
}
71+
},
72+
"serve": {
73+
"builder": "@angular-builders/dev-server:generic",
74+
"options": {
75+
"browserTarget": "z-wallet:build"
76+
},
77+
"configurations": {
78+
"production": {
79+
"browserTarget": "z-wallet:build:production"
80+
}
81+
}
82+
},
83+
"extract-i18n": {
84+
"builder": "@angular-devkit/build-angular:extract-i18n",
85+
"options": {
86+
"browserTarget": "z-wallet:build"
87+
}
88+
},
89+
"test": {
90+
"builder": "@angular-devkit/build-angular:karma",
91+
"options": {
92+
"main": "src/test.ts",
93+
"polyfills": "src/polyfills.ts",
94+
"tsConfig": "src/tsconfig.spec.json",
95+
"karmaConfig": "src/karma.conf.js",
96+
"styles": ["src/styles.css"],
97+
"scripts": [],
98+
"assets": ["src/favicon.ico", "src/assets"]
99+
}
100+
},
101+
"lint": {
102+
"builder": "@angular-devkit/build-angular:tslint",
103+
"options": {
104+
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
105+
"exclude": ["**/node_modules/**"]
106+
}
107+
}
108+
}
109+
},
110+
"z-wallet-e2e": {
111+
"root": "e2e/",
112+
"projectType": "application",
113+
"prefix": "",
114+
"architect": {
115+
"e2e": {
116+
"builder": "@angular-devkit/build-angular:protractor",
117+
"options": {
118+
"protractorConfig": "e2e/protractor.conf.js",
119+
"devServerTarget": "z-wallet:serve"
120+
},
121+
"configurations": {
122+
"production": {
123+
"devServerTarget": "z-wallet:serve:production"
124+
}
125+
}
126+
},
127+
"lint": {
128+
"builder": "@angular-devkit/build-angular:tslint",
129+
"options": {
130+
"tsConfig": "e2e/tsconfig.e2e.json",
131+
"exclude": ["**/node_modules/**"]
132+
}
133+
}
134+
}
135+
}
136+
},
137+
"defaultProject": "z-wallet"
138+
}

0 commit comments

Comments
 (0)