This script will replace the MDC Web packages it finds under node_modules
with copies of the folders from a local MDC Web clone. This can be used to test MDC Web code ahead of releases.
Easiest usage:
- Add this js file to a directory in PATH
chmod 700
it- Go into the root directory of a project that uses MDC Web dependencies and run the script
Later, when you want to go back to testing against npm dependencies, just re-run npm i
.
The script defaults to looking in ../material-components-web
for the local clone, but you can specify another path as a command-line argument.
Skips building MDC Web dist files and copying them into MDC Web's packages
subfolders. Specify this if you've already run this and haven't changed anything since then.