Before you execute any command make sure you are in correct directory. Type: cd .\system\ firstly.
- Storybook for figa-ui:
npx nx run figa-ui:storybook - Next.js app for blog content:
npx nx serve blog - React SPA app for blog management:
npx nx serve blog-creator - Running dedicated apps:
npx nx run-many --parallel --target=serve --projects=blog,blog-creator - Running all apps:
npx nx run-many --target=serve --all - Migrating to latest nx and bumping packages:
npx nx migrate latest - Running lint for all apps:
npx nx run-many --target=lint --all - Running lint for all apps and fix:
npx nx run-many --target=lint --all --fix - Running tests with watch options for project:
npx nx run-many --target=test --projects=figa-hooks --watch - Displaying installed plugins and plugins to install:
npx nx list. - Update nx cloud when 401:
npx nx g @nrwl/nx-cloud:init - Running e2e tests:
npx nx run jamjam-e2e:e2e --watch
Remember to add different port numbers if you want to run more than 1 application in the same time in project.json files.
"serve": {
"options": {
"buildTarget": "blog:build",
"dev": true,
"port": 3001
},
}cd .\system\npx nx g @nrwl/next:application jamjam
cd .\system\npx nx g @nrwl/react:application blog-creator
cd .\system\npx nx g @nrwl/react:lib figa-ui
cd .\system\npx nx generate @nrwl/js:lib utils
cd .\system\npm i --save @nrwl/storybook --legacy-peer-depsnpx nx g @nrwl/storybook:configuration figa-ui --uiFramework=@storybook/react
cd .\system\npx nx generate @nrwl/react:library figa-hooks