A TypeScript + Graphql + Gatsby project for Milli Frontend. 🔥
Following plugins setup:
- 📏 ESLint — Pluggable JavaScript linter
- 💖 Prettier - Opinionated Code Formatter
- 🐶 Husky — Use git hooks with ease
- 📄 Commitizen - Conventional commit messages CLI
- 🚓 Commitlint - Lint commit messages
- 🖌 Renovate - Dependency update tool
- 🚫 lint-staged - Run linters against staged git files
- 🗂 Root import - Import folders and files using the
@
prefix.
If you prefer you can clone this repository and run the following commands inside the project folder:
- Clone the repo
- Run
yarn start:gql
to start the mock-graphql server - Run
yarn gql:update
to generate typings for the graphql queries - Run
yarn start
to start the dev environment
To view the project you can open http://localhost:8000
.
- If you make a change to a query, rerun
yarn gql:update
to regenerate the typescript typings- if not, your changes won't reflect in your auto-complete
- if you make a change to the schema, restart
yarn start:gql
- re-run
yarn gql:fetch
to download the JSON version of the schema from the mock schema - commit
schema.sdl
andgraphql-schema.json
in the same git-commit - re-run
gql:update
if needed
- re-run
- Fork this repository;
- Create your branch:
git checkout -b my-new-feature
; - Commit your changes:
git commit -m 'Add some feature'
; - Push to the branch:
git push origin my-new-feature
.
After your pull request is merged, you can safely delete your branch.
See the LICENSE.md file for more information.
Based off Typescript-Start by João Pedro Schmitz