D3.js development workflow

I am running a website using a lot of d3js data, and I would like to pack them as a separate module or lib.

Until now, I have implemented a similar scaffholding and build process as d3 main repo ( https://github.com/mbostock/d3/ ):

"prepublish": "npm test && rm -f package.js src/start.js d3.js d3.min.js d3.zip && bin/start > src/start.js && bin/meteor > package.js && smash src/d3.js | uglifyjs - -b indent-level=2 -o d3.js && bin/uglify d3.js > d3.min.js && chmod a-w d3.js d3.min.js package.js && zip d3.zip LICENSE d3.js d3.min.js",

This works great to create lib and is very convenient.

Now I would like to know what is the best workflow for developing lib. I would like to add a clock function + a download function to easily check my charts.

What would be the best way to integrate this into the current workflow?

Many thanks

+4
source share

Source: https://habr.com/ru/post/1630055/


All Articles