Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.05 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.05 KB

Cofacts Community Builder

CI test

Tools that help community building.

Discussion: https://g0v.hackmd.io/@mrorz/B1X4EkJcU#New-idea-Social-media-toolkit

Development

# Install dependency, initialize .env file for development
$ npm install
$ cp .env.sample .env.local

# Start dev server
$ npm start

Other scripts include:

  • npm run lint: Runs eslint
  • npm run lint:fix: Runs eslint and handle fixable errors
  • npm run typecheck: Checks Typescript types
  • npm run codegen: After changing GraphQL query, run this to update Typescript types

Lint and check is also invoked in Travis.

Deployment

In .travis.yml we have configured an automatic deploy to gh-pages branch.

If you want to maintain a fork and deploy to your own gh-pages, follow these steps to setup GITHUB_TOKEN environment variable in your Travis project.