build-plugins.js 240 B

1234567891011
  1. #!/usr/bin/env node
  2. const sh = require('shelljs')
  3. const vars = require('./vars')
  4. const log = require('npmlog')
  5. vars.builtinPlugins.forEach(plugin => {
  6. log.info('build', plugin)
  7. sh.cd(plugin)
  8. sh.exec(`npm run build`)
  9. sh.cd('..')
  10. })