0.1.22
- Updated Auth API urls
npm install
Start the server and let it watch the source code for any changes, which triggers a rebuild of the library.
npm run dev
Every time a source file changes, nodemon
will trigger npm run build-lib
which rebuilds the project libraries.
In order to speed up development, we can set up the development environment in such a way that every time the project library rebuilds, the projects that use this library can automatically update it's package source code.
First, run this command to create a symlink to the global folder (global node_modules)
npm link
Then, open a terminal in your other project's root directory, and run the commands:
# Go to your other project's directory
cd bit-boilerplate-web-admin
# Run the bellow command
npm link bit-shared-web-components
# Go to this project's directory
cd bit-shared-web-components
# Start development server
npm run dev
Now, your project should automatically update whenever you make changes to this library.
If the other project is not updating with changes to this project, try the following commands to fix npm link
issues:
# Go to your project's directory
cd bit-boilerplate-web-admin
npm uninstall bit-shared-web-components
npm link bit-shared-web-components
npm install bit-shared-web-components
After the above commands, the unresponsiveness / issues should be fixed.