v0.0.2
This commit is contained in:
parent
d086c1d493
commit
0f1d41a991
30 changed files with 1013 additions and 1536 deletions
17
index.js
17
index.js
|
@ -2,7 +2,8 @@ import { Command } from 'commander'
|
|||
import chalk from 'chalk'
|
||||
import fs from 'fs-extra'
|
||||
import path from 'path'
|
||||
import { newProject, buildProject } from './project.js'
|
||||
import { newProject, buildProject, appProject } from './project.js'
|
||||
import { serve } from './serve.js'
|
||||
|
||||
const program = new Command()
|
||||
|
||||
|
@ -11,9 +12,19 @@ program
|
|||
.description('Initialize project in the current directory with the default theme')
|
||||
.action(newProject)
|
||||
|
||||
program
|
||||
program
|
||||
.command('build')
|
||||
.description('Build the webpage')
|
||||
.action(newProject)
|
||||
.action(buildProject)
|
||||
|
||||
program
|
||||
.command('serve')
|
||||
.description('Run the website locally')
|
||||
.action(serve)
|
||||
|
||||
program
|
||||
.command('app')
|
||||
.description('Run notes as the the app')
|
||||
.action(appProject)
|
||||
|
||||
program.parse(process.argv)
|
Loading…
Add table
Add a link
Reference in a new issue