tabby/scripts/install-deps.js

26 lines
514 B
JavaScript
Raw Normal View History

2017-04-30 22:01:12 +00:00
#!/usr/bin/env node
const sh = require('shelljs')
const path = require('path')
const vars = require('./vars')
2017-06-09 22:29:16 +00:00
const log = require('npmlog')
2017-04-30 22:01:12 +00:00
2017-06-09 22:29:16 +00:00
log.info('deps', 'app')
2017-04-30 22:01:12 +00:00
sh.exec('npm prune')
2017-06-24 13:49:32 +00:00
sh.exec('npm install')
2017-06-24 12:14:57 +00:00
sh.exec('npm update --dev')
2017-04-30 22:01:12 +00:00
2017-06-20 21:28:58 +00:00
sh.cd('app')
sh.exec('npm prune')
2017-06-24 13:49:32 +00:00
sh.exec('npm install')
2017-06-24 12:14:57 +00:00
sh.exec('npm update --dev')
2017-06-20 21:28:58 +00:00
sh.cd('..')
2017-04-30 22:01:12 +00:00
vars.builtinPlugins.forEach(plugin => {
2017-06-09 22:29:16 +00:00
log.info('deps', plugin)
2017-04-30 22:01:12 +00:00
sh.cd(plugin)
sh.exec('npm prune')
2017-06-24 13:49:32 +00:00
sh.exec('npm install')
2017-06-24 12:14:57 +00:00
sh.exec('npm update --dev')
2017-04-30 22:01:12 +00:00
sh.cd('..')
})