sajt/index.js
Artur Gurgul d086c1d493 WIP
2024-10-11 11:11:40 +02:00

19 lines
No EOL
451 B
JavaScript

import { Command } from 'commander'
import chalk from 'chalk'
import fs from 'fs-extra'
import path from 'path'
import { newProject, buildProject } from './project.js'
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)