Skip to content

Commit 7686e49

Browse files
committed
feat(workspace): add implementation skeleton
1 parent 0afe1ab commit 7686e49

Some content is hidden

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

53 files changed

+5559
-110
lines changed

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120
4+
}

angular.json

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

0 commit comments

Comments
 (0)