@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 i -D @greenwood/cli
$ yarn add @greenwood/cli --dev
$ pnpm add -D @greenwood/cli
Usage
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