Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

pulsar-inc/nuxt-boilerplate

Repository files navigation

nuxt-boilerplate

Nuxt PWA GraphQL boilerplate

Plugins

  • @nuxtjs/svg-sprite NPM
  • @nuxtjs/apollo NPM
  • @nuxtjs/dotenv NPM
  • @nuxtjs/pwa NPM

Developement

  • @nuxtjs/style-resources NPM
  • sass-loader NPM
  • node-sass NPM
  • husky NPM

Visual Studio Code

  • kumar-harsh.graphql-for-vscode EXT
  • dbaeumer.vscode-eslint EXT
  • prisma.vscode-graphql EXT
  • mrmlnc.vscode-scss EXT
  • octref.vetur EXT

Environment variables

  • DEFAULT_ENDPOINT ('' by default) GraphQL endpoint url
  • SENTRY_DSN (undefined by default) Sentry DSN

Commit linting

By default commits messages must be prefixed by one of these keyword

[ADD]
[FIX] or [FIX #1]
[TEST]
[MERGE]
[UPDATE]
[REMOVE] or [DELETE]
[FEATURE]

Configuration

Style can be configured via main.scss variables.

Commit linting can be changed in .linter/commit.py.

Build Setup

# install dependencies
$ npm install

# serve with hot reload at 0.0.0.0:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate

For detailed explanation on how things work, check out Nuxt.js docs.