Labs for proof of concept and implementation
# yarn dlx @yarnpkg/sdks vscode
$ yarn example
// print
app: yarn app tsconfig echo
package: yarn package tsconfig echo
all: yarn all echo
all-app: yarn all-app echo
all-package: yarn all-package echo
add-workspace: yarn add-workspace test
Apps/Packages Naming Rule
// package.json
{
...,
name: "@apps/{name}"
}
// package.json
{
...,
name: "@packages/{name}"
}
Commit Message Convension
repositoryName (Option) - Calmel Case
, Required
when it is one
Type - Calmel Case
, Add/Mod/Del/HotFix
Subject (Option) - Required
when no body is present
[repositoryName]/[Type] Subject
ex.
[Tsconfig]/[Add] base.json 추가
repositoryName - Calmel Case
Type
Explain
[Type] Subject
- [repositoryName1]/[Type] Explain
- [repositoryName2]/[Type] Explain
...
ex.
[Add/Mod] 초기설정
- [Tsconfig]/[Add] base.json 추가
- [Eslint-Config-Custom]/[Mod] javascript 설정 변경
- airbnb-base 추가
- ignorePatterns 수정
$ yarn add -D @types/node typescript prettier eslint@^8.2.0
$ yarn dlx @yarnpkg/sdks vscode
$ yarn plugin import typescript
$ yarn plugin import workspace-tools
$ yarn workspaces focus
$ yarn workspaces foreach
eslint-config-custom
$ mkdir eslint-config-custom
$ cd eslint-config-custom
$ npm info "eslint-config-airbnb@latest" peerDependencies
$ yarn add -D eslint@^8.2.0 eslint-plugin-import@^2.25.3 eslint-import-resolver-typescript eslint-plugin-jsx-a11y@^6.5.1 eslint-plugin-react@^7.28.0 eslint-plugin-react-hooks@^4.3.0
$ yarn add -D eslint-config-airbnb-base eslint-config-airbnb
$ yarn add -D @typescript-eslint/eslint-plugin@^6.0.0 @typescript-eslint/parser@^6.0.0 eslint-config-airbnb-typescript
$ yarn add -D eslint-config-prettier
tsconfig