0.1.2 • Published 9 years ago
propable-immutable v0.1.2
Propable-Immutable 
A collection of immutable.js prop types extending
propable.
Installing / Getting Started
Install the package
npm install --save propable-immutableand import/require it
import { propTypes } from 'propable-immutable';
// OR (pre ES6)
var propTypes = require('propable-immutable').propTypes;Usage
const o = { key: 'value' };
propTypes.Map.test(o); // true
propTypes.Map.parse(o); // Map { key: 'value' }
propTypes.Map.parse(JSON.stringify(o)); // Map { key: 'value' }
propTypes.List.test(o); // falseDeveloping
This is what you do after you have cloned the repository:
npm install
npm run build(Install dependencies & build the project.)
Linting
Execute ESLint
npm run lintTry to automatically fix linting errors
npm run lint:fixTesting
Execute Jest unit tests using
npm testTests 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 buildThis saves the production ready code into 'dist/'.