CLI package for Greenwood. For more information and complete docs, please visit the Greenwood website.
You can use your favorite JavaScript package manager to install this package.
examples:
# npm
npm install @greenwood/cli --save-dev
# yarn
yarn add @greenwood/cli --dev
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 project -
npm start
: starts a local development server for your project