Skip to content

Commit

Permalink
wip: clound functions init
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiborbea committed Dec 2, 2023
1 parent 99cfc0e commit 3c3183d
Show file tree
Hide file tree
Showing 15 changed files with 8,387 additions and 110 deletions.
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
}
}
}
}
}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# dependencies
/node_modules
*/node_modules

# profiling files
chrome-profiler-events*.json
Expand All @@ -31,8 +32,8 @@ chrome-profiler-events*.json
.history/*

# misc
/.angular/cache
/.sass-cache
*/.angular/cache
*/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
Expand Down
34 changes: 13 additions & 21 deletions angular.json → client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,20 @@
}
},
"root": "",
"sourceRoot": "client",
"sourceRoot": "./",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/recipe-app",
"index": "client/index.html",
"main": "client/main.ts",
"index": "./index.html",
"main": "./main.ts",
"aot": true,
"polyfills": "client/polyfills.ts",
"polyfills": "./polyfills.ts",
"tsConfig": "tsconfig.app.json",
"assets": [
"client/favicon.ico",
"client/assets",
"client/manifest.webmanifest"
],
"styles": ["client/scss/theme.scss", "client/scss/styles.scss"],
"assets": ["./favicon.ico", "./assets", "./manifest.webmanifest"],
"styles": ["./scss/theme.scss", "./scss/styles.scss"],
"scripts": [],
"serviceWorker": true,
"ngswConfigPath": "ngsw-config.json"
Expand All @@ -49,8 +45,8 @@
],
"fileReplacements": [
{
"replace": "client/environments/environment.ts",
"with": "client/environments/environment.prod.ts"
"replace": "./environments/environment.ts",
"with": "./environments/environment.prod.ts"
}
],
"outputHashing": "all"
Expand Down Expand Up @@ -87,23 +83,19 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "client/test.ts",
"polyfills": "client/polyfills.ts",
"main": "./test.ts",
"polyfills": "./polyfills.ts",
"tsConfig": "tsconfig.spec.json",
"karmaConfig": "karma.conf.js",
"assets": [
"client/favicon.ico",
"client/assets",
"client/manifest.webmanifest"
],
"styles": ["client/scss/theme.scss", "client/scss/styles.scss"],
"assets": ["./favicon.ico", "./assets", "./manifest.webmanifest"],
"styles": ["./scss/theme.scss", "./scss/styles.scss"],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": ["client/**/*.ts", "client/**/*.html"]
"lintFilePatterns": ["./**/*.ts", "./**/*.html"]
}
},
"deploy": {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json → client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "foodilo",
"version": "0.8.2",
"private": true,
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand All @@ -9,7 +10,6 @@
"test": "ng test",
"lint": "ng lint"
},
"private": true,
"dependencies": {
"@angular/animations": "^16.2.7",
"@angular/cdk": "^16.2.6",
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.js → client/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./client/**/*.{html,ts}"],
content: ["./**/*.{html,ts}"],
important: true,
theme: {
extend: {},
Expand Down
8 changes: 3 additions & 5 deletions tsconfig.app.json → client/tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
"extends": "./tsconfig.json",
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": []
},
"files": ["client/main.ts", "client/polyfills.ts"],
"include": [
"client/**/*.d.ts"
]
"files": ["./main.ts", "./polyfills.ts"],
"include": ["./**/*.d.ts"]
}
25 changes: 21 additions & 4 deletions firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@
{
"target": "recipe-app",
"public": "dist/recipe-app",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"headers": [
{
"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)",
Expand All @@ -23,7 +27,20 @@
]
}
],
"functions": {
"codebase": "test-function"
}
"functions": [
{
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log"
],
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
]
}
]
}
Loading

0 comments on commit 3c3183d

Please sign in to comment.