Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sangmin802/sono-repo

๐Ÿ“Œ mono-repo / turborepo
https://github.com/sangmin802/sono-repo

nextjs turborepo typescript

Last synced: 16 days ago
JSON representation

๐Ÿ“Œ mono-repo / turborepo

Awesome Lists containing this project

README

        

# SONO-REPO
turborepo

## turbo.json
```js
{
// turbo์˜ ์ปค๋งจ๋“œ๋Š” ์—ฌ๊ธฐ์— ์ •์˜๋˜์–ด์•ผ๋งŒ ์“ธ ์ˆ˜ ์žˆ์Œ
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"pipeline": {

// ํŒจํ‚ค์ง€ ๋‚ด๋ถ€์˜ ๋ชจ๋“  build๋ฅผ ์‹คํ–‰์‹œํ‚ฌ๊บผ์ž„ --filter๋กœ ์ œํ•œ์„ ์ค„ ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์•„๋ž˜์˜ dev์— ์ ์šฉ๋œ --filter๋„ ์ ์šฉ ๋จ
"build": {

// ^๊ฐ€ ์žˆ์–ด์„œ, ๋ชจ๋“  workspace ํ˜น์€ --filtere๋œ workspace์˜ build๊ฐ€ ์‹คํ–‰๋˜๊ธฐ ์ „ deps ํ˜น์€ devDeps์˜ ๋ชจ๋“  build๊ฐ€ ๋ˆ ๋‹ค์Œ์— ์‹คํ–‰
"dependsOn": ["^build"],

"outputs": [".next/**", "!.next/cache/**", "dist/**", "storybook-static/**"]
},

// ํŒจํ‚ค์ง€ ๋‚ด๋ถ€์˜ ๋ชจ๋“  dev๋ฅผ ์‹คํ–‰์‹œํ‚ฌ๊บผ์ž„ --filter๋กœ ์ œํ•œ ์ค„ ์ˆ˜ ์žˆ์Œ
"dev": {

// ์œ„ ์ •์˜๋œ build ์ปค๋งจ๋“œ๊ฐ€ ๋จผ์ € ์‹คํ–‰๋œ ํ›„์— dev๋ฅผ ์‹คํ–‰์‹œํ‚ด dependsOn์˜ ๋ช…๋ น์–ด๋Š” ๊ผญ pipeline์— ์ •์˜๋˜์–ด์žˆ์–ด์•ผ ํ•จ
"dependsOn": ["build"],

// devํ™˜๊ฒฝ watch mode
"cache": false,
"persistent": true
},
"start": {
"dependsOn": ["build"]
},
"build:storybook": {}
}
}
```