Skip to content

Commit 87e3918

Browse files
committed
Migrate to application builder
1 parent 36783eb commit 87e3918

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
path: dist/
6363
- uses: crazy-max/ghaction-github-pages@v3
6464
with:
65-
build_dir: dist/demo
65+
build_dir: dist/demo/browser
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868

angular.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@
1111
"prefix": "app",
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular-devkit/build-angular:application",
1515
"options": {
1616
"outputPath": "dist/demo",
1717
"index": "src/index.html",
18-
"main": "src/main.ts",
19-
"polyfills": "src/polyfills.ts",
18+
"browser": "src/main.ts",
19+
"polyfills": ["src/polyfills.ts"],
2020
"tsConfig": "tsconfig.app.json",
2121
"assets": ["src/favicon.ico", "src/assets"],
2222
"styles": ["src/styles.css"],
2323
"scripts": [],
24-
"vendorChunk": true,
2524
"extractLicenses": false,
26-
"buildOptimizer": false,
2725
"sourceMap": true,
2826
"optimization": false,
2927
"namedChunks": true
@@ -41,8 +39,6 @@
4139
"sourceMap": false,
4240
"namedChunks": false,
4341
"extractLicenses": true,
44-
"vendorChunk": false,
45-
"buildOptimizer": true,
4642
"budgets": [
4743
{
4844
"type": "initial",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"lint": "ng lint --max-warnings 0",
1313
"e2e": "playwright test",
1414
"build-lib": "ng build fab-speed-dial && cp -v README.md dist/fab-speed-dial/ && cd dist/fab-speed-dial && yarn version --no-git-tag-version --new-version `git describe --tags --always`",
15-
"build-demo": "yarn build-lib && ng build demo --aot --base-href /fab-speed-dial/ && cp dist/demo/index.html dist/demo/404.html"
15+
"build-demo": "yarn build-lib && ng build demo --aot --base-href /fab-speed-dial/ && cp dist/demo/browser/index.html dist/demo/browser/404.html",
16+
"serve-demo": "echo '💡 open http://localhost:8000/fab-speed-dial/' && mkdir -p dist/server && ln -fs ../demo/browser dist/server/fab-speed-dial && php -S localhost:8000 -t dist/server/"
1617
},
1718
"dependencies": {
1819
"@angular/animations": "^17.1.1",

0 commit comments

Comments
 (0)