Propable-Immutable
A collection of immutable.js prop types extending
propable
.
Installing / Getting Started
Install the package
npm install --save propable-immutable
and import/require it
;// OR (pre ES6)var propTypes = propTypes;
Usage
const o = key: 'value' ; propTypesMap; // truepropTypesMap; // Map { key: 'value' }propTypesMap; // Map { key: 'value' } propTypesList; // false
Developing
This is what you do after you have cloned the repository:
npm installnpm run build
(Install dependencies & build the project.)
Linting
Execute ESLint
npm run lint
Try to automatically fix linting errors
npm run lint:fix
Testing
Execute Jest unit tests using
npm test
Tests are defined in the same directory the module lives in. They are specified in '[module].test.js' files.
Building
To build the project, execute
npm run build
This saves the production ready code into 'dist/'.