Include all build tools in project's dependencies

This commit is contained in:
Tri Nguyen
2017-11-28 00:19:38 -05:00
parent d9e337aa46
commit de6e545f8f
3 changed files with 1270 additions and 49 deletions

View File

@@ -4,16 +4,19 @@ const path = require('path')
const vars = require('./vars')
const log = require('npmlog')
const localBinPath = path.resolve(__dirname, '../node_modules/.bin');
const npx = `${localBinPath}/npx`;
log.info('deps', 'app')
sh.exec('yarn install')
sh.exec(`${npx} yarn install`)
sh.cd('app')
sh.exec('yarn install')
sh.exec(`${npx} yarn install`)
sh.cd('..')
vars.builtinPlugins.forEach(plugin => {
log.info('deps', plugin)
sh.cd(plugin)
sh.exec('yarn install')
sh.exec(`${npx} yarn install`)
sh.cd('..')
})