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 # Other
/static/app-list.json /static/app-list.json
/README-temp.md /README-temp.md
/game-list.json /static/game-list.json
.DS_Store .DS_Store
/commits-data.json /commits-data.json

View file

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

View file

@ -118,7 +118,7 @@
<script> <script>
import LinkButton from '~/components/link-button.vue' import LinkButton from '~/components/link-button.vue'
import EmailSubscribe from '~/components/email-subscribe.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' // import buildAppList from '~/helpers/build-app-list'
export default { export default {

View file

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

View file

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