Skip to content

Commit 6a101b4

Browse files
committed
chore: use application builder for demo app
1 parent 7b0da0d commit 6a101b4

File tree

6 files changed

+20
-73
lines changed

6 files changed

+20
-73
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ npm-debug.log
4141
yarn-error.log
4242
testem.log
4343
/typings
44+
/.nx
4445

4546
# System Files
4647
.DS_Store

angular.json

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,16 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:browser",
18+
"builder": "@angular-devkit/build-angular:application",
1919
"options": {
2020
"outputPath": "dist/angular-material-css-vars",
2121
"index": "src/index.html",
22-
"main": "src/main.ts",
23-
"polyfills": "src/polyfills.ts",
22+
"browser": "src/main.ts",
23+
"polyfills": ["zone.js"],
2424
"tsConfig": "tsconfig.app.json",
2525
"assets": ["src/favicon.ico", "src/assets"],
2626
"styles": ["src/styles.scss"],
27-
"scripts": [],
28-
"vendorChunk": true,
29-
"extractLicenses": false,
30-
"buildOptimizer": false,
31-
"sourceMap": true,
32-
"optimization": false,
33-
"namedChunks": true
27+
"scripts": []
3428
},
3529
"configurations": {
3630
"production": {
@@ -40,13 +34,7 @@
4034
"with": "src/environments/environment.prod.ts"
4135
}
4236
],
43-
"optimization": true,
4437
"outputHashing": "all",
45-
"sourceMap": false,
46-
"namedChunks": false,
47-
"extractLicenses": true,
48-
"vendorChunk": false,
49-
"buildOptimizer": true,
5038
"budgets": [
5139
{
5240
"type": "initial",
@@ -58,6 +46,12 @@
5846
"maximumWarning": "6kb"
5947
}
6048
]
49+
},
50+
"development": {
51+
"optimization": false,
52+
"extractLicenses": false,
53+
"sourceMap": true,
54+
"namedChunks": true
6155
}
6256
}
6357
},
@@ -69,8 +63,12 @@
6963
"configurations": {
7064
"production": {
7165
"buildTarget": "angular-material-css-vars:build:production"
66+
},
67+
"development": {
68+
"buildTarget": "angular-material-css-vars:build:development"
7269
}
73-
}
70+
},
71+
"defaultConfiguration": "development"
7472
},
7573
"extract-i18n": {
7674
"builder": "@angular-devkit/build-angular:extract-i18n",
@@ -135,7 +133,7 @@
135133
"cli": {
136134
"analytics": false,
137135
"cache": {
138-
"enabled": false
136+
"enabled": true
139137
},
140138
"schematicCollections": ["@angular-eslint/schematics"]
141139
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"ubl": "npx browserslist@latest --update-db",
1111
"demo": "run-s demo.build demo.gh-pages",
1212
"demo.build": "ng build --aot --configuration production --base-href='./'",
13-
"demo.gh-pages": "gh-pages -d dist/angular-material-css-vars",
13+
"demo.gh-pages": "gh-pages -d dist/angular-material-css-vars/browser",
1414
"lib": "run-s lib.build copy",
1515
"lib.build": "ng build material-css-vars",
1616
"copy": "run-s copy.licence copy.readme",

src/polyfills.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@use "/projects/material-css-vars" as mat-css-vars;
1+
@use "../projects/material-css-vars" as mat-css-vars;
22
@use "@angular/material" as mat;
33

44
@import "./app/app.theme";

tsconfig.app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"outDir": "./out-tsc/app",
55
"types": []
66
},
7-
"files": ["src/main.ts", "src/polyfills.ts"],
7+
"files": ["src/main.ts"],
88
"include": ["src/**/*.d.ts"]
99
}

0 commit comments

Comments
 (0)