This is a minimal project to let you start coding with D3 in Typescript and build up from the bottom. Don't hesitate to take a look at the configuration files:
package.json
for all the dependencies and some build scriptstsconfig.json
defines how typescript is transpiled into Javascriptwebpack.config.js
defines how everything is concatenated into an outputmain.js
file
The configuration is as minimal as possible.
- Clone the repository:
git clone https://github.com/jonasoesch/d3-typescript
- Change into the folder:
cd d3-typescript
- Install the required node modules:
npm install
- Run the Typescript server to preview
npm run start
- Start editing:
src/index.ts
static/index.html
static/styles.css
- And finally build into
dist
npm run build