tabby/scripts/install-deps.js
2017-07-15 18:16:27 +02:00

22 lines
434 B
JavaScript
Executable file

#!/usr/bin/env node
const sh = require('shelljs')
const path = require('path')
const vars = require('./vars')
const log = require('npmlog')
log.info('deps', 'app')
sh.exec('yarn prune')
sh.exec('yarn install')
sh.cd('app')
sh.exec('yarn prune')
sh.exec('yarn install')
sh.cd('..')
vars.builtinPlugins.forEach(plugin => {
log.info('deps', plugin)
sh.cd(plugin)
sh.exec('yarn prune')
sh.exec('yarn install')
sh.cd('..')
})