Skip to content

personal libraries & web blog for my own use

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE.md
MIT
LICENSE.mit
Notifications You must be signed in to change notification settings

rabelais88/sungryeol

Repository files navigation

What is this?

this is a mono-repo collection of...

  1. personal libs and configurations that are used frequently, that are published to npm.
  2. personal weblog + its content.

Troubleshooting

  • tsconfig.json내에서 incremental:true일 경우 d.ts가 텅 빈 상태로 생성되어 import가 불가할 수 있음. 앱의 경우는 incremental:true로, 유틸은 incremental:false로 세팅할 것
  • the project requires @sungryeol/lib being built first. otherwise, it would not run. The built package is symlinked to other projects.

Caveat

  • manage workspace folders via .vsocde/settings.json -> eslint.workingDirectories
  • when deploying to Vercel, Include source files outside of the Root Directory in the Build Step. option should be enabled.

Developing inside docker container + vscode

2022.OCT update: adopted PNPM workspace. vscode devcontainer may not work due to symlink usage in PNPM

source mutagen-workspace.sh
# clearing service
source mutagen-workspace.sh down
# rebuilding image(when global node package is updated)
source mutagen-workspace.sh build
  • Remote-Containers: Attach to Running Container... to attach to mutagen-compose service
  • after opening up the service in VSCODE, use Remote-Containers: Open Attached Container Configuration File... to use user-specific setting. refer to .devcontainer/config-recommend.json for recommended container setting.
  • attach to sungryeol-monorepo container. DO NOT attach to mutagen container.

Install, bootstrapping

# bootstrap the whole monorepo
(project root)$pnpm install
# build everything inside this monorepo
(project root)$ pnpm build
# start all projects in dev mode
(project root)$ pnpm dev

Build & publish libraries

(project root)$ pnpm turbo build
(project root)$ pnpm login
# check changeset
(project root)$ pnpm changeset status
# strongly recommended: run below in CI
(project root)$ pnpm changeset version
(project root)$ pnpm changeset publish

Maintenance for libraries

(project root)$ pnpm -r outdated
(project root)$ pnpm -r update $PACKAGE_NAME --latest

Build skip

  • add [skip-build] to commit message

Project specific readmes

Legacy

these projects are no longer maintained.

License

The codes are in public domain (alternatively MIT licenced), blog content and writings are protected by CC BY-NC-ND 4.0. Please check License.md