Package detail

rush-init-project-plugin

tiktok79kMIT0.11.1

Rush plugin for initialize project in monorepo

rush, plugin, command, init

readme

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

changelog

Change Log - rush-init-project-plugin

This log was last generated on Tue, 29 Oct 2024 03:43:55 GMT and should not be manually modified.

0.11.1

Tue, 29 Oct 2024 03:43:55 GMT

Patches

  • Include CHANGELOG.md in published releases

0.11.0

Mon, 25 Mar 2024 22:46:02 GMT

Minor changes

  • Remove "-d" ambiguous parameter

0.10.2

Tue, 19 Dec 2023 07:29:53 GMT

Patches

  • Upgrade ts-node to 11.0.0-beta.1

0.10.1

Tue, 19 Dec 2023 06:06:52 GMT

Patches

  • Upgrade @rushstack/node-core-library to 3.62.0

0.10.0

Tue, 26 Sep 2023 07:11:19 GMT

Minor changes

  • LICENSE Update

0.9.0

Mon, 20 Mar 2023 07:15:13 GMT

Minor changes

  • add global plugin

0.8.2

Thu, 16 Mar 2023 12:08:26 GMT

Patches

  • fix in -a mode answers are not complete

0.8.1

Thu, 16 Mar 2023 08:30:30 GMT

Patches

  • remove duplicate loadTemplateConfiguration

0.8.0

Mon, 13 Mar 2023 09:45:27 GMT

Minor changes

  • add template schema to manage templates and add assign unscopedPackageName after inquery

0.7.2

Tue, 28 Feb 2023 08:06:50 GMT

Patches

  • remove filter prompts in rush init-project

0.7.1

Thu, 02 Feb 2023 11:25:18 GMT

Patches

  • fix ui comfirm

0.7.0

Wed, 01 Feb 2023 09:06:22 GMT

Minor changes

  • add ui option in cli

0.6.1

Wed, 07 Dec 2022 09:05:36 GMT

Patches

  • fix getGitUserName logic

0.6.0

Mon, 05 Dec 2022 13:00:38 GMT

Minor changes

  • Add done hook

0.5.0

Mon, 28 Nov 2022 03:27:55 GMT

Minor changes

  • Support displayName to IConfig in init config file for rush-init-project-plugin

0.4.0

Wed, 23 Nov 2022 06:29:45 GMT

Minor changes

  • set git config user.name as default authorName

0.3.1

Wed, 31 Aug 2022 04:09:13 GMT

Patches

  • Update readme
  • Update readme

0.3.0

Tue, 30 Aug 2022 17:47:59 GMT

Minor changes

  • Adds "decoupledLocalDependencies" and "tags" to the fields of the default rush project configuration
  • Add CLI parameters -a, --answer to accept answers from external JSON

0.2.2

Tue, 22 Mar 2022 03:26:29 GMT

Patches

  • upgrade sort-package-json version

0.2.1

Thu, 24 Feb 2022 11:57:31 GMT

Patches

  • Upgrade rush-sdk to load rushConfiguration

0.2.0

Wed, 09 Feb 2022 11:08:02 GMT

Minor changes

  • Add defaultProjectConfiguration & related hook in template configuration

0.1.4

Tue, 18 Jan 2022 17:04:14 GMT

Patches

  • Dot files in template should be added now

0.1.3

Tue, 18 Jan 2022 16:54:18 GMT

Patches

  • Fix add 0 template files in Windows

0.1.2

Mon, 27 Dec 2021 12:51:25 GMT

Patches

  • Fix template file glob options

0.1.1

Mon, 27 Dec 2021 08:30:37 GMT

Patches

  • Add a workaround for rushVersion validaty

0.1.0

Sun, 26 Dec 2021 11:48:25 GMT

Minor changes

  • Add configuration and plugin system

0.0.5

Fri, 24 Dec 2021 15:37:38 GMT

Patches

  • Update readme

0.0.4

Fri, 24 Dec 2021 15:31:53 GMT

Patches

  • Update package.json

0.0.3

Fri, 24 Dec 2021 15:25:33 GMT

Patches

  • Update readme

0.0.2

Fri, 24 Dec 2021 14:54:41 GMT

Patches

  • first impl