mintopolis-isomorphic-helpers
v0.0.7
Published
Mintopolis library of isomorphic functions used in the Mintopolis App
Downloads
10
Maintainers
Readme
mintopolis-isomorphic-helpers
Follow a Test-Driven Development approach
- Write failing unit tests according to desired results
- Write code to make those tests pass
Run all tests:
npm test
Make Sure to install npx globally
npm i -g npx
Link your local module in another project:
- Match your Node version between projects with
nvm use 12.22.1
(use your project version) in each project - In the
mintopolis-isomorphic-helpers
directory, runnpm run build && npm link .
- In your
my-project
directory, runnpm link mintopolis-isomorphic-helpers
Unlink the module from your project:
- In the
mintopolis-isomorphic-helpers
directory, run...npm unlink .
- Ensure that your package.json file is using the correct dependency and version for
mintopolis-isomorphic-helpers
. - In your project, run...
rm -rf node_modules/mintopolis-isomorphic-helpers && npm i
- Using
npm unlink
can alter your dependency declaration in your package.json file. Deleting the node module and reinstalling based on your package.json dependencies is less problematic.
Linting
This project is using Husky hooks for linting with eslint. In order for these hooks to work you may need to run the following commands:
chmod ug+x .husky/*
chmod ug+x .git/hooks/*