Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

feat: add route page and content fetch #632

Merged
merged 2 commits into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ yarn create nuxt-app <my-project>
- [Vuesax](https://github.com/lusaxweb/vuesax)
- [Vuetify](https://github.com/vuetifyjs/vuetify)
1. Nuxt.js modules:
- [Axios](https://github.com/nuxt-community/axios-module)
- [Axios - Promise based HTTP client](https://github.com/nuxt-community/axios-module)
- [Progressive Web App (PWA)](https://github.com/nuxt-community/pwa-module)
- [Content](https://github.com/nuxt/content)
- [Content - Git-based headless CMS](https://github.com/nuxt/content)
1. Linting tools:
- [ESLint](https://github.com/nuxt/eslint-config)
- [Prettier](https://github.com/prettier/prettier)
Expand Down
4 changes: 2 additions & 2 deletions packages/create-nuxt-app/lib/prompts.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ module.exports = [
type: 'checkbox',
pageSize: 10,
choices: [
{ name: 'Axios', value: 'axios' },
{ name: 'Axios - Promise based HTTP client', value: 'axios' },
{ name: 'Progressive Web App (PWA)', value: 'pwa' },
{ name: 'Content', value: 'content' }
{ name: 'Content - Git-based headless CMS', value: 'content' }
],
default: []
},
Expand Down
3 changes: 2 additions & 1 deletion packages/create-nuxt-app/lib/saofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ module.exports = {
templateDir: join(templateDir, 'nuxt'),
filters: {
'static/icon.png': 'features.includes("pwa")',
'content/hello.md': 'features.includes("content")'
'content/hello.md': 'features.includes("content")',
'pages/content.vue': 'features.includes("content")'
}
}]

Expand Down
6 changes: 3 additions & 3 deletions packages/create-nuxt-app/test/snapshots/index.test.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ Generated by [AVA](https://avajs.dev).
}␊
`

## verify features: Axios
## verify features: Axios - Promise based HTTP client

> Generated files

Expand Down Expand Up @@ -672,7 +672,7 @@ Generated by [AVA](https://avajs.dev).
}␊
`

## verify features: Axios, Progressive Web App (PWA), Content
## verify features: Axios - Promise based HTTP client, Progressive Web App (PWA), Content - Git-based headless CMS

> Generated files

Expand Down Expand Up @@ -771,7 +771,7 @@ Generated by [AVA](https://avajs.dev).
}␊
`

## verify features: Content
## verify features: Content - Git-based headless CMS

> Generated files

Expand Down
Binary file modified packages/create-nuxt-app/test/snapshots/index.test.js.snap
Binary file not shown.