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