Skip to content

MieszkoGulinski/commit.neufund.org

 
 

Repository files navigation

Neufund commitment page

Greenkeeper badge

Developing

yarn
yarn start

Then open http://localhost:8080. Hot reloading of both react and static files (ejs, sass) files should work. Sometimes gulp forgets to watch new files so you need to rerun yarn start.

Environment variables

In .env.example your will find all used env variables. When you do yarn start this file will be copied as .env (only if it doesn't exists already). If you want to change something modify .env file which is gitignored. If you want to add new env variable make sure to add default to .env.example.

FAQ_ENABLED

We use this variable to show the FAQ page by assigning 1 or hide it and use comming soon by assinging 0.

Linting

To autofix any errors just do yarn lint:fix.

Yarn conflict merging

When working on diffrent branches and dependancies diverge, during merge/rebase huge yarn.lock conflicts will emerge. It would be unpractical to solve these problems manually. In order to cleanly install new dependancies while keeping old lockfile configrations just do yarn fixyarn.

Tests

yarn test

Coverage report

yarn test:coverage

Building

yarn build

You will find all files in dist directory.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 35.1%
  • HTML 27.8%
  • TypeScript 22.8%
  • JavaScript 14.3%