This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add/update scripts, cleaned up structure, improved defaults
- Loading branch information
1 parent
7e64ebb
commit ac56ad6
Showing
19 changed files
with
155 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,21 @@ | ||
const fs = require('fs') | ||
|
||
module.exports = api => { | ||
api.render('./template') | ||
|
||
api.extendPackage({ | ||
devDependencies: { | ||
'vuex-pathify': '*' | ||
} | ||
}) | ||
|
||
api.onCreateComplete(() => { | ||
const packagePath = api.resolve('package.json') | ||
const package = require(packagePath) | ||
|
||
package.scripts.serve = 'vue-cli-service serve --open' | ||
package.scripts.deploy = 'yarn build && now' | ||
|
||
fs.writeFileSync(packagePath, JSON.stringify(package, null, 2)) | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "vuetify", | ||
"type": "static", | ||
"static": { | ||
"public": "dist", | ||
"rewrites": [ | ||
{ | ||
"source": "**", | ||
"destination": "/index.html" | ||
} | ||
] | ||
}, | ||
"files": [ | ||
"dist" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<script> | ||
import { VCard } from 'vuetify/lib' | ||
import { VBtn } from 'vuetify/lib' | ||
export default { | ||
name: 'Btn', | ||
extends: VCard | ||
extends: VBtn | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
import { VCard } from 'vuetify/lib' | ||
export default { | ||
name: 'BaseCard', | ||
name: 'Card', | ||
extends: VCard | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
<template> | ||
<v-app-bar app> | ||
<!-- --> | ||
<v-app-bar-nav-icon @click="drawer = !drawer" /> | ||
</v-app-bar> | ||
</template> | ||
|
||
<script> | ||
// Utilities | ||
import { | ||
sync | ||
} from 'vuex-pathify' | ||
export default { | ||
name: 'CoreAppBar', | ||
computed: { | ||
drawer: sync('app/drawer') | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,31 @@ | ||
<template> | ||
<v-navigation-drawer app> | ||
<!-- --> | ||
<v-navigation-drawer | ||
v-model="drawer" | ||
app | ||
> | ||
<v-list nav> | ||
<v-list-item to="/"> | ||
<v-list-item-title>Home</v-list-item-title> | ||
</v-list-item> | ||
|
||
<v-list-item to="/about"> | ||
<v-list-item-title>About</v-list-item-title> | ||
</v-list-item> | ||
</v-list> | ||
</v-navigation-drawer> | ||
</template> | ||
|
||
<script> | ||
// Utilities | ||
import { | ||
sync | ||
} from 'vuex-pathify' | ||
export default { | ||
name: 'CoreDrawer', | ||
computed: { | ||
drawer: sync('app/drawer') | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
|
||
<script> | ||
export default { | ||
name: 'CoreFooter', | ||
data: () => ({ | ||
date: (new Date()).getFullYear() | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
<template> | ||
<v-content> | ||
<router-view /> | ||
<v-fade-transition mode="out-in"> | ||
<router-view /> | ||
</v-fade-transition> | ||
</v-content> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'CoreView' | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { make } from 'vuex-pathify' | ||
|
||
const state = { | ||
drawer: null | ||
} | ||
|
||
const mutations = make.mutations(state) | ||
|
||
export default { | ||
namespaced: true, | ||
state, | ||
mutations | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as app } from './app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './base' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import Vue from 'vue' | ||
import Vuetify from 'vuetify/lib' | ||
|
||
Vue.use(Vuetify) | ||
|
||
export default new Vuetify() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
// Required for modifying core defaults | ||
@import '~vuetify/src/styles/styles.sass'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import Vue from 'vue' | ||
import Vuex from 'vuex' | ||
import pathify from 'vuex-pathify' | ||
|
||
import * as modules from './modules' | ||
|
||
Vue.use(Vuex) | ||
|
||
export default new Vuex.Store({ | ||
plugins: [pathify.plugin], | ||
modules | ||
}) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<v-container | ||
id="home" | ||
class="fill-height" | ||
tag="section" | ||
> | ||
<v-row | ||
align="center" | ||
class="fill-height" | ||
> | ||
<v-img | ||
:src="require('@/assets/vuetify.svg')" | ||
alt="Vuetify logo" | ||
contain | ||
height="400" | ||
/> | ||
</v-row> | ||
</v-container> | ||
</template> |