workflow: basic template explorer

This commit is contained in:
Evan You
2019-10-04 13:08:06 -04:00
parent 4d2fa51347
commit 5047bc8dbe
12 changed files with 188 additions and 12 deletions

View File

@@ -51,12 +51,16 @@ async function build(target) {
await fs.remove(`${pkgDir}/dist`)
const env =
(pkg.buildOptions && pkg.buildOptions.env) ||
(devOnly ? 'development' : 'production')
await execa(
'rollup',
[
'-c',
'--environment',
`NODE_ENV:${devOnly ? 'development' : 'production'},` +
`NODE_ENV:${env},` +
`TARGET:${target}` +
(formats ? `,FORMATS:${formats}` : ``) +
(args.types ? `,TYPES:true` : ``) +