Skip to content

Commit 7462176

Browse files
committed
chore(*): updated deploy config, cleanup root npm scripts
1 parent 2f3b9b5 commit 7462176

File tree

9 files changed

+118
-67
lines changed

9 files changed

+118
-67
lines changed

examples/angular/firebase.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/nextjs-ssr/firebase.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/nextjs-ssr/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"@types/node": "^20",
2929
"@types/react": "19.1.16",
3030
"@types/react-dom": "19.1.9",
31+
"vite": "catalog:",
3132
"postcss": "^8.5.2",
3233
"postcss-load-config": "^6.0.1",
3334
"tailwindcss": "^4.0.6",

examples/nextjs/firebase.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

examples/react/firebase.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/shadcn/firebase.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

firebase.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,43 @@
1515
},
1616
{
1717
"site": "fir-ui-shadcn",
18-
"public": "examples/shadcn/dist",
18+
"source": "examples/shadcn",
1919
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
2020
"rewrites": [
2121
{
2222
"source": "**",
2323
"destination": "/index.html"
2424
}
2525
]
26+
},
27+
{
28+
"site": "fir-ui-rework",
29+
"public": "examples/react/dist",
30+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
31+
"rewrites": [
32+
{
33+
"source": "**",
34+
"destination": "/index.html"
35+
}
36+
]
37+
},
38+
{
39+
"site": "fir-ui-rework-angular",
40+
"source": "examples/angular",
41+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
42+
},
43+
{
44+
"site": "fir-ui-rework-nextjs-ssg",
45+
"public": "examples/nextjs/out",
46+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"]
47+
},
48+
{
49+
"site": "fir-ui-rework-nextjs-ssr",
50+
"source": "examples/nextjs-ssr",
51+
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
52+
"frameworksBackend": {
53+
"region": "us-central1"
54+
}
2655
}
2756
]
2857
}

package.json

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,15 @@
44
"type": "module",
55
"scripts": {
66
"emulators": "firebase emulators:start --only auth --project demo-test",
7-
"build": "pnpm run build:translations && pnpm run build:styles && pnpm run build:core && pnpm run build:react",
7+
"build": "pnpm run build:translations && pnpm run build:styles && pnpm run build:core && pnpm run build:react && pnpm run build:angular && pnpm run build:shadcn && pnpm --filter react run build && pnpm --filter nextjs run build && pnpm --filter nextjs-ssr run build && pnpm --filter angular-example run build && pnpm --filter shadcn run build",
88
"build:core": "pnpm --filter=@invertase/firebaseui-core run build",
99
"build:translations": "pnpm --filter=@invertase/firebaseui-translations run build",
1010
"build:styles": "pnpm --filter=@invertase/firebaseui-styles run build",
1111
"build:react": "pnpm --filter=@invertase/firebaseui-react run build",
1212
"build:angular": "pnpm --filter=@invertase/firebaseui-angular run build",
1313
"build:shadcn": "pnpm --filter=@invertase/firebaseui-shadcn run build",
14-
"build:examples": "pnpm run build && pnpm --filter react run build && pnpm --filter nextjs run build && pnpm --filter angular-example run build",
15-
"build:all": "pnpm run build && pnpm run build:angular && pnpm run build:examples",
16-
"build:packages": "pnpm run build && pnpm run build:angular",
17-
"deploy": "pnpm run build && pnpm --filter react run deploy && pnpm --filter nextjs run deploy && pnpm --filter angular-example run deploy",
18-
"deploy:react": "pnpm --filter react run deploy",
19-
"deploy:nextjs": "pnpm --filter nextjs run deploy",
20-
"deploy:angular": "pnpm --filter angular-example run deploy",
21-
"deploy:shadcn": "pnpm run build:shadcn && firebase deploy --only hosting:fir-ui-shadcn",
22-
"deploy:all": "pnpm run build && pnpm run build:shadcn && pnpm --filter react run deploy && pnpm --filter nextjs run deploy && pnpm --filter angular-example run deploy && pnpm --filter shadcn run deploy",
14+
"build:packages": "pnpm run build:translations && pnpm run build:styles && pnpm run build:core && pnpm run build:react && pnpm run build:angular",
15+
"deploy:hosting:all": "pnpm run deploy",
2316
"lint:check": "eslint",
2417
"lint:fix": "eslint --fix",
2518
"format:check": "prettier --check **/{src,tests}/**/*.{ts,tsx}",
@@ -52,13 +45,7 @@
5245
"publish:npm:react": "pnpm --filter=@invertase/firebaseui-react publish --access public",
5346
"publish:npm:angular": "pnpm --filter=@invertase/firebaseui-angular publish --access public",
5447
"publish:npm:styles": "pnpm --filter=@invertase/firebaseui-styles publish --access public",
55-
"publish:npm:all": "pnpm install && pnpm run build:packages && pnpm run publish:npm:core && pnpm run publish:npm:translations && pnpm run publish:npm:react && pnpm run publish:npm:styles && pnpm run publish:npm:angular",
56-
"release:core": "pnpm --filter=@invertase/firebaseui-core run release",
57-
"release:translations": "pnpm --filter=@invertase/firebaseui-translations run release",
58-
"release:react": "pnpm --filter=@invertase/firebaseui-react run release",
59-
"release:angular": "pnpm --filter=@invertase/firebaseui-angular run release",
60-
"release:styles": "pnpm --filter=@invertase/firebaseui-styles run release",
61-
"release:all": "pnpm i && pnpm run release:core && pnpm run release:translations && pnpm run release:react && pnpm run release:styles && pnpm run release:angular"
48+
"publish:npm:all": "pnpm run build:packages && pnpm run publish:npm:core && pnpm run publish:npm:translations && pnpm run publish:npm:react && pnpm run publish:npm:styles && pnpm run publish:npm:angular"
6249
},
6350
"devDependencies": {
6451
"@eslint/css": "^0.11.1",

pnpm-lock.yaml

Lines changed: 83 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)