A monorepo for sharing packages across different applications (Desktop, web, etc)
Run yarn start for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run yarn build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
mex-space$ nx generate @nrwl/react:library lib-name
To start storybook of mex-components
cd ./libs/mex-components
yarn storybook
You may need to link the built version of mex-themes in mex-components for it to recognize and load it correctly
-
Bump the version
-
Build
mex-components
nx build mex-components
-
Copy the
.npmrcfor publishing indist/libs/mex-components -
Run
npm publishindist/libs/mex-components
-
Build the
mex-componentspackage usingnx build mex-components -
Go to the output
dist/libs/mex-componentsfolder and link themex-componentspackage usingyarn link -
Inside of
node_modules, link thereact,react-domandstyled-componentspackages -
Go to the repository where you need to use it and link all the local packages using
yarn link @workduck-io/mex-components react react-dom styled-components