A boilerplate workflow for using D3 and React together.
In order to use or contribute to this repo you'll need the following things installed on your system:
To start working with this repo and build your own application with D3 and React, we recommend you either download the code for the latest release from the [releases] page, or fork this repo and use git to clone your fork.
Once the code is on your machine open a terminal in its directory and run
npm install
; this will install all our dependencies and you'll be
able to run the project's tasks.
The following tasks are provided by this boilerplate for use during development.
npm start
runs a local development server that uses hot-reloading of assets.
Open a browser to http://localhost:3000
and everything should Just Work™.
When you want to do a build, run npm run build
. The build will generate your
files into public
.
npm run publish-patch
ensures you're on the master branch, have the
latest pull, that your dependencies match your package.json
. It then bumps
the patch version in the package.json
, and pushes both master
and version
tags to your git origin.
npm run publish-minor
ensures you're on the master branch, have the
latest pull, that your dependencies match your package.json
. It then bumps
the minor version in the package.json
, and pushes both master
and version
tags to your git origin.
npm run publish-major
ensures you're on the master branch, have the
latest pull, that your dependencies match your package.json
. It then bumps
the major version in the package.json
, and pushes both master
and version
tags to your git origin.
npm run lint
runs JSHint on your src
directory.
npm run validate
checks to make sure your installed node_modules
match the
dependencies listed in your package.json
.
This boilerplate includes a pre-commit hook that runs lint
, validate
, and
build
before allowing you to commit code.
This project uses Webpack, but proxied through the hjs-Webpack project for ease of setup. Further information on customizing this build process can be found there.
This project makes liberal use of the following technologies: