mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Moce app list to static folder
This commit is contained in:
parent
648c7914e5
commit
b475efa577
6 changed files with 7 additions and 7 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -82,7 +82,7 @@ dist
|
|||
|
||||
|
||||
# Other
|
||||
/app-list.json
|
||||
/static/app-list.json
|
||||
/README-temp.md
|
||||
/game-list.json
|
||||
.DS_Store
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const storeAppList = async function (builder) {
|
|||
const appListPath = path.join(
|
||||
// builder.nuxt.options.buildDir,
|
||||
builder.nuxt.options.srcDir,
|
||||
'/app-list.json'
|
||||
'/static/app-list.json'
|
||||
)
|
||||
|
||||
const gamesListPath = path.join(
|
||||
|
|
@ -59,7 +59,7 @@ export default {
|
|||
},
|
||||
routes() {
|
||||
return Promise.all([
|
||||
import('./app-list.json'),
|
||||
import('./static/app-list.json'),
|
||||
import('./game-list.json')
|
||||
])
|
||||
.then(([
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"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:fix": "eslint --fix --ext .js,.vue --ignore-path .gitignore .",
|
||||
"precommit": "npm run lint",
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@
|
|||
import parseGithubDate from '~/helpers/parse-github-date'
|
||||
import LinkButton from '~/components/link-button.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'
|
||||
|
||||
export default {
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
import Search from '~/components/search.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'
|
||||
|
||||
// console.log('appList.length', appList.length)
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
import Search from '~/components/search.vue'
|
||||
import LinkButton from '~/components/link-button.vue'
|
||||
|
||||
import appList from '~/app-list.json'
|
||||
import appList from '~/static/app-list.json'
|
||||
|
||||
export default {
|
||||
async asyncData ({ params: { slug } }) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue