Note: This is still in experimental stage.
Assumption: You have Node v4+ and npm 2+ installed.
> npm i --save @pearson-components/features-list
The javascript bundle is available in /node_modules/@pearson-components/features-list/build/dist.features-list.js.
Add the following script include to your web page:
<script src="path/to/dist.features-list.js"></script>
var features = new $featureComponent().init(options, data, element);
This method requires a web bundler, such as webpack or browserify.
var features = require('@pearson-components/features-list');
Recommendation: If you are using different node versions on your machine, use nvm to manage them.
The following npm script will build the component in memory, fire up a webpack dev server at localhost:8080/demo, and hot reload any saved changes to the source without having to refresh the browser.
npm run dev
The following npm script will execute any unit tests.
npm test
Copyright 2015 Pearson Education. This software is published under the MIT licence.