Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@greenwood/init

Package Overview
Dependencies
Maintainers
0
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@greenwood/init

A package for scaffolding a new Greenwood project.

  • 0.30.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
77
decreased by-66.67%
Maintainers
0
Weekly downloads
 
Created
Source

@greenwood/init

Overview

Init package for scaffolding out a new Greenwood project. For more information and complete docs, please visit the Greenwood website.

Usage

Run the init command to scaffold a minimal Greenwood project into a directory of your choosing.

# providing an output directory of my-app
npx @greenwood/init@latest my-app

This will then output your project files into a directory called my-app

my-app
├── .gitignore
├── greenwood.config.js
├── package.json
└── src/
     └─ ...

API

Project Name

By providing a name as the first argument, the init command will output the project files into a directory of the same name and configure the name property package.json.

# example
npx @greenwood/init@latest my-app

Omitting my-app will install project files into the current directory.

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

Keywords

FAQs

Package last updated on 02 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc