Skip to content

Commit

Permalink
feat(package): Add Vuetify and its settings
Browse files Browse the repository at this point in the history
  • Loading branch information
hideto2112 committed Jan 8, 2020
1 parent bc0d247 commit 27748f6
Show file tree
Hide file tree
Showing 5 changed files with 112 additions and 5 deletions.
4 changes: 2 additions & 2 deletions site/layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div>
<v-app>
<nuxt />
</div>
</v-app>
</template>
23 changes: 21 additions & 2 deletions site/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ const config: Configuration = {
content: process.env.npm_package_description || ''
}
],
link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{
rel: 'stylesheet',
href:
'https://fonts.googleapis.com/css?family=Noto+Sans+JP:300,400,500,700|Material+Icons'
}
],
...(SUPPORT_IE === 'true'
? {
script: [
Expand Down Expand Up @@ -54,7 +61,9 @@ const config: Configuration = {
// Doc: https://github.com/nuxt-community/stylelint-module
'@nuxtjs/stylelint-module',
// Doc: https://typescript.nuxtjs.org/
['@nuxt/typescript-build', { typeCheck: { eslint: true } }]
['@nuxt/typescript-build', { typeCheck: { eslint: true } }],
// Doc: https://github.com/nuxt-community/vuetify-module
'@nuxtjs/vuetify'
],
/*
** Nuxt.js modules
Expand All @@ -70,6 +79,16 @@ const config: Configuration = {
** See https://axios.nuxtjs.org/options
*/
axios: { baseURL: 'https://example.com/v1' },
/*
** Vuetify module configuration
** See https://github.com/nuxt-community/vuetify-module#options
*/
vuetify: {
defaultAssets: {
font: { family: 'Noto Sans JP' }
},
treeShake: true
},
/*
** Build configuration
*/
Expand Down
86 changes: 86 additions & 0 deletions site/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@nuxt/typescript-build": "^0.5.5",
"@nuxtjs/eslint-config-typescript": "^1.0.0",
"@nuxtjs/stylelint-module": "^3.1.1",
"@nuxtjs/vuetify": "^1.9.1",
"@types/faker": "^4.1.8",
"aspida": "^0.7.0",
"axios-mock-server": "^0.16.3",
Expand Down
3 changes: 2 additions & 1 deletion site/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"types": [
"@types/node",
"@nuxt/types",
"@nuxtjs/axios"
"@nuxtjs/axios",
"vuetify"
]
},
"exclude": [
Expand Down

0 comments on commit 27748f6

Please sign in to comment.