Initial commit

This commit is contained in:
Daniel Scalzi
2019-07-28 13:55:51 -04:00
commit 68e09fbac7
9 changed files with 817 additions and 0 deletions

25
src/index.ts Normal file
View File

@@ -0,0 +1,25 @@
import yargs from 'yargs'
import { resolve } from 'path'
yargs
.scriptName('')
.coerce({
root: resolve
})
.command({
command: 'generate <root>',
aliases: ['g'],
describe: 'Generate a distribution.json',
builder: (yargs) => {
return yargs.positional('root', {
describe: 'File structure root',
type: 'string'
})
},
handler: (argv) => {
console.log(`got generate with root=${argv.root}`)
}
})
.demandCommand()
.help()
.argv