Skip to content

Commit e37dad4

Browse files
committed
feat: 프로젝트 기반 셋팅 준비 완료
1 parent 3cb4364 commit e37dad4

10 files changed

Lines changed: 112 additions & 0 deletions

File tree

.eslintrc.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es2022: true,
5+
node: true,
6+
browser: true,
7+
},
8+
extends: [],
9+
ignorePatterns: ["dist", "node_modules"],
10+
};

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Placeholder
15+
run: echo "CI placeholder"

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Placeholder
11+
run: echo "Deploy placeholder"

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"printWidth": 100,
3+
"singleQuote": true,
4+
"trailingComma": "all"
5+
}

apps/api/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "@fieldstack/api",
3+
"private": true,
4+
"version": "0.0.0",
5+
"main": "dist/index.js",
6+
"scripts": {
7+
"dev": "tsx watch src/index.ts",
8+
"build": "tsc",
9+
"start": "node dist/index.js",
10+
"typecheck": "tsc --noEmit"
11+
}
12+
}

apps/web/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@fieldstack/web",
3+
"private": true,
4+
"version": "0.0.0",
5+
"scripts": {
6+
"dev": "vite",
7+
"build": "tsc && vite build",
8+
"preview": "vite preview",
9+
"typecheck": "tsc --noEmit"
10+
}
11+
}

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "fieldstack",
3+
"private": true,
4+
"version": "0.0.0",
5+
"scripts": {
6+
"dev": "pnpm --parallel dev",
7+
"dev:api": "pnpm --filter api dev",
8+
"dev:web": "pnpm --filter web dev",
9+
"build": "pnpm build:web && pnpm build:api && pnpm postbuild",
10+
"build:web": "pnpm --filter web build",
11+
"build:api": "pnpm --filter api build",
12+
"postbuild": "node scripts/copy-frontend.js",
13+
"start": "cd apps/api && node dist/index.js",
14+
"test": "pnpm --recursive test",
15+
"lint": "pnpm --recursive lint",
16+
"typecheck": "pnpm --recursive typecheck",
17+
"format": "pnpm --recursive format"
18+
}
19+
}

packages/core/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@fieldstack/core",
3+
"private": true,
4+
"version": "0.0.0",
5+
"main": "dist/index.js",
6+
"types": "dist/index.d.ts",
7+
"scripts": {
8+
"build": "tsc",
9+
"typecheck": "tsc --noEmit"
10+
}
11+
}

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
packages:
2+
- 'apps/*'
3+
- 'packages/*'

tsconfig.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ES2022",
4+
"lib": ["ES2022", "DOM"],
5+
"module": "ESNext",
6+
"moduleResolution": "Bundler",
7+
"strict": true,
8+
"noImplicitAny": true,
9+
"useDefineForClassFields": true,
10+
"skipLibCheck": true,
11+
"resolveJsonModule": true,
12+
"isolatedModules": true,
13+
"noEmit": true
14+
}
15+
}

0 commit comments

Comments
 (0)