mirror of https://github.com/abpframework/abp.git
5 changed files with 39 additions and 8 deletions
@ -0,0 +1,27 @@ |
|||||
|
const glob = require('glob'); |
||||
|
var path = require('path'); |
||||
|
const childProcess = require('child_process'); |
||||
|
|
||||
|
const gulp = pkgJsonPath => { |
||||
|
try { |
||||
|
console.log('Running the yarn command... Cwd: ' + pkgJsonPath); |
||||
|
childProcess.execSync(`yarn`, { cwd: pkgJsonPath }); |
||||
|
console.log('Running the gulp command...'); |
||||
|
return childProcess.execSync(`gulp`, { cwd: pkgJsonPath, stdio: 'inherit' }); |
||||
|
} catch (error) { |
||||
|
console.log('exec error: ' + error.message); |
||||
|
process.exit(error.status); |
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
const folder = process.argv[2] || '.'; |
||||
|
|
||||
|
glob(folder + '/**/package.json', {}, (er, files) => { |
||||
|
files.forEach(file => { |
||||
|
if (file.includes('node_modules')) { |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
gulp(file.replace('/package.json', '')); |
||||
|
}); |
||||
|
}); |
||||
@ -1,10 +1,13 @@ |
|||||
& cd ng-packs\scripts |
& cd ng-packs\scripts |
||||
& npm install |
& npm install |
||||
& yarn build |
& npm run build |
||||
& cd ../../ |
& cd ../../ |
||||
& yarn |
& yarn |
||||
& yarn lerna publish --no-push |
& yarn lerna publish --no-push |
||||
& cd ng-packs\scripts |
& cd ng-packs\scripts |
||||
& yarn sync |
& npm run sync |
||||
& cd ../../ |
& cd ../../ |
||||
& yarn update:templates |
& yarn update:templates |
||||
|
& yarn global add gulp |
||||
|
& yarn gulp:app |
||||
|
& yarn gulp:module |
||||
Loading…
Reference in new issue