-
Notifications
You must be signed in to change notification settings - Fork 0
환경세팅
Jae Kim edited this page May 23, 2023
·
3 revisions
// nextjs 선택 yarn create nx-workspace
// vite 설치 yarn add -D @nx/[email protected] // ui라는 라이브러리 추가 yarn nx g @nx/react:lib ui --bundler=vite // 스토리북 설치 yarn nx g @nx/react:storybook-configuration ui
yarn add -D @nx/devkit yarn add -D @storybook/react
yarn nx g @nx/js:lib lib --bundler=esbuild yarn nx g @nx/js:lib apis --bundler=esbuild
// libs/apis/project.json "generate-mustache": { "executor": "nx:run-commands", "options": { "command": "sh ./generate-mustache.sh", "cwd": "./libs/apis" } }, "generate-api:petstore": { "executor": "nx:run-commands", "options": { "command": "sh ./generate-api.sh petstore v2", "cwd": "./libs/apis" } }
yarn nx run apis:generate-mustache // mustache 수정 yarn nx run apis:generate-api:petstore