install-deps.js 443 B

12345678910111213141516171819202122
  1. #!/usr/bin/env node
  2. const sh = require('shelljs')
  3. const path = require('path')
  4. const vars = require('./vars')
  5. const log = require('npmlog')
  6. log.info('deps', 'app')
  7. sh.exec('npm prune')
  8. sh.exec('npm update --dev')
  9. sh.cd('app')
  10. sh.exec('npm prune')
  11. sh.exec('npm update --dev')
  12. sh.cd('..')
  13. vars.builtinPlugins.forEach(plugin => {
  14. log.info('deps', plugin)
  15. sh.cd(plugin)
  16. sh.exec('npm prune')
  17. sh.exec('npm update --dev')
  18. sh.cd('..')
  19. })