lerna-projen
TypeScript icon, indicating that this package has built-in type declarations

0.1.392 • Public • Published

lerna-projen

Inspired by projen and lerna

This is a library to use manage mono repositories using projen.

Getting started

To create a new project, run the following command and follow the instructions:

console
$ mkdir my-project
$ cd my-project
$ git init
$ npx projen new --from lerna-projen lerna-project
🤖 Synthesizing project...
...

The project type can be anything to start with, then in the projenrc file, initiate a lerna project and add all of the sub normal projen project to the lerna project.

Example

const { LernaProject } = require('lerna-projen');
const { TypeScriptProject } = require('projen');

const parentProject = new LernaProject({
  name: 'my-parent-project',
  ...
});

const firstProject = new TypeScriptProject({
  name: 'my-first-project',
  parent: parentProject,
  ...
});

parentProject.addSubProject(firstProject);

parentProject.synth()

The rest of the process is taken care of by projen. All of the scripts on the parent project are chained by running the same command from the sub project using lerna.

Package Sidebar

Install

npm i lerna-projen

Weekly Downloads

7,115

Version

0.1.392

License

Apache-2.0

Unpacked Size

747 kB

Total Files

83

Last publish

Collaborators

  • amin_fazl