视频会议

This commit is contained in:
wangqiong
2024-01-18 10:46:33 +08:00
parent d7f5ce05ea
commit 37a88df277
28922 changed files with 2797396 additions and 19461 deletions
+24
View File
@@ -0,0 +1,24 @@
'use strict'
// Run when package is installed
const path = require('path')
const isCI = require('is-ci')
const installFrom = require('../src/install')
if (isCI && !process.env.HUSKY_IGNORE_CI && !process.env.YORKIE_IGNORE_CI) {
console.log('CI detected, skipping Git hooks installation')
process.exit(0)
}
if (process.env.HUSKY_SKIP_INSTALL || process.env.YORKIE_SKIP_INSTALL) {
console.log(
`env variable HUSKY_SKIP_INSTALL is set to ${process.env
.HUSKY_SKIP_INSTALL}, skipping Git hooks installation`
)
process.exit(0)
}
console.log('setting up Git hooks')
const depDir = path.join(__dirname, '..')
installFrom(depDir)
+11
View File
@@ -0,0 +1,11 @@
'use strict'
// Run when package is uninstalled
const path = require('path')
const uninstallFrom = require('../src/uninstall')
console.log('husky')
console.log('uninstalling Git hooks')
const depDir = path.join(__dirname, '..')
uninstallFrom(depDir)