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

rush-init-project-plugin

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rush-init-project-plugin

Rush plugin for initialize project in monorepo

  • 0.11.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

rush-init-project-plugin

Initialize project in Rush.js monorepo like a pro!

Prerequisite

Rush.js >= 5.57.0

Quick Start

  1. Enabling this rush plugin

Please follow the official doc to enable this plugin in your repo.

  1. Adding your first template

Let's say you want to add a new template named my-template, put the template files under common/_templates/my-template folder.

common/_templates
└── my-template
    ├── README.md
    └── package.json

Now, run rush init-project prompts you select a template list, which contains my-template.

After you answer some simple questions, files under common/_templates/my-template will be added into your project folder, and project configuration will be added to rush.json as well.

Advance Usage

Kind of boring in a template way?

You can create a configuration file to extend initialization process.

See HERE for detail.

Tech Notes

The whole CLI is based on node-plop

All directories under common/_templates/<template_name> are template source code, except those who prefixes with _. For instance, folder named _plugins is treated as internal folder not template folder where you can store shared code across templates.

All source code will be rendered by handlebars, while using custom render engine is supported.

Plenty of handlebar helpers are provided as default by handlebars-helpers

Third party node modules can be used in init.config configuration file by installing them into the corresponding autoinstaller folder, such as common/autoinstallers/rush-plugins/.

Default prompts includes:

  • packageName: "name" field in package.json
  • unscopedPackageName: packageName without npm scope
  • projectFolder: the dest file path where the template will be rendered
  • description: project description
  • authorName: author name

Keywords

FAQs

Package last updated on 29 Oct 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