/d3-typescript

Primary LanguageCSSGNU General Public License v3.0GPL-3.0

Minimal D3 and Typescript Project

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 scripts
  • tsconfig.jsondefines how typescript is transpiled into Javascript
  • webpack.config.js defines how everything is concatenated into an output main.js file

The configuration is as minimal as possible.

Usage

  1. Clone the repository:
git clone https://github.com/jonasoesch/d3-typescript
  1. Change into the folder:
cd d3-typescript
  1. Install the required node modules:
npm install
  1. Run the Typescript server to preview
npm run start
  1. Start editing:
  • src/index.ts
  • static/index.html
  • static/styles.css
  1. And finally build into dist
npm run build