Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[モノリポ移行] pos ディレクトリ作成 #242

Merged
merged 5 commits into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .github/workflows/check.yml → .github/workflows/pos-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
name: check
on: push
name: pos / check

on:
push:
paths:
- "pos/**"
- ".github/workflows/check.yml"

defaults:
run:
working-directory: ./pos

jobs:
biome:
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,20 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on merge
name: pos / deploy

on:
push:
branches:
- main
paths:
- "pos/**"
- ".github/workflows/firebase-hosting-merge.yml"

defaults:
run:
working-directory: ./pos

jobs:
build_and_deploy:
runs-on: ubuntu-latest
Expand All @@ -32,3 +41,4 @@ jobs:
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CAFEORE_2024 }}
channelId: live
projectId: cafeore-2024
entryPoint: "pos"
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools

name: Deploy to Firebase Hosting on PR
on: pull_request
name: pos / preview

on:
pull_request:
paths:
- "pos/**"
- ".github/workflows/firebase-hosting-pull-request.yml"

defaults:
run:
working-directory: ./pos

permissions:
checks: write
contents: read
pull-requests: write

jobs:
build_and_preview:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
Expand All @@ -33,3 +44,4 @@ jobs:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_CAFEORE_2024 }}
projectId: cafeore-2024
entryPoint: "pos"
12 changes: 0 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1 @@
node_modules

/.cache
/build
/public/build
.env*
!.env.example

.firebase
.firebaserc
firebase-debug.log
firestore-debug.log
ui-debug.log
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"files": {
"ignore": ["**/node_modules/**", "./build", "./public/build"]
"ignore": ["**/node_modules/**", "**/build", "**/public/build"]
},
"formatter": {
"indentStyle": "space"
Expand Down
Binary file modified bun.lockb
Binary file not shown.
62 changes: 4 additions & 58 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,12 @@
{
"name": "cafeore-2024",
"private": true,
"sideEffects": false,
"type": "module",
"workspaces": ["pos"],
"scripts": {
"sync": "bun install --frozen-lockfile",
"build": "remix vite:build",
"dev": "remix vite:dev",
"lint": "biome check",
"fmt": "biome check --write",
"preview": "vite preview",
"test:unit": "bun test -t unit",
"test:db": "firebase emulators:exec --only firestore --project demo-firestore 'bun test -t db'",
"typecheck": "tsc"
},
"dependencies": {
"@conform-to/react": "^1.2.2",
"@conform-to/zod": "^1.2.2",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@remix-run/react": "^2.12.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"firebase": "^10.14.0",
"highcharts": "^11.4.8",
"highcharts-react-official": "^3.2.1",
"input-otp": "^1.2.4",
"lodash": "^4.17.21",
"lucide-react": "0.447.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"swr": "^2.2.5",
"tailwind-merge": "^2.5.3",
"tailwindcss-animate": "^1.0.7",
"vaul": "^1.0.0",
"zod": "^3.23.8"
"sync": "bun install --frozen-lockfile"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@firebase/rules-unit-testing": "^3.0.4",
"@remix-run/dev": "^2.12.1",
"@types/bun": "^1.1.10",
"@types/lodash": "^4.17.10",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"firebase-tools": "^13.20.2",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.2"
},
"engines": {
"node": ">=20.0.0"
"@biomejs/biome": "1.9.3"
},
"trustedDependencies": ["@biomejs/biome", "esbuild", "protobufjs", "re2"]
"trustedDependencies": ["@biomejs/biome"]
}
13 changes: 13 additions & 0 deletions pos/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
node_modules

/.cache
/build
/public/build
.env*
!.env.example

.firebase
.firebaserc
firebase-debug.log
firestore-debug.log
ui-debug.log
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
66 changes: 66 additions & 0 deletions pos/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"name": "cafeore-2024",
"private": true,
"sideEffects": false,
"type": "module",
"scripts": {
"sync": "bun install --frozen-lockfile",
"build": "remix vite:build",
"dev": "remix vite:dev",
"lint": "biome check",
"fmt": "biome check --write",
"preview": "vite preview",
"test:unit": "bun test -t unit",
"test:db": "firebase emulators:exec --only firestore --project demo-firestore 'bun test -t db'",
"typecheck": "tsc"
},
"dependencies": {
"@conform-to/react": "^1.2.2",
"@conform-to/zod": "^1.2.2",
"@radix-ui/react-alert-dialog": "^1.1.2",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-radio-group": "^1.2.1",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "^1.1.0",
"@remix-run/react": "^2.12.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"dayjs": "^1.11.13",
"firebase": "^10.14.0",
"highcharts": "^11.4.8",
"highcharts-react-official": "^3.2.1",
"input-otp": "^1.2.4",
"lodash": "^4.17.21",
"lucide-react": "0.447.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"swr": "^2.2.5",
"tailwind-merge": "^2.5.3",
"tailwindcss-animate": "^1.0.7",
"vaul": "^1.0.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@firebase/rules-unit-testing": "^3.0.4",
"@remix-run/dev": "^2.12.1",
"@types/bun": "^1.1.10",
"@types/lodash": "^4.17.10",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.20",
"firebase-tools": "^13.20.2",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.2"
},
"engines": {
"node": ">=20.0.0"
},
"trustedDependencies": ["@biomejs/biome", "esbuild", "protobufjs", "re2"]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.