1
0
Fork 0

chore: Publishing on pattern examples

This commit is contained in:
Joost De Cock 2020-11-07 16:35:39 +01:00
parent 0f333b8c38
commit d493e30f30
5 changed files with 22993 additions and 12752 deletions

View file

@ -3,17 +3,17 @@ const path = require('path')
const spawn = require('child_process').spawn
const dir = path.join(__dirname, '..')
const base = 'aaron'
const buildPatternWorkbenches = async (patterns) => {
promises = []
for (pattern of patterns) {
let cwd = path.join(dir, 'packages', pattern, 'example')
await runScript(cwd, 'rm -rf node_modules yarn.lock')
await runScript(cwd, 'yarn install')
await runScript(cwd, 'yarn install')
await runScript(cwd, 'yarn build')
await runScript(cwd, 'netlify deploy --prod')
}
return Promise.all(promises)
}
const runScript = (cwd, command) =>