generator-d3-plugin v0.3.1
generator-d3-plugin
Yeoman generator for D3 v4 plugins
Getting Started
Install the generator:
npm install -g generator-d3-pluginThen run the generator:
yo d3-pluginand follow the prompts.
Details
The plugins are build using rollup which is suggested by D3.
Unit test cases can be written in tape, tape is added in devDependencies by default.
The plugin can be tested using
npm test. Only eslint is enabled for the time being.The plugin can be build using
npm run prepublish.Local server with live reloading can be achieved by running
npm run watchfollowed bynpm start. (You can run it in the reverse order but you have to refresh the browser in that case).The build is created in
/buildfolder.The examples are found in the
/examplefolder. It is recommended that you use this folder to display example of your plugin.Once the live reloading is on, the builds are created only in the
example/buildfolder. Once you are done developing the plugin runnpm run prepublishfor final build to the/buildfolder.
Read
Read more about D3 v4 Plugin and reusable chart component for plugins.