@greenwood/cli
Overview
CLI package for Greenwood. For more information and complete docs, please visit the Greenwood website.
Installation
You can use your favorite JavaScript package manager to install this package.
examples:
npm install @greenwood/cli --save-dev
yarn add @greenwood/cli --dev
Usage
Then in your package.json, add the type
field and scripts
for the CLI like so:
{
"type": "module",
"scripts": {
"build": "greenwood build",
"start": "greenwood develop"
}
}
npm run build
: generates a static build of your projectnpm start
: starts a local development server for your project