Preview component in browser in a single command line
npm install component-previewPreview a component in browser in a single command line
``
Usage: component-preview [options]
Options:
-h, --help output usage information
-V, --version output the version number
-d, --directory
-p, --port
`
The script argument is a javascript file. It contains the needed code to execute your component.
For instance:
`js
// Require your component with its name
var MyComponent = require('my-component');
console.log('I am executed on DOM.load event');
// Play with your component
var mycpn = new MyComponent();
document.body.appendChild(mycpn.el);
``