Skip to content

Install development environment

Daniele Zannotti edited this page May 17, 2019 · 3 revisions

Prerequisites

NodeJS
Yarn Package Manager

Setup development environment

  • Clone the repo git clone git@github.com:dzannotti/junox.git
  • navigate to folder
  • yarn (this will install all depedencies)

Run development environment

yarn start
open browser to http://localhost:8080
Upon changes it should automatically refresh or hot reload as needed

Tasks

After the setup you can choose which task to run using the syntax yarn <taskname>
The tasks are defined in package.json scripts section

script description
start run the development environment in http://localhost:8080
build generate a production build
deploy deploys to gh-pages (this task is automated after merging a pr - can also be ran manually)
lint lint the project
stats produces a stats file for Webpack Visualizer
test runs unit tests
tdd runs unit test in watch mode
convert:patches converts patches/Juno60.csv to src/junox/patches.js json format