Branch | Build | Coverage |
---|---|---|
develop | ||
master |
Follow this steps to setup your development environment.
- Install NodeJS (^6.6.0). It is highly recommended to use Node Version Manager (for Mac and Linux). A Windows version is also available.
- Install Yarn running
npm install -g yarn
. - Open a terminal at the root folder of the project.
- Run
yarn
.
When all your dependencies are installed, you can follow this steps to build the project on your machine for development.
- Open a terminal at the root folder of the project.
- Run
yarn start
. - You can see the site running on
http://localhost:3000
. The project will get recompiled automatically when you change the code.
- Run
yarn run lint:css
to run Stylelint. - Run
yarn run lint:js
to run ESLint.
- Open a terminal at the root folder of the project.
- Run
yarn run test:start
. - The project will be built and a special Chrome window will be opened.
- The tests will be run.
- The tests will run again automatically when you change the code.
If you meet some error when trying to run yarn start
or yarn run test:start
, the most common cause is that someone has added or updated some new dependency into the project.
Run yarn
to get your environment up to date.