Skip to content

Commit

Permalink
Merge branch 'vue3-vite2-ts-template(dev)' of github.com:1018715564/p…
Browse files Browse the repository at this point in the history
…roject_template into vue3-vite2-ts-template(release)
  • Loading branch information
seho-dev committed Feb 10, 2022
2 parents c6c9969 + 940eddc commit 74cc13c
Show file tree
Hide file tree
Showing 8 changed files with 4,255 additions and 4,408 deletions.
7 changes: 3 additions & 4 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
const fs = require('fs')
const generateTSConfig = (stagedFilenames) => {
return (type) => {
console.log(type)
const tsconfig = JSON.parse(fs.readFileSync('tsconfig.json', 'utf8'))
if (stagedFilenames.length === 0) return ''
tsconfig.include = stagedFilenames
fs.writeFileSync('tsconfig.lint.json', JSON.stringify(tsconfig))
return `${type} --noEmit --project tsconfig.lint.json`
tsconfig.include = tsconfig.include.concat(stagedFilenames)
fs.writeFileSync(`tsconfig.${type}.lint.json`, JSON.stringify(tsconfig))
return `${type} --noEmit --project tsconfig.${type}.lint.json`
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"prettier": "^2.4.1",
"sass": "^1.38.0",
"typescript": "^4.5.2",
"unplugin-auto-import": "0.5.4",
"unplugin-auto-import": "0.5.11",
"unplugin-vue-components": "^0.16.0",
"vite": "^2.7.7",
"vite-plugin-compression": "^0.3.5",
Expand Down
Loading

0 comments on commit 74cc13c

Please sign in to comment.