Skip to content

Commit

Permalink
build: cleanup package.json and angular.json
Browse files Browse the repository at this point in the history
  • Loading branch information
maxokorokov committed Nov 7, 2023
1 parent 8b5768b commit ade9e4f
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 80 deletions.
136 changes: 62 additions & 74 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,23 @@
"codeCoverageExclude": ["src/test.ts", "src/test/**"]
},
"configurations": {
"tdd": {
"sourceMap": false
},
"coverage": {
"codeCoverage": true,
"sourceMap": true,
"progress": false,
"watch": false
},
"saucelabs": {
"sourceMap": false,
"progress": false,
"watch": false,
"karmaConfig": "src/karma.sauce.conf.js"
}
}
},
"defaultConfiguration": "tdd"
},
"lint": {
"builder": "@angular-eslint/builder:lint",
Expand All @@ -68,11 +78,6 @@
"polyfills": ["zone.js"],
"tsConfig": "demo/tsconfig.json",
"assets": [
{
"glob": "favicon.ico",
"input": "src",
"output": "/"
},
{
"glob": "**/*",
"input": "demo/src/public",
Expand All @@ -87,14 +92,7 @@
"demo/src/style/app.scss",
"demo/src/style/demos.css"
],
"scripts": [],
"aot": false,
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"scripts": []
},
"configurations": {
"production": {
Expand All @@ -104,14 +102,6 @@
"with": "demo/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -123,25 +113,37 @@
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
},
"ci": {
"outputHashing": "all",
"progress": false
}
},
"defaultConfiguration": ""
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"buildTarget": "demo:build"
},
"configurations": {
"production": {
"buildTarget": "demo:build:production"
"development": {
"buildTarget": "demo:build:development"
},
"playwright": {
"buildTarget": "demo:build:production",
"liveReload": false,
"watch": false
}
}
},
"defaultConfiguration": "development"
},
"lint": {
"builder": "@angular-eslint/builder:lint",
Expand Down Expand Up @@ -174,15 +176,7 @@
"tsConfig": "e2e-app/tsconfig.json",
"assets": ["e2e-app/src/favicon.ico"],
"styles": ["node_modules/bootstrap/dist/css/bootstrap.css", "e2e-app/src/style/app.scss"],
"scripts": [],
"progress": false,
"aot": false,
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"scripts": []
},
"configurations": {
"production": {
Expand All @@ -191,32 +185,32 @@
"replace": "e2e-app/src/environments/environment.ts",
"with": "e2e-app/src/environments/environment.prod.ts"
}
],
"optimization": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
]
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
},
"defaultConfiguration": ""
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"buildTarget": "e2e-app:build"
},
"configurations": {
"production": {
"buildTarget": "e2e-app:build:production"
"development": {
"buildTarget": "e2e-app:build:development"
},
"playwright": {
"buildTarget": "e2e-app:build:production",
"liveReload": false,
"watch": false
}
}
},
"defaultConfiguration": "development"
},
"lint": {
"builder": "@angular-eslint/builder:lint",
Expand Down Expand Up @@ -346,46 +340,40 @@
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "test-app/dist",
"index": "test-app/src/index.html",
"main": "test-app/src/main.ts",
"browser": "test-app/src/main.ts",
"polyfills": ["zone.js"],
"tsConfig": "test-app/tsconfig.json",
"assets": ["test-app/src/favicon.ico"],
"styles": ["node_modules/bootstrap/dist/css/bootstrap.css", "test-app/src/styles.css"],
"scripts": [],
"vendorChunk": true,
"extractLicenses": false,
"buildOptimizer": false,
"sourceMap": true,
"optimization": false,
"namedChunks": true
"scripts": []
},
"configurations": {
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true
"outputHashing": "all"
},
"development": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": ""
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"buildTarget": "test-app:build"
},
"configurations": {
"production": {
"buildTarget": "test-app:build:production"
},
"development": {
"buildTarget": "test-app:build:development"
}
}
},
"defaultConfiguration": "development"
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
"e2e-app:lint": "ng lint e2e-app",
"ngb:static": "ts-node --project misc/tsconfig.json misc/copy-static-files.ts",
"ngb:lint": "ng lint ng-bootstrap",
"ngb:test": "ng test ng-bootstrap --code-coverage --source-map true --progress false --watch false",
"ngb:tdd": "ng test ng-bootstrap --source-map false",
"ngb:test": "ng test ng-bootstrap -c coverage",
"ngb:tdd": "ng test ng-bootstrap",
"ngb:e2e": "playwright test -c e2e-app",
"ngb:build": "ng build ng-bootstrap -c production && yarn schematics:build && yarn ngb:static",
"demo:serve": "ng serve demo --host 0.0.0.0",
"demo:serve": "ng serve demo",
"demo:docs": "ts-node --project misc/tsconfig.json misc/generate-docs.ts",
"demo:stackblitzes": "ts-node --project misc/tsconfig.json misc/generate-stackblitzes.ts",
"demo:sources": "ts-node --project misc/tsconfig.json misc/extract-demo-sources.ts",
"demo:lint": "ng lint demo",
"demo:build": "yarn demo:lint && yarn demo:docs && yarn demo:sources && yarn demo:stackblitzes && ng build demo -c production",
"demo:build": "yarn demo:lint && yarn demo:docs && yarn demo:sources && yarn demo:stackblitzes && ng build demo",
"demo:publish": "gh-pages --dist demo/dist --branch master --repo https://github.com/ng-bootstrap/ng-bootstrap.github.io.git",
"demo:release-snapshot": "ts-node --project misc/tsconfig.json misc/demo-release-snapshot.ts",
"demo:e2e": "yarn demo:docs && playwright test -c demo",
Expand All @@ -48,11 +48,11 @@
"ssr-app:e2e": "playwright test -c ssr-app",
"ssr-app:build": "ng build ssr-app && ng run ssr-app:server",
"test-app:serve": "ng serve test-app",
"test-app:build": "NG_BUILD_MANGLE=false ng build test-app -c production --source-map true",
"test-app:build": "ng build test-app",
"schematics:build": "rollup --failAfterWarnings -c schematics/rollup.config.js",
"schematics:tdd": "ts-node-dev --respawn --project schematics/tsconfig.json node_modules/jasmine/bin/jasmine schematics/**/*.spec.ts",
"schematics:test": "ts-node --project schematics/tsconfig.json node_modules/jasmine/bin/jasmine schematics/**/*.spec.ts",
"ci": "yarn check-format && yarn test && yarn e2e && yarn build --progress false && yarn ssr"
"ci": "yarn check-format && yarn test && yarn e2e && yarn build -c ci && yarn ssr"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit ade9e4f

Please sign in to comment.