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
.npmrc
for publishing indist/libs/mex-components
-
Run
npm publish
indist/libs/mex-components
-
Build the
mex-components
package usingnx build mex-components
-
Go to the output
dist/libs/mex-components
folder and link themex-components
package usingyarn link
-
Inside of
node_modules
, link thereact
,react-dom
andstyled-components
packages -
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