Move Game List to static folder

This commit is contained in:
Sam Carlton 2020-11-27 12:42:58 -06:00
parent 4255174dd3
commit b22fd148f1
5 changed files with 6 additions and 6 deletions

2
.gitignore vendored
View file

@ -84,6 +84,6 @@ dist
# Other
/static/app-list.json
/README-temp.md
/game-list.json
/static/game-list.json
.DS_Store
/commits-data.json

View file

@ -18,7 +18,7 @@ const storeAppList = async function (builder) {
const gamesListPath = path.join(
// builder.nuxt.options.buildDir,
builder.nuxt.options.srcDir,
'/game-list.json'
'/static/game-list.json'
)
const appList = await buildAppList()
@ -60,7 +60,7 @@ export default {
routes() {
return Promise.all([
import('./static/app-list.json'),
import('./game-list.json')
import('./static/game-list.json')
])
.then(([
importedAppList,

View file

@ -118,7 +118,7 @@
<script>
import LinkButton from '~/components/link-button.vue'
import EmailSubscribe from '~/components/email-subscribe.vue'
import gameList from '~/game-list.json'
import gameList from '~/static/game-list.json'
// import buildAppList from '~/helpers/build-app-list'
export default {

View file

@ -45,7 +45,7 @@
import Search from '~/components/search.vue'
import LinkButton from '~/components/link-button.vue'
import gameList from '~/game-list.json'
import gameList from '~/static/game-list.json'
export default {
components: {

View file

@ -40,7 +40,7 @@ import LinkButton from '~/components/link-button.vue'
import { byTimeThenNull } from '~/helpers/sort-list.js'
import appList from '~/static/app-list.json'
import gameList from '~/game-list.json'
import gameList from '~/static/game-list.json'
// console.log('appList.length', appList.length)
// console.log('gameList.length', gameList.length)