WIP
This commit is contained in:
parent
374e79cfb4
commit
d086c1d493
25 changed files with 2539 additions and 239 deletions
19
index.js
19
index.js
|
@ -1,2 +1,19 @@
|
|||
import { Command } from 'commander'
|
||||
import chalk from 'chalk'
|
||||
import fs from 'fs-extra'
|
||||
import path from 'path'
|
||||
import { newProject, buildProject } from './project.js'
|
||||
|
||||
console.log("START")
|
||||
const program = new Command()
|
||||
|
||||
program
|
||||
.command('init')
|
||||
.description('Initialize project in the current directory with the default theme')
|
||||
.action(newProject)
|
||||
|
||||
program
|
||||
.command('build')
|
||||
.description('Build the webpage')
|
||||
.action(newProject)
|
||||
|
||||
program.parse(process.argv)
|
Loading…
Add table
Add a link
Reference in a new issue