Nuxtjs 手習い
code:yarn create
$ yarn create nuxt-app hmy-nuxt
yarn create v1.22.17
1/4 🔍 Resolving packages... 2/4 🚚 Fetching packages... 3/4 🔗 Linking dependencies... 4/4 🔨 Building fresh packages... success Installed "create-nuxt-app@4.0.0" with binaries:
- create-nuxt-app
create-nuxt-app v4.0.0
✨ Generating Nuxt.js project in hmy-nuxt
? Project name: hmy-nuxt
? Programming language: TypeScript
? Package manager: Yarn
? UI framework: Vuetify.js
? Nuxt.js modules: Axios - Promise based HTTP client, Content - Git-based headless CMS
? Linting tools: ESLint, Prettier, Lint staged files, StyleLint, Commitlint
? Testing framework: Jest
? Rendering mode: Single Page App
? Deployment target: Static (Static/Jamstack hosting)
? Development tools: jsconfig.json (Recommended for VS Code if you're not using typescript), Semantic Pull Requests, Dependabot (For auto-updating dependencies, GitHub only)
? Continuous integration: GitHub Actions (GitHub only)
? What is your GitHub username? inutano
? Version control system: Git
yarn run v1.22.17
$ prettier --write --list-different . && yarn lint:js --fix && yarn lint:style --fix
.eslintrc.js
.github/dependabot.yml
commitlint.config.js
components/NuxtLogo.vue
components/Tutorial.vue
components/VuetifyLogo.vue
content/hello.md
jest.config.js
layouts/default.vue
layouts/error.vue
nuxt.config.js
package.json
pages/index.vue
pages/inspire.vue
README.md
stylelint.config.js
tsconfig.json
$ eslint --ext ".js,.ts,.vue" --ignore-path .gitignore . --fix
$ stylelint "**/*.{css,scss,sass,html,vue}" --ignore-path .gitignore --fix
✨ Done in 2.77s.
🎉 Successfully created project hmy-nuxt
To get started:
cd hmy-nuxt
yarn dev
To build & start for production:
cd hmy-nuxt
yarn build
yarn start
To test:
cd hmy-nuxt
yarn test
For TypeScript users.
✨ Done in 800.06s.
$ yarn dev
yarn run v1.22.17
$ nuxt
ℹ Parsed 1 files in 0.2 seconds @nuxt/content 11:45:26
ℹ NuxtJS collects completely anonymous data about usage. 11:45:26
This will help us improve Nuxt developer experience over time.
? Are you interested in participating? Yes
╭───────────────────────────────────────╮
│ │
│ Nuxt @ v2.15.8 │
│ │
│ ▸ Environment: development │
│ ▸ Rendering: client-side │
│ ▸ Target: static │
│ │
│ │
╰───────────────────────────────────────╯
ℹ Preparing project for development
ℹ Initial build may take a while
ℹ Discovered Components: .nuxt/components/readme.md
✔ Builder initialized
✔ Nuxt files generated
✔ Client
Compiled successfully in 3.23s
ℹ Waiting for file changes
ℹ Memory usage: 503 MB (RSS: 683 MB)
No issues found.