Skip to content

Instantly share code, notes, and snippets.

@avimehenwal
Last active July 11, 2020 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avimehenwal/88232e57be54dbe5694a1a40f72f20fa to your computer and use it in GitHub Desktop.
Save avimehenwal/88232e57be54dbe5694a1a40f72f20fa to your computer and use it in GitHub Desktop.
Bootstrap new nuxt project
yarn create nuxt-app <project-name>

Nuxt modules

yarn add nuxt @nuxt/http @nuxt/content @nuxt/pwa @nuxt/axios @nuxtjs/sitemap
yarn add vue-google-charts

git and commit tooling

yarn add -D commitizen husky semantic-release @commitlint/{config-conventional,cli}

Post install configurations

commitizen init cz-conventional-changelog --yarn --dev --exact
npx semantic-release-cli setup

# https://nuxtjs.org/faq/ga

Final Product package.json

{
  "name": "fan-gallery",
  "version": "0.0.0-development",
  "description": "My beautiful Fan project",
  "author": "avimehenwal",
  "private": true,
  "scripts": {
    ...
    "analyze": "nuxt build --analyze"
    "commit": "git-cz",
    "sr": "semantic-release"
  },
  "husky": {
    "hooks": {
      "prepare-commit-msg": "exec < /dev/tty && git cz --hook || true",
      "commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
      "pre-commit": "npm lint",
      "pre-push": "npm generate"
    }
  },
  "release": {
    "branches": ["master", "next"]
  }
  "config": {
    "commitizen": {
      "path": "./node_modules/cz-conventional-changelog"
    }
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/avimehenwal/fan-gallery.git"
  },
  "bugs": {
    "url": "https://github.com/avimehenwal/fan-gallery/issues"
  },
  "dependencies": {
    ...
  },
  "devDependencies": {
    ...
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment