A framework for building web applications
A library containing React components built over Material UI with custom theming.
A library containing helper JavaScript functions
A library containing a shared eslint config
To test your changes to any library you need to package the library and import it into an existing project. The steps are:
- bump the version in the
package.jsonto a testing version like:"version": 0.0.49-beta01 - in the project root run
npm run -w packages/[library_name] buildwherelibrary_namecan be any module from thepackagesfolder such as "lib" or "ui". cdinto thedistfolder of the package you just built and runnpm pack --pack-destination ~. This command will create in the home directory aweb-chapter-ui-0.0.49-beta01.tar.gzfile containing the built library.- go into your project and in the package json put the following under dependencies:
"dependencies": {
...
"@web-chapter/ui": "file:~/web-chapter-ui-0.0.48.tgz",
...
}
Then run npm install in that project and it should use your local version of the library.