Skip to content

Commit

Permalink
build(tydux-angular): cleanup build scripts and angular.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sengmann committed Sep 7, 2022
1 parent 1485200 commit 35335e8
Show file tree
Hide file tree
Showing 3 changed files with 19,912 additions and 184 deletions.
283 changes: 125 additions & 158 deletions modules/tydux-angular/angular.json
Original file line number Diff line number Diff line change
@@ -1,167 +1,134 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"tydux-demo": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"style": "sass"
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/tydux-demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": [],
"es5BrowserSupport": true
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"tydux-demo": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"style": "sass"
}
],
"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"
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/tydux-demo",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": [],
"es5BrowserSupport": true
},
"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-devkit/build-angular:dev-server",
"options": {
"browserTarget": "tydux-demo:build"
},
"configurations": {
"production": {
"browserTarget": "tydux-demo:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "tydux-demo:build"
}
},
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"configPath": "../jest.config.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "tydux-demo:build"
},
"configurations": {
"production": {
"browserTarget": "tydux-demo:build:production"
"tydux-angular": {
"root": "projects/w11k/tydux-angular",
"sourceRoot": "projects/w11k/tydux-angular/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/w11k/tydux-angular/tsconfig.lib.json",
"project": "projects/w11k/tydux-angular/ng-package.json"
}
},
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"configPath": "../../../jest.config.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/w11k/tydux-angular/tsconfig.lib.json",
"projects/w11k/tydux-angular/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "tydux-demo:build"
}
},
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"configPath": "../jest.config.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"tydux": {
"root": "projects/w11k/tydux",
"sourceRoot": "projects/w11k/tydux/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/w11k/tydux/tsconfig.lib.json",
"project": "projects/w11k/tydux/ng-package.json"
}
},
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"configPath": "../../../jest.config.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/w11k/tydux/tsconfig.lib.json",
"projects/w11k/tydux/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"tydux-angular": {
"root": "projects/w11k/tydux-angular",
"sourceRoot": "projects/w11k/tydux-angular/src",
"projectType": "library",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/w11k/tydux-angular/tsconfig.lib.json",
"project": "projects/w11k/tydux-angular/ng-package.json"
}
},
"test": {
"builder": "@angular-builders/jest:run",
"options": {
"configPath": "../../../jest.config.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/w11k/tydux-angular/tsconfig.lib.json",
"projects/w11k/tydux-angular/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "tydux-demo"
"defaultProject": "tydux-demo"
}
Loading

0 comments on commit 35335e8

Please sign in to comment.