Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit b61cebb

Browse files
chore: 🤖 add lib and playground app
1 parent fa7b22d commit b61cebb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1380
-197
lines changed

angular.json

Lines changed: 164 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,170 @@
22
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
33
"version": 1,
44
"newProjectRoot": "projects",
5-
"projects": {},
5+
"projects": {
6+
"ngx-errors": {
7+
"projectType": "library",
8+
"root": "projects/ngx-errors",
9+
"sourceRoot": "projects/ngx-errors/src",
10+
"prefix": "lib",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-ng-packagr:build",
14+
"options": {
15+
"tsConfig": "projects/ngx-errors/tsconfig.lib.json",
16+
"project": "projects/ngx-errors/ng-package.json"
17+
},
18+
"configurations": {
19+
"production": {
20+
"tsConfig": "projects/ngx-errors/tsconfig.lib.prod.json"
21+
}
22+
}
23+
},
24+
"test": {
25+
"builder": "@angular-devkit/build-angular:karma",
26+
"options": {
27+
"main": "projects/ngx-errors/src/test.ts",
28+
"tsConfig": "projects/ngx-errors/tsconfig.spec.json",
29+
"karmaConfig": "projects/ngx-errors/karma.conf.js"
30+
}
31+
},
32+
"lint": {
33+
"builder": "@angular-devkit/build-angular:tslint",
34+
"options": {
35+
"tsConfig": [
36+
"projects/ngx-errors/tsconfig.lib.json",
37+
"projects/ngx-errors/tsconfig.spec.json"
38+
],
39+
"exclude": [
40+
"**/node_modules/**"
41+
]
42+
}
43+
}
44+
}
45+
},
46+
"playground": {
47+
"projectType": "application",
48+
"schematics": {
49+
"@schematics/angular:component": {
50+
"style": "scss"
51+
}
52+
},
53+
"root": "projects/playground",
54+
"sourceRoot": "projects/playground/src",
55+
"prefix": "app",
56+
"architect": {
57+
"build": {
58+
"builder": "@angular-devkit/build-angular:browser",
59+
"options": {
60+
"outputPath": "dist/playground",
61+
"index": "projects/playground/src/index.html",
62+
"main": "projects/playground/src/main.ts",
63+
"polyfills": "projects/playground/src/polyfills.ts",
64+
"tsConfig": "projects/playground/tsconfig.app.json",
65+
"aot": true,
66+
"assets": [
67+
"projects/playground/src/favicon.ico",
68+
"projects/playground/src/assets"
69+
],
70+
"styles": [
71+
"projects/playground/src/styles.scss"
72+
],
73+
"scripts": []
74+
},
75+
"configurations": {
76+
"production": {
77+
"fileReplacements": [
78+
{
79+
"replace": "projects/playground/src/environments/environment.ts",
80+
"with": "projects/playground/src/environments/environment.prod.ts"
81+
}
82+
],
83+
"optimization": true,
84+
"outputHashing": "all",
85+
"sourceMap": false,
86+
"extractCss": true,
87+
"namedChunks": false,
88+
"extractLicenses": true,
89+
"vendorChunk": false,
90+
"buildOptimizer": true,
91+
"budgets": [
92+
{
93+
"type": "initial",
94+
"maximumWarning": "2mb",
95+
"maximumError": "5mb"
96+
},
97+
{
98+
"type": "anyComponentStyle",
99+
"maximumWarning": "6kb",
100+
"maximumError": "10kb"
101+
}
102+
]
103+
}
104+
}
105+
},
106+
"serve": {
107+
"builder": "@angular-devkit/build-angular:dev-server",
108+
"options": {
109+
"browserTarget": "playground:build"
110+
},
111+
"configurations": {
112+
"production": {
113+
"browserTarget": "playground:build:production"
114+
}
115+
}
116+
},
117+
"extract-i18n": {
118+
"builder": "@angular-devkit/build-angular:extract-i18n",
119+
"options": {
120+
"browserTarget": "playground:build"
121+
}
122+
},
123+
"test": {
124+
"builder": "@angular-devkit/build-angular:karma",
125+
"options": {
126+
"main": "projects/playground/src/test.ts",
127+
"polyfills": "projects/playground/src/polyfills.ts",
128+
"tsConfig": "projects/playground/tsconfig.spec.json",
129+
"karmaConfig": "projects/playground/karma.conf.js",
130+
"assets": [
131+
"projects/playground/src/favicon.ico",
132+
"projects/playground/src/assets"
133+
],
134+
"styles": [
135+
"projects/playground/src/styles.scss"
136+
],
137+
"scripts": []
138+
}
139+
},
140+
"lint": {
141+
"builder": "@angular-devkit/build-angular:tslint",
142+
"options": {
143+
"tsConfig": [
144+
"projects/playground/tsconfig.app.json",
145+
"projects/playground/tsconfig.spec.json",
146+
"projects/playground/e2e/tsconfig.json"
147+
],
148+
"exclude": [
149+
"**/node_modules/**"
150+
]
151+
}
152+
},
153+
"e2e": {
154+
"builder": "@angular-devkit/build-angular:protractor",
155+
"options": {
156+
"protractorConfig": "projects/playground/e2e/protractor.conf.js",
157+
"devServerTarget": "playground:serve"
158+
},
159+
"configurations": {
160+
"production": {
161+
"devServerTarget": "playground:serve:production"
162+
}
163+
}
164+
}
165+
}
166+
}},
6167
"cli": {
7168
"analytics": "1fda32b1-7b29-416a-8ab5-4ab9bb640931"
8-
}
169+
},
170+
"defaultProject": "playground"
9171
}

0 commit comments

Comments
 (0)