sajt/index.js

19 lines
451 B
JavaScript
Raw Normal View History

2024-10-11 11:11:40 +02:00
import { Command } from 'commander'
import chalk from 'chalk'
import fs from 'fs-extra'
import path from 'path'
import { newProject, buildProject } from './project.js'
2024-08-15 19:52:42 +02:00
2024-10-11 11:11:40 +02:00
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)