Giter VIP home page Giter VIP logo

d3-forcechart's Introduction

Welcome to the D3 Boilerplate!

This package includes preconfigured Webpack, Babel, ESLINT, Node-Sass, prettier, gh-pages, and jest.

please note - for SASS to be properly imported in build mode - you MUST create link tags in your src/index.html header (or other relevant html files)

the build script will transpile all SASS files to ./assets/css/*.css

USAGE:

with npm start, npm run build, or npm run deploy,

to know everything is working correctly here are some indicators

if D3 is functioning, the squares will be orange if SASS is functioning, the text will be BLUE if Jest is working, you can adjust src/tests/index.test.js to make the test pass or fail and run npm run test to watch it.

DEV SERVER:

CLI:

npm start

the webpack dev server is preset for cloud9 IDE - to change it find the start script in package.JSON and remove the following option:

--host 0.0.0.0

this should allow the dev server to run on localhost

BUILD:

to see a transpiled copy for deployment:

npm run build

AUTOFIX:

npm run autofix

this will run prettier and eslint sequentially, fixing and formatting all your code

want prettier to use spaces instead of tabs? remove the --use-tabs option flag in the pretty script in package.JSON

DEPLOY on Github pages:

this package include gh-pages.

To get set up, simply run the following commands:

git remote add origin <github repo link>

npm run deploy

this will create a gh-pages branch on your repo, run a build, and upload that build to the gh-pages branch, enabling it as the page for the repo

TEST:

npm run test

this will run jest in watch mode so you can run all tests effected since your last commit

test files need to be placed in src/tests and need to have the .test.js post-fix

d3-forcechart's People

Contributors

benjmhart avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.