This repository has been archived by the owner on Apr 17, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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)
- Loading branch information
Showing
6 changed files
with
7,617 additions
and
5,021 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"version": 1, | ||
"newProjectRoot": "projects", | ||
"projects": { | ||
"z-wallet": { | ||
"root": "", | ||
"sourceRoot": "src", | ||
"projectType": "application", | ||
"prefix": "app", | ||
"schematics": {}, | ||
"architect": { | ||
"build": { | ||
"builder": "@angular-builders/custom-webpack:browser", | ||
"options": { | ||
"customWebpackConfig": { | ||
"path": "./webpack.config.js" | ||
}, | ||
"outputPath": "dist", | ||
"index": "src/index.html", | ||
"main": "src/main.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.app.json", | ||
"assets": [ | ||
"src/favicon.ico", | ||
"src/assets", | ||
"src/set-env.ts", | ||
"src/worker-json.js" | ||
], | ||
"styles": [ | ||
"src/styles.css", | ||
"./node_modules/font-awesome/css/font-awesome.css" | ||
], | ||
"scripts": [ | ||
"./node_modules/jquery/dist/jquery.min.js", | ||
"./node_modules/popper.js/dist/umd/popper.js", | ||
"./node_modules/bootstrap/dist/js/bootstrap.min.js", | ||
"./node_modules/ace-builds/src-min/ace.js", | ||
"./node_modules/ace-builds/src-min/ext-searchbox.js", | ||
"./node_modules/ace-builds/src-min/mode-ocaml.js", | ||
"./node_modules/ace-builds/src-min/mode-json.js", | ||
"./node_modules/ace-builds/src-min/worker-json.js" | ||
] | ||
}, | ||
"configurations": { | ||
"production": { | ||
"fileReplacements": [ | ||
{ | ||
"replace": "src/environments/environment.ts", | ||
"with": "src/environments/environment.prod.ts" | ||
} | ||
], | ||
"optimization": true, | ||
"outputHashing": "all", | ||
"sourceMap": false, | ||
"extractCss": true, | ||
"namedChunks": false, | ||
"aot": true, | ||
"extractLicenses": true, | ||
"vendorChunk": false, | ||
"buildOptimizer": true, | ||
"budgets": [ | ||
{ | ||
"type": "initial", | ||
"maximumWarning": "2mb", | ||
"maximumError": "5mb" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"serve": { | ||
"builder": "@angular-builders/dev-server:generic", | ||
"options": { | ||
"browserTarget": "z-wallet:build" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"browserTarget": "z-wallet:build:production" | ||
} | ||
} | ||
}, | ||
"extract-i18n": { | ||
"builder": "@angular-devkit/build-angular:extract-i18n", | ||
"options": { | ||
"browserTarget": "z-wallet:build" | ||
} | ||
}, | ||
"test": { | ||
"builder": "@angular-devkit/build-angular:karma", | ||
"options": { | ||
"main": "src/test.ts", | ||
"polyfills": "src/polyfills.ts", | ||
"tsConfig": "src/tsconfig.spec.json", | ||
"karmaConfig": "src/karma.conf.js", | ||
"styles": ["src/styles.css"], | ||
"scripts": [], | ||
"assets": ["src/favicon.ico", "src/assets"] | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"], | ||
"exclude": ["**/node_modules/**"] | ||
} | ||
} | ||
} | ||
}, | ||
"z-wallet-e2e": { | ||
"root": "e2e/", | ||
"projectType": "application", | ||
"prefix": "", | ||
"architect": { | ||
"e2e": { | ||
"builder": "@angular-devkit/build-angular:protractor", | ||
"options": { | ||
"protractorConfig": "e2e/protractor.conf.js", | ||
"devServerTarget": "z-wallet:serve" | ||
}, | ||
"configurations": { | ||
"production": { | ||
"devServerTarget": "z-wallet:serve:production" | ||
} | ||
} | ||
}, | ||
"lint": { | ||
"builder": "@angular-devkit/build-angular:tslint", | ||
"options": { | ||
"tsConfig": "e2e/tsconfig.e2e.json", | ||
"exclude": ["**/node_modules/**"] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"defaultProject": "z-wallet" | ||
} |
Oops, something went wrong.