@greenwood/cli
v0.34.0
Published
Greenwood CLI.
Downloads
23,062
Maintainers
Readme
@greenwood/cli
Overview
CLI package for Greenwood. For more information and complete docs on Greenwood, please visit our website.
Installation
Greenwood can be installed with your favorite JavaScript package manager.
# npm
$ npm i -D @greenwood/cli
# yarn
$ yarn add @greenwood/cli --dev
# pnpm
$ pnpm add -D @greenwood/cliUsage
Then in your package.json, add the type field and scripts for the CLI:
{
"type": "module",
"scripts": {
"build": "greenwood build",
"dev": "greenwood develop",
"serve": "greenwood serve"
}
}greenwood build: Generates a production build of your projectgreenwood develop: Starts a local development server for your projectgreenwood serve: Runs a production server for a production build
