Skip to content

Commit

Permalink
[Feature] 모노레포 기반 프로젝트 기본 설정 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
cobocho authored Apr 26, 2024
1 parent 316242e commit 3ec5d6e
Show file tree
Hide file tree
Showing 73 changed files with 31,392 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
*.js
*.cjs
*.ejs
11 changes: 9 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,41 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
title: '[BUG]'
labels: Bug
assignees: ''

---

# Bug

<!-- 발생 버그에 대해 설명해주세요 -->

Desktop (please complete the following information):

# Device

<!-- 버그가 발생한 장치와 환경을 설명해주세요 -->

<!-- Mobile -->

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Smartphone (please complete the following information):

<!-- Desktop -->

OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Device: [e.g. iPhone6]

# Solution you'd like

<!-- 예상 수정 방안을 작성해주세요 -->

# Additional Comment

<!-- 추가 코멘트가 있다면 작성해주세요 -->

# References

<!-- 관련 자료 및 문서가 있다면 기입해주세요 -->
8 changes: 6 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[FEAT]"
title: '[FEAT]'
labels: Feature
assignees: ''

---

# Feature

<!-- 관련 이슈에 대해 설명해주세요 -->

# Todo List

<!-- 작업 목록에 대해 설명해주세요 -->

- [ ] todo

# Additional Comment

<!-- 추가 코멘트가 있다면 작성해주세요 -->

# References

<!-- 관련 자료 및 문서가 있다면 기입해주세요 -->
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
- [ ] 패키지 의존성 변경, CI/CD, 환경 설정 등

# Overview

<!-- Pull Request에 대한 구체적인 내용을 적어주세요 -->

- todo

# Additional Comment

<!-- Pull Request에 대한 추가적인 코멘트가 있다면 적어주세요 -->

# Issue

<!-- 관련 이슈가 존재하다면 적어주세요 -->

#XXX
Expand All @@ -25,3 +28,7 @@
- [ ] 올바른 PR 컨벤션을 작성했나요?
- [ ] 적절한 라벨을 선택했나요?
- [ ] Assignee와 Reviewer를 설정했나요?

# References

<!-- 관련 자료가 존재하다면 적어주세요 -->
38 changes: 38 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# Dependencies
node_modules
.pnp
.pnp.js

# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Testing
coverage

# Turbo
.turbo

# Vercel
.vercel

# Build Outputs
.next/
out/
build
dist


# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Misc
.DS_Store
*.pem
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run lint:style:fix
npm run lint-front

git diff --cached --name-only --diff-filter=ACM | xargs git add
Empty file added .npmrc
Empty file.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@titicaca/prettier-config-triple"
105 changes: 105 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"extends": ["stylelint-config-standard"],
"plugins": ["stylelint-order"],
"customSyntax": "postcss-styled-syntax",
"rules": {
"declaration-empty-line-before": [
"always",
{
"ignore": [
"first-nested",
"after-comment",
"after-declaration",
"inside-single-line-block"
]
}
],
"order/order": ["custom-properties", "declarations"],

"order/properties-order": [
{
"groupName": "Layout",
"noEmptyLineBetween": true,
"properties": [
"display",
"flex",
"justify-content",
"align-items",
"gap",
"visibility",
"overflow",
"float",
"clear"
]
},
{
"groupName": "Position",
"emptyLineBefore": "always",
"noEmptyLineBetween": true,
"properties": ["position", "top", "right", "bottom", "left", "z-index"]
},
{
"groupName": "Box",
"emptyLineBefore": "always",
"noEmptyLineBetween": true,
"properties": [
"width",
"height",
"aspect-ratio",
"margin",
"margin-top",
"margin-right",
"margin-bottom",
"margin-left",
"padding",
"padding-top",
"padding-right",
"padding-bottom",
"padding-left"
]
},
{
"groupName": "Box",
"emptyLineBefore": "always",
"noEmptyLineBetween": true,
"properties": [
"border",
"border-radius",
"border-top",
"border-right",
"border-bottom",
"border-left"
]
},
{
"groupName": "Background",
"emptyLineBefore": "always",
"noEmptyLineBetween": true,
"properties": ["background-color", "background"]
},
{
"groupName": "Font",
"emptyLineBefore": "always",
"noEmptyLineBetween": true,
"properties": [
"color",
"font-style",
"font-weight",
"font-size",
"line-height",
"letter-spacing",
"text-align",
"text-indent",
"vertical-align",
"white-space"
]
},
{
"groupName": "Animation",
"emptyLineBefore": "always",
"noEmptyLineBetween": true,
"properties": ["animation", "transition"]
}
]
}
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
82 changes: 81 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,81 @@
# vook-client
# Turborepo starter

This is an official starter Turborepo.

## Using this example

Run the following command:

```sh
npx create-turbo@latest
```

## What's inside?

This Turborepo includes the following packages/apps:

### Apps and Packages

- `docs`: a [Next.js](https://nextjs.org/) app
- `web`: another [Next.js](https://nextjs.org/) app
- `@repo/ui`: a stub React component library shared by both `web` and `docs` applications
- `@repo/eslint-config`: `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
- `@repo/typescript-config`: `tsconfig.json`s used throughout the monorepo

Each package/app is 100% [TypeScript](https://www.typescriptlang.org/).

### Utilities

This Turborepo has some additional tools already setup for you:

- [TypeScript](https://www.typescriptlang.org/) for static type checking
- [ESLint](https://eslint.org/) for code linting
- [Prettier](https://prettier.io) for code formatting

### Build

To build all apps and packages, run the following command:

```
cd my-turborepo
pnpm build
```

### Develop

To develop all apps and packages, run the following command:

```
cd my-turborepo
pnpm dev
```

### Remote Caching

Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:

```
cd my-turborepo
npx turbo login
```

This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your Turborepo:

```
npx turbo link
```

## Useful Links

Learn more about the power of Turborepo:

- [Tasks](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
- [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching)
- [Filtering](https://turbo.build/repo/docs/core-concepts/monorepos/filtering)
- [Configuration Options](https://turbo.build/repo/docs/reference/configuration)
- [CLI Usage](https://turbo.build/repo/docs/reference/command-line-reference)
8 changes: 8 additions & 0 deletions apps/chrome-extension/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
root: true,
extends: ['@vook-client/eslint-config/react.js'],
rules: {
'@typescript-eslint/no-unsafe-assignment': 'off',
},
}
23 changes: 23 additions & 0 deletions apps/chrome-extension/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules

# testing
/coverage

# production
/build
/package

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
.history
*.log

# secrets
secrets.*.js
Loading

0 comments on commit 3ec5d6e

Please sign in to comment.