mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Clone README when generating
This commit is contained in:
parent
643be6dc21
commit
feded332a1
4 changed files with 6 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -83,3 +83,4 @@ dist
|
|||
|
||||
# Other
|
||||
/app-list.json
|
||||
/README-temp.md
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ const getTokenLinks = function ( childTokens ) {
|
|||
|
||||
export default async function () {
|
||||
|
||||
const readmeContent = await fs.readFile('./README.md', 'utf8')
|
||||
const readmeContent = await fs.readFile('./README-temp.md', 'utf8')
|
||||
|
||||
// console.log('readmeContent', readmeContent)
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { promises as fs } from 'fs'
|
|||
import path from 'path'
|
||||
|
||||
import pkg from './package'
|
||||
import buildAppList from './helpers/build-app-list'
|
||||
import buildAppList from './helpers/build-app-list.js'
|
||||
|
||||
|
||||
const storeAppList = async function (builder) {
|
||||
|
|
|
|||
|
|
@ -8,10 +8,11 @@
|
|||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start",
|
||||
"generate": "nuxt generate",
|
||||
"generate": "rm -f ./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"
|
||||
"precommit": "npm run lint",
|
||||
"clone-readme": "cp ./README.md README-temp.md"
|
||||
},
|
||||
"dependencies": {
|
||||
"@nuxtjs/sitemap": "^2.4.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue