Skip to content

Latest commit

 

History

History
74 lines (49 loc) · 1.4 KB

CONTRIBUTING.md

File metadata and controls

74 lines (49 loc) · 1.4 KB

Setup

Make sure to install the dependencies

ni

Development

Start the dev server

nr dev

Default port is :3000

Build

Build the app for production

nr build

Check the deployment docs.

Set up linting

Git hooks

It's highly recommended to set up commits' fixing by linter.

We're using a simple-git-hooks package.

  • Update packages
    ni
    
  • Set git's hooks directory
    git config core.hooksPath .git/hooks/
    rm -rf .git/hooks
    

    Note It's important because your local git hooks dir's path might be overriden by similar package - husky - if you have tried it.

  • Say simple-git-hooks to start doing its magic:
    npx simple-git-hooks
    

After that your staged files will be checked and fixed locally on commit.

VS Code Setup

Get and use dbaeumer.vscode-eslint.

But you've probably installed it within all the other recommended extensions already, haven't you?


...And ofc keep the nuxt docs opened ;)