8000 Merge pull request #31 from manekinekko/update-template · staticwebdev/angular-basic@20e51f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 20e51f0

Browse files
authored
Merge pull request #31 from manekinekko/update-template
chore: update template
2 parents f9cd80a + 136fc2a commit 20e51f0

File tree

9 files changed

+20975
-12299
lines changed

9 files changed

+20975
-12299
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ speed-measure-plugin*.json
3232
.history/*
3333

3434
# misc
35+
/.angular/cache
3536
/.sass-cache
3637
/connect.lock
3738
/coverage

README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,53 @@
33
[Azure Static Web Apps](https://docs.microsoft.com/azure/static-web-apps/overview) allows you to easily build [Angular](https://angular.io/) apps in minutes. Use this repo with the [Angular quickstart](https://docs.microsoft.com/azure/static-web-apps/getting-started?tabs=angular) to build and customize a new static site.
44

55
This project was generated with [Angular CLI](https://github.com/angular/angular-cli).
6+
7+
## Project setup
8+
9+
```bash
10+
npm install
11+
```
12+
13+
### Start the dev server
14+
15+
```bash
16+
npm run swa:start
17+
```
18+
19+
> Note: This command will use the local configuration file `swa-cli.config.json`.
20+
21+
### Run unit tests
22+
23+
```bash
24+
npm test
25+
```
26+
27+
### Run e2e tests
28+
29+
```bash
30+
npm run e2e
31+
```
32+
33+
### Lints and fixes files
34+
35+
```bash
36+
npm run lint
37+
```
38+
39+
### Compiles and minifies for production
40+
41+
```bash
42+
npm run build
43+
```
44+
45+
### Login to Azure
46+
47+
```bash
48+
npm run swa:login
49+
```
50+
51+
### Deploy to Azure
52+
53+
```bash
54+
npm run swa:deploy
55+
```

angular.json

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@
2121
"main": "src/main.ts",
2222
"polyfills": "src/polyfills.ts",
2323
"tsConfig": "tsconfig.app.json",
24-
"aot": true,
2524
"assets": ["src/favicon.ico", "src/assets"],
2625
"styles": ["src/styles.css"],
27-
"scripts": []
26+
"scripts": [],
27+
"vendorChunk": true,
28+
"extractLicenses": false,
29+
"buildOptimizer": false,
30+
"sourceMap": true,
31+
"optimization": false,
32+
"namedChunks": true
2833
},
2934
"configurations": {
3035
"production": {
@@ -54,7 +59,8 @@
5459
}
5560
]
5661
}
57-
}
62+
},
63+
"defaultConfiguration": ""
5864
},
5965
"serve": {
6066
"builder": "@angular-devkit/build-angular:dev-server",
@@ -85,17 +91,6 @@
8591
"scripts": []
8692
}
8793
},
88-
"lint": {
89-
"builder": "@angular-devkit/build-angular:tslint",
90-
"options": {
91-
"tsConfig": [
92-
"tsconfig.app.json",
93-
"tsconfig.spec.json",
94-
"e2e/tsconfig.json"
95-
],
96-
"exclude": ["**/node_modules/**"]
97-
}
98-
},
9994
"e2e": {
10095
"builder": "@angular-devkit/build-angular:protractor",
10196
"options": {

0 commit comments

Comments
 (0)
0