@greenwood/init v0.29.3
@greenwood/init
Overview
Init package for scaffolding out a new Greenwood project. For more information and complete docs, please visit the Greenwood website.
Usage
Create a directory and then run the init
command to scaffold a minimal Greenwood project.
mkdir my-app && cd my-app
npx @greenwood/init@latest
This will then output the following
├── greenwood.config.js
├── .gitignore
├── package.json
└── src/
└─ pages/
└─ index.md
API
Template
To scaffold your new project based on one of Greenwood's starter templates, pass the --template
flag and then follow the prompts to complete the scaffolding.
# example
npx @greenwood/init@latest --template
-------------------------------------------------------
Initialize Greenwood Template ♻️
-------------------------------------------------------
? Which template would you like to use? (Use arrow keys)
❯ blog
You can also pass the template you want from the CLI as well.
# example
npx @greenwood/init@latest --template=blog
NPM Install
To automatically run npm install
after scaffolding, pass the --install
flag.
# example
npx @greenwood/init@latest --install
Yarn Install
To automatically run yarn install
after scaffolding, pass the --yarn
flag.
# example
npx @greenwood/init@latest --yarn
Flags can be chained together!
# This will use Yarn, install dependencies, and scaffold from the blog template $ npx @greenwood/init@latest --template --yarn --install
3 days ago
5 days ago
2 months ago
2 months ago
4 months ago
5 months ago
6 months ago
10 months ago
8 months ago
7 months ago
9 months ago
9 months ago
6 months ago
9 months ago
11 months ago
11 months ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago