Moce app list to static folder

This commit is contained in:
Sam Carlton 2020-11-26 16:00:42 -06:00
parent 648c7914e5
commit b475efa577
6 changed files with 7 additions and 7 deletions

2
.gitignore vendored
View file

@ -82,7 +82,7 @@ dist
# Other # Other
/app-list.json /static/app-list.json
/README-temp.md /README-temp.md
/game-list.json /game-list.json
.DS_Store .DS_Store

View file

@ -12,7 +12,7 @@ const storeAppList = async function (builder) {
const appListPath = path.join( const appListPath = path.join(
// builder.nuxt.options.buildDir, // builder.nuxt.options.buildDir,
builder.nuxt.options.srcDir, builder.nuxt.options.srcDir,
'/app-list.json' '/static/app-list.json'
) )
const gamesListPath = path.join( const gamesListPath = path.join(
@ -59,7 +59,7 @@ export default {
}, },
routes() { routes() {
return Promise.all([ return Promise.all([
import('./app-list.json'), import('./static/app-list.json'),
import('./game-list.json') import('./game-list.json')
]) ])
.then(([ .then(([

View file

@ -8,7 +8,7 @@
"dev": "nuxt", "dev": "nuxt",
"build": "nuxt build", "build": "nuxt build",
"start": "nuxt start", "start": "nuxt start",
"generate": "rm -f ./app-list.json && npm run clone-readme && nuxt generate", "generate": "rm -f ./static/app-list.json && npm run clone-readme && nuxt generate",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .", "lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
"lint:fix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .", "lint:fix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
"precommit": "npm run lint", "precommit": "npm run lint",

View file

@ -48,7 +48,7 @@
import parseGithubDate from '~/helpers/parse-github-date' import parseGithubDate from '~/helpers/parse-github-date'
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 appList from '~/app-list.json' import appList from '~/static/app-list.json'
// import buildAppList from '~/helpers/build-app-list' // import buildAppList from '~/helpers/build-app-list'
export default { export default {

View file

@ -37,7 +37,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 appList from '~/app-list.json' import appList from '~/static/app-list.json'
import gameList from '~/game-list.json' import gameList from '~/game-list.json'
// console.log('appList.length', appList.length) // console.log('appList.length', appList.length)

View file

@ -41,7 +41,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 appList from '~/app-list.json' import appList from '~/static/app-list.json'
export default { export default {
async asyncData ({ params: { slug } }) { async asyncData ({ params: { slug } }) {