NOTE: create-nuxt-app-ts is merged. You can use it.
This is a starter template for nuxt@^2.9 & TypeScript & jest.
Now, this is working on nuxt@2.11.0
This is like a fork of starter-template provided by nuxt-community.
A Nuxt.js starter project template without the distraction of a complicated development.
- nuxt.config.ts
- tsconfig.json
- .eslintrc.js
- stylelint.config.json
- .prettierrc
- axios *
- ts-jest *
- sass-loader *
You can customize * options
This is a project template for vue-cli.
$ npx vue init u-sho/nuxt2.9-template/ my-project
$ cd my-project
# install dependencies
$ yarn install # Or npm installMakesure to use a version of vue-cli >= 2.1 (`vue -V).
$ git initNOTE: If you don't use git,
.gitignoreis important..gitignoreis used by ESlint & stylelint.
# serve with hot reloading at localhost:3000
$ yarn devGo to http://localhost:3000
# build for production and launch the server
$ yarn build
$ yarn start# generate a static project
$ yarn generate# eslint for javascript, typescript, and vue file
$ yarn lint
$ yarn lint --fix
# stylelint for css, scss, and vue file
$ yarn slint
$ yarn slint --fix# typecheck of typescript
$ yarn tsc# test vue components by jest or ts-jest
$ yarn test-
Uninstall Sass: check this PR #1 and edit
package.json,stylelint.config.js. After that, removenode_modules/and Re:yarn install -
Uninstall jest: check this PR #3 and edit
package.json. After that, removetest/andnode_modulesand Re:yarn install -
Uninstall axios: check this PR #5 and edit
package.json,nuxt.config.ts,tsconfig.json. After that, removenode_modules/and Re:yarn install -
Uninstall TypeScript: Don't use this. Use nuxt-create-app
-
Install PWA: check pwa.nuxtjs.org/ and edit
package.jsonandnuxt.config.ts