Skip to content

Commit ee9aac1

Browse files
committed
Expirimenting with a new configuration style and adding a non-compat sample app
1 parent 3f4761b commit ee9aac1

File tree

136 files changed

+17383
-6258
lines changed

Some content is hidden

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

136 files changed

+17383
-6258
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"husky": "^4.2.5",
5959
"inquirer": "^6.2.2",
6060
"inquirer-autocomplete-prompt": "^1.0.1",
61+
"lodash.isequal": "^4.5.0",
6162
"open": "^7.0.3",
6263
"rxfire": "^3.9.7 || ^4.0.0",
6364
"rxjs": "^6.5.3",
@@ -82,6 +83,7 @@
8283
"@types/gzip-size": "^5.1.1",
8384
"@types/inquirer": "^0.0.44",
8485
"@types/jasmine": "^3.3.13",
86+
"@types/lodash.isequal": "^4.5.5",
8587
"@types/node": "^12.6.2 < 12.12.42",
8688
"@types/request": "0.0.30",
8789
"@types/semver": "^7.1.0",

sample-compat/.browserslistrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2+
# For additional information regarding the format and rule options, please see:
3+
# https://github.com/browserslist/browserslist#queries
4+
5+
# You can see what browsers were selected by your queries by running:
6+
# npx browserslist
7+
8+
> 0.5%
9+
last 2 versions
10+
Firefox ESR
11+
not dead
12+
not IE 9-10
13+
IE 11

sample-compat/.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

sample-compat/.firebaserc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"targets": {
3+
"aftest-94085": {
4+
"hosting": {
5+
"sample": [
6+
"aftest-94085"
7+
]
8+
}
9+
}
10+
},
11+
"projects": {
12+
"default": "aftest-94085"
13+
}
14+
}

sample-compat/.gitignore

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
speed-measure-plugin*.json
16+
17+
# IDEs and editors
18+
/.idea
19+
.project
20+
.classpath
21+
.c9/
22+
*.launch
23+
.settings/
24+
*.sublime-workspace
25+
26+
# IDE - VSCode
27+
.vscode/*
28+
!.vscode/settings.json
29+
!.vscode/tasks.json
30+
!.vscode/launch.json
31+
!.vscode/extensions.json
32+
.history/*
33+
34+
# misc
35+
/.sass-cache
36+
/connect.lock
37+
/coverage
38+
/libpeerconnection.log
39+
npm-debug.log
40+
yarn-error.log
41+
testem.log
42+
/typings
43+
.firebase
44+
45+
# System Files
46+
.DS_Store
47+
Thumbs.db

sample-compat/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Sample
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.0.5.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app 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. Use the `--prod` flag for a production build.
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 [Protractor](http://www.protractortest.org/).
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

sample-compat/angular.json

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"sample": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/sample/browser",
17+
"index": "src/index.html",
18+
"main": "src/main.ts",
19+
"polyfills": "src/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"aot": true,
22+
"assets": [
23+
"src/favicon.ico",
24+
"src/assets",
25+
"src/manifest.webmanifest",
26+
"src/main-sw.js",
27+
"src/firebase-messaging-sw.js"
28+
],
29+
"styles": [
30+
"src/styles.css"
31+
],
32+
"scripts": []
33+
},
34+
"configurations": {
35+
"emulated": {
36+
"fileReplacements": [
37+
{
38+
"replace": "src/environments/environment.ts",
39+
"with": "src/environments/environment.emulated.ts"
40+
}
41+
]
42+
},
43+
"production": {
44+
"fileReplacements": [
45+
{
46+
"replace": "src/environments/environment.ts",
47+
"with": "src/environments/environment.prod.ts"
48+
}
49+
],
50+
"optimization": true,
51+
"outputHashing": "all",
52+
"sourceMap": false,
53+
"namedChunks": false,
54+
"extractLicenses": true,
55+
"vendorChunk": false,
56+
"buildOptimizer": true,
57+
"budgets": [
58+
{
59+
"type": "initial",
60+
"maximumWarning": "2mb",
61+
"maximumError": "5mb"
62+
},
63+
{
64+
"type": "anyComponentStyle",
65+
"maximumWarning": "6kb",
66+
"maximumError": "10kb"
67+
}
68+
],
69+
"serviceWorker": true,
70+
"ngswConfigPath": "ngsw-config.json"
71+
}
72+
}
73+
},
74+
"serve": {
75+
"builder": "@angular-devkit/build-angular:dev-server",
76+
"options": {
77+
"browserTarget": "sample:build"
78+
},
79+
"configurations": {
80+
"production": {
81+
"browserTarget": "sample:build:production"
82+
},
83+
"emulated": {
84+
"browserTarget": "sample:build:emulated"
85+
}
86+
}
87+
},
88+
"extract-i18n": {
89+
"builder": "@angular-devkit/build-angular:extract-i18n",
90+
"options": {
91+
"browserTarget": "sample:build"
92+
}
93+
},
94+
"test": {
95+
"builder": "@angular-devkit/build-angular:karma",
96+
"options": {
97+
"main": "src/test.ts",
98+
"polyfills": "src/polyfills.ts",
99+
"tsConfig": "tsconfig.spec.json",
100+
"karmaConfig": "karma.conf.js",
101+
"assets": [
102+
"src/favicon.ico",
103+
"src/assets",
104+
"src/manifest.webmanifest"
105+
],
106+
"styles": [
107+
"src/styles.css"
108+
],
109+
"scripts": []
110+
}
111+
},
112+
"lint": {
113+
"builder": "@angular-devkit/build-angular:tslint",
114+
"options": {
115+
"tsConfig": [
116+
"tsconfig.app.json",
117+
"tsconfig.server.json",
118+
"tsconfig.spec.json"
119+
],
120+
"exclude": [
121+
"**/node_modules/**"
122+
]
123+
}
124+
},
125+
"server": {
126+
"builder": "@angular-devkit/build-angular:server",
127+
"options": {
128+
"outputPath": "dist/sample/server",
129+
"main": "server.ts",
130+
"tsConfig": "tsconfig.server.json",
131+
"bundleDependencies": true,
132+
"externalDependencies": [ ]
133+
},
134+
"configurations": {
135+
"production": {
136+
"outputHashing": "media",
137+
"fileReplacements": [
138+
{
139+
"replace": "src/environments/environment.ts",
140+
"with": "src/environments/environment.prod.ts"
141+
}
142+
],
143+
"sourceMap": false,
144+
"optimization": true
145+
}
146+
}
147+
},
148+
"serve-ssr": {
149+
"builder": "@nguniversal/builders:ssr-dev-server",
150+
"options": {
151+
"browserTarget": "sample:build",
152+
"serverTarget": "sample:server"
153+
},
154+
"configurations": {
155+
"production": {
156+
"browserTarget": "sample:build:production",
157+
"serverTarget": "sample:server:production"
158+
}
159+
}
160+
},
161+
"prerender": {
162+
"builder": "@nguniversal/builders:prerender",
163+
"options": {
164+
"browserTarget": "sample:build:production",
165+
"serverTarget": "sample:server:production",
166+
"routes": [
167+
"/"
168+
]
169+
},
170+
"configurations": {
171+
"production": {}
172+
}
173+
},
174+
"deploy": {
175+
"builder": "@angular/fire:deploy",
176+
"options": {
177+
"ssr": true,
178+
"functionsNodeVersion": 12,
179+
"functionsRuntimeOptions": {
180+
"memory": "1GB"
181+
}
182+
}
183+
}
184+
}
185+
}
186+
},
187+
"defaultProject": "sample",
188+
"cli": {
189+
"analytics": "cf8320c3-bce0-480d-a971-68484635f481"
190+
}
191+
}

sample-compat/firebase.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"hosting": [
3+
{
4+
"target": "sample",
5+
"public": "dist/sample/dist/sample/browser",
6+
"ignore": [
7+
"**/.*"
8+
],
9+
"headers": [
10+
{
11+
"source": "*.[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].+(css|js)",
12+
"headers": [
13+
{
14+
"key": "Cache-Control",
15+
"value": "public,max-age=31536000,immutable"
16+
}
17+
]
18+
}, {
19+
"source": "*-sw.js",
20+
"headers": [
21+
{
22+
"key": "Cache-Control",
23+
"value": "no-cache"
24+
}
25+
]
26+
}
27+
],
28+
"rewrites": [
29+
{
30+
"source": "**",
31+
"function": "ssr"
32+
}
33+
]
34+
}
35+
],
36+
"functions": {
37+
"source": "dist/sample"
38+
},
39+
"emulators": {
40+
"functions": {
41+
"port": 5001
42+
},
43+
"firestore": {
44+
"port": 8080
45+
},
46+
"database": {
47+
"port": 9000
48+
},
49+
"hosting": {
50+
"port": 5000
51+
},
52+
"auth": {
53+
"port": 9099
54+
},
55+
"ui": {
56+
"enabled": true
57+
}
58+
}
59+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)