typescript-nuxtjs-boilerplate は Nuxt.js で TypeScript を使うためのボイラープレートになります 🦑
Example url: https://typescript-nuxtjs-boilerplate.netlify.com/example
- Node.js v10+ おすすめは
v10.16.0です
First, clone the repo via git:
git submodule でサンプルを書いているので、以下のように git clone してください
$ git clone --recursive git@github.com:typescript-nuxtjs-boilerplate/typescript-nuxtjs-boilerplate.gitfor mac
$ brew install yarnfor windows
# for Windows (with Chocolatey)
$ choco install yarnUsing yarn:
yarn installNuxt のデフォルトのポートは 3000 ですが、他のプロセスにバッティングするケースが多いので、 4000 にしています
$ yarn run devor
local は dev のエイリアスです
$ yarn run localand run mock server for examples
そしてモックサーバーも別のプロセスとして起動させます
$ node ./tools/server.js5000 番ポートで起動します
本番用の docker ビルドは以下になります
$ yarn run build:docker
$ yarn start$ yarn run build:staticIt will be published in the dist directory
For detailed explanation on how things work, checkout Nuxt.js docs.
サンプル集 - typescript-nuxtjs-boilerplate-docs
npm scriptsの解説 - typescript-nuxtjs-boilerplate-docs
typescript-nuxtjs-boilerplate のドキュメントです docs and guides here
MIT © hisasann
