1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-12-19 00:02:09 +03:00
tabby/scripts/install-deps.js

34 lines
815 B
JavaScript
Raw Normal View History

2017-05-01 01:01:12 +03:00
#!/usr/bin/env node
const sh = require('shelljs')
const vars = require('./vars')
2017-06-10 01:29:16 +03:00
const log = require('npmlog')
2017-05-01 01:01:12 +03:00
log.info('patch')
2022-01-16 21:41:01 +03:00
sh.exec(`yarn patch-package`, { fatal: true })
2017-06-10 01:29:16 +03:00
log.info('deps', 'app')
2017-05-01 01:01:12 +03:00
2017-06-21 00:28:58 +03:00
sh.cd('app')
2022-02-24 00:15:15 +03:00
sh.exec(`yarn install --force --network-timeout 1000000`, { fatal: true })
2017-06-21 00:28:58 +03:00
sh.cd('..')
2021-06-19 23:01:35 +03:00
sh.cd('web')
2022-02-24 00:15:15 +03:00
sh.exec(`yarn install --force --network-timeout 1000000`, { fatal: true })
2022-01-16 21:41:01 +03:00
sh.exec(`yarn patch-package`, { fatal: true })
2021-06-19 23:01:35 +03:00
sh.cd('..')
2021-08-08 23:06:08 +03:00
vars.allPackages.forEach(plugin => {
log.info('deps', plugin)
sh.cd(plugin)
2022-02-24 00:15:15 +03:00
sh.exec(`yarn install --force --network-timeout 1000000`, { fatal: true })
sh.cd('..')
2017-05-01 01:01:12 +03:00
})
2018-03-23 19:15:11 +03:00
if (['darwin', 'linux'].includes(process.platform)) {
sh.cd('node_modules')
for (let x of vars.builtinPlugins) {
sh.ln('-fs', '../' + x, x)
}
sh.cd('..')
2018-03-23 19:15:11 +03:00
}