mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
config redirect
This commit is contained in:
27
node_modules/tailwindcss/scripts/install-integrations.js
generated
vendored
Normal file
27
node_modules/tailwindcss/scripts/install-integrations.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
let fs = require('fs/promises')
|
||||
let { spawn } = require('child_process')
|
||||
let path = require('path')
|
||||
let root = process.cwd()
|
||||
|
||||
function npmInstall(cwd) {
|
||||
return new Promise((resolve) => {
|
||||
let childProcess = spawn('npm', ['install'], { cwd })
|
||||
childProcess.on('exit', resolve)
|
||||
})
|
||||
}
|
||||
|
||||
async function install() {
|
||||
let base = path.resolve(root, 'integrations')
|
||||
let ignoreFolders = ['node_modules']
|
||||
let integrations = (await fs.readdir(base, { withFileTypes: true }))
|
||||
.filter((integration) => integration.isDirectory())
|
||||
.filter((integration) => !ignoreFolders.includes(integration.name))
|
||||
.map((folder) => path.resolve(base, folder.name))
|
||||
.concat([base])
|
||||
.map((integration) => npmInstall(integration))
|
||||
|
||||
await Promise.all(integrations)
|
||||
console.log('Done!')
|
||||
}
|
||||
|
||||
install()
|
||||
Reference in New Issue
Block a user