fliphub-monorepo
Version:
the builder of builders
40 lines (36 loc) • 645 B
Markdown
global variables passed around for configuration
from [globals][node-global]
```js
flags: {
names: [
{flag: 'compile'},
{flag: 'exec'},
{flag: 'run'},
{flag: 'test'},
],
cb: (flags) => {},
}
```
```js
flags: [
{
names: ['html'],
cb({html}) {
if (!html) return {}
var template = `./back/verbose/${html}.html`
return {html: [{template}]}
},
},
{
names: [{flag: 'run', type: 'bool', default: false}],
cb({run}) {
return {run}
},
},
],
```
- checks for `to` and `from` for flips
flags can be used to find