Skip to content

Commit a49debd

Browse files
9kubczas4leoortizzYuangwang
authored
feat: Angular boilerplate (#174)
* feat: Angular boilerplate * feat: remove links container * feat: revert removing styles for links * feat: update titles * Update starters/angular/basic/README.md Co-authored-by: Leonardo Ortiz <leo@monogram.io> * Update starters/angular/basic/server.ts Co-authored-by: Leonardo Ortiz <leo@monogram.io> --------- Co-authored-by: Leonardo Ortiz <leo@monogram.io> Co-authored-by: Yuangwang <yuangwang2@gmail.com>
1 parent 1074f7a commit a49debd

Some content is hidden

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

54 files changed

+13731
-0
lines changed

starters/angular/basic/.gitignore

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
/bazel-out
8+
9+
# Node
10+
/node_modules
11+
npm-debug.log
12+
yarn-error.log
13+
14+
# IDEs and editors
15+
.idea/
16+
.project
17+
.classpath
18+
.c9/
19+
*.launch
20+
.settings/
21+
*.sublime-workspace
22+
23+
# Visual Studio Code
24+
.vscode/*
25+
!.vscode/settings.json
26+
!.vscode/tasks.json
27+
!.vscode/launch.json
28+
!.vscode/extensions.json
29+
.history/*
30+
31+
# Miscellaneous
32+
/.angular/cache
33+
.sass-cache/
34+
/connect.lock
35+
/coverage
36+
/libpeerconnection.log
37+
testem.log
38+
/typings
39+
/src/environment
40+
41+
# System files
42+
.DS_Store
43+
Thumbs.db
44+
45+
# Firebase
46+
.firebase
47+
*-debug.log
48+
.runtimeconfig.json

starters/angular/basic/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Angular on Firebase App Hosting
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.1.0-rc.0.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.
8+
9+
## Code scaffolding
10+
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12+
13+
## Build
14+
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory.
16+
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
28+
29+
## Deploy to Firebase
30+
31+
Run `firebase init hosting`, then `firebase deploy`.

starters/angular/basic/angular.json

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"firebase-app-hosting-angular": {
7+
"projectType": "application",
8+
"schematics": {
9+
"@schematics/angular:component": {
10+
"style": "scss"
11+
}
12+
},
13+
"root": "",
14+
"sourceRoot": "src",
15+
"prefix": "app",
16+
"architect": {
17+
"build": {
18+
"builder": "@angular-devkit/build-angular:application",
19+
"options": {
20+
"outputPath": "dist/firebase-app-hosting-angular",
21+
"index": "src/index.html",
22+
"browser": "src/main.ts",
23+
"polyfills": [
24+
"zone.js"
25+
],
26+
"tsConfig": "tsconfig.app.json",
27+
"inlineStyleLanguage": "scss",
28+
"assets": [
29+
"src/favicon.ico",
30+
"src/assets"
31+
],
32+
"styles": [
33+
"src/styles.scss"
34+
],
35+
"scripts": [],
36+
"server": "src/main.server.ts",
37+
"prerender": {
38+
"routesFile": "routes.txt",
39+
"discoverRoutes": false
40+
},
41+
"ssr": {
42+
"entry": "server.ts"
43+
}
44+
},
45+
"configurations": {
46+
"production": {
47+
"budgets": [
48+
{
49+
"type": "initial",
50+
"maximumWarning": "500kb",
51+
"maximumError": "1mb"
52+
},
53+
{
54+
"type": "anyComponentStyle",
55+
"maximumWarning": "2kb",
56+
"maximumError": "4kb"
57+
}
58+
],
59+
"outputHashing": "all"
60+
},
61+
"development": {
62+
"optimization": false,
63+
"extractLicenses": false,
64+
"sourceMap": true
65+
}
66+
},
67+
"defaultConfiguration": "production"
68+
},
69+
"serve": {
70+
"builder": "@angular-devkit/build-angular:dev-server",
71+
"configurations": {
72+
"production": {
73+
"buildTarget": "firebase-app-hosting-angular:build:production"
74+
},
75+
"development": {
76+
"buildTarget": "firebase-app-hosting-angular:build:development"
77+
}
78+
},
79+
"defaultConfiguration": "development"
80+
},
81+
"extract-i18n": {
82+
"builder": "@angular-devkit/build-angular:extract-i18n",
83+
"options": {
84+
"buildTarget": "firebase-app-hosting-angular:build"
85+
}
86+
},
87+
"test": {
88+
"builder": "@angular-devkit/build-angular:karma",
89+
"options": {
90+
"polyfills": [
91+
"zone.js",
92+
"zone.js/testing"
93+
],
94+
"tsConfig": "tsconfig.spec.json",
95+
"inlineStyleLanguage": "scss",
96+
"assets": [
97+
"src/favicon.ico",
98+
"src/assets"
99+
],
100+
"styles": [
101+
"src/styles.scss"
102+
],
103+
"scripts": []
104+
}
105+
}
106+
}
107+
}
108+
}
109+
}

0 commit comments

Comments
 (0)