remove node_modules and .gitignore them

This commit is contained in:
2023-11-24 14:40:32 -05:00
parent 5f6e638903
commit a74d7b91b8
8963 changed files with 1 additions and 874175 deletions
-34
View File
@@ -1,34 +0,0 @@
// reset.js
import {
existsSync,
unlinkSync
} from 'fs'
import { execSync } from 'child_process'
const dirs = [
'dist',
'docs',
'.nyc_output',
'coverage',
'node_modules',
'.nuxt',
]
const files = [
'yarn.lock',
'pnpm-lock.yaml',
'package-lock.json',
'coverage.lcov',
]
dirs.forEach((d) => {
execSync(`rm -rf ${d}`)
})
files.forEach((f) => {
if (existsSync(f)) {
unlinkSync(f)
}
})