lerna-projen 0.1.476 ā 0.1.478
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +4 -4
- package/README.md +43 -2
- package/assets/lerna-projen.png +0 -0
- package/assets/lerna-projen_200.png +0 -0
- package/lib/index.js +2 -2
- package/package.json +3 -3
package/.jsii
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"constructs": "^10.3.0",
|
|
18
|
-
"projen": "^0.86.
|
|
18
|
+
"projen": "^0.86.9"
|
|
19
19
|
},
|
|
20
20
|
"dependencyClosure": {
|
|
21
21
|
"constructs": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
},
|
|
107
107
|
"name": "lerna-projen",
|
|
108
108
|
"readme": {
|
|
109
|
-
"markdown": "# lerna-projen\n\nInspired by [projen](https://github.com/projen/projen) and [lerna](https://github.com/lerna/lerna)\n\nThis is a library to use manage mono repositories using projen.\n\n## Getting started\n\nTo create a new project, run the following command and follow the instructions:\n\n```\nconsole\n$ mkdir my-project\n$ cd my-project\n$ git init\n$ npx projen new --from lerna-projen lerna-project\nš¤ Synthesizing project...\n...\n```\n\nThe 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.\n\n### Example\n```javascript\nconst { LernaProject } = require('lerna-projen');\nconst { TypeScriptProject } = require('projen');\n\nconst parentProject = new LernaProject({\n name: 'my-parent-project',\n ...\n});\n\nconst firstProject = new TypeScriptProject({\n name: 'my-first-project',\n parent: parentProject,\n ...\n});\n\nparentProject.addSubProject(firstProject);\n\nparentProject.synth()\n```\n\nThe 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.\n"
|
|
109
|
+
"markdown": "<p align=\"center\">\n <img src=\"./assets/lerna-projen_200.png\" width=\"150px\" />\n</p>\n\n# lerna-projen\n\nInspired by [projen](https://github.com/projen/projen) and [lerna](https://github.com/lerna/lerna)\n\nThis is a library to use manage mono repositories using projen.\n\n## Getting started TS\n\nTo create a new project, run the following command and follow the instructions:\n\n```\nconsole\n$ mkdir my-project\n$ cd my-project\n$ git init\n$ npx projen new --from lerna-projen lerna-ts-project\nš¤ Synthesizing project...\n...\n```\n\nThe 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.\n\n### Example for TS\n```javascript\nimport {LernaTypescriptProject} from 'lerna-projen';\nimport { TypeScriptProject } from 'projen';\n\nconst parentProject = new LernaTypescriptProject({\n name: 'my-parent-project',\n ...\n});\n\nconst firstProject = new TypeScriptProject({\n name: 'my-first-project',\n parent: parentProject,\n ...\n});\n\nparentProject.addSubProject(firstProject);\n\nparentProject.synth()\n```\n\n## Getting started JS\n\nTo create a new project, run the following command and follow the instructions:\n\n```\nconsole\n$ mkdir my-project\n$ cd my-project\n$ git init\n$ npx projen new --from lerna-projen lerna-project\nš¤ Synthesizing project...\n...\n```\n\nThe 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.\n\n### Example for JS\n```javascript\nconst { LernaProject } = require('lerna-projen');\nconst { TypeScriptProject } = require('projen');\n\nconst parentProject = new LernaProject({\n name: 'my-parent-project',\n ...\n});\n\nconst firstProject = new TypeScriptProject({\n name: 'my-first-project',\n parent: parentProject,\n ...\n});\n\nparentProject.addSubProject(firstProject);\n\nparentProject.synth()\n```\n\nThe 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.\n"
|
|
110
110
|
},
|
|
111
111
|
"repository": {
|
|
112
112
|
"type": "git",
|
|
@@ -1000,6 +1000,6 @@
|
|
|
1000
1000
|
"symbolId": "src/utils:AddNxTaskDependencyOptions"
|
|
1001
1001
|
}
|
|
1002
1002
|
},
|
|
1003
|
-
"version": "0.1.
|
|
1004
|
-
"fingerprint": "
|
|
1003
|
+
"version": "0.1.478",
|
|
1004
|
+
"fingerprint": "HU0CR2jdiA8C6YuGPNoZtkfqQ2jXx+ZIgHFk1t5OdZE="
|
|
1005
1005
|
}
|
package/README.md
CHANGED
|
@@ -1,10 +1,51 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="./assets/lerna-projen_200.png" width="150px" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# lerna-projen
|
|
2
6
|
|
|
3
7
|
Inspired by [projen](https://github.com/projen/projen) and [lerna](https://github.com/lerna/lerna)
|
|
4
8
|
|
|
5
9
|
This is a library to use manage mono repositories using projen.
|
|
6
10
|
|
|
7
|
-
## Getting started
|
|
11
|
+
## Getting started TS
|
|
12
|
+
|
|
13
|
+
To create a new project, run the following command and follow the instructions:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
console
|
|
17
|
+
$ mkdir my-project
|
|
18
|
+
$ cd my-project
|
|
19
|
+
$ git init
|
|
20
|
+
$ npx projen new --from lerna-projen lerna-ts-project
|
|
21
|
+
š¤ Synthesizing project...
|
|
22
|
+
...
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
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.
|
|
26
|
+
|
|
27
|
+
### Example for TS
|
|
28
|
+
```javascript
|
|
29
|
+
import {LernaTypescriptProject} from 'lerna-projen';
|
|
30
|
+
import { TypeScriptProject } from 'projen';
|
|
31
|
+
|
|
32
|
+
const parentProject = new LernaTypescriptProject({
|
|
33
|
+
name: 'my-parent-project',
|
|
34
|
+
...
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const firstProject = new TypeScriptProject({
|
|
38
|
+
name: 'my-first-project',
|
|
39
|
+
parent: parentProject,
|
|
40
|
+
...
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
parentProject.addSubProject(firstProject);
|
|
44
|
+
|
|
45
|
+
parentProject.synth()
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Getting started JS
|
|
8
49
|
|
|
9
50
|
To create a new project, run the following command and follow the instructions:
|
|
10
51
|
|
|
@@ -20,7 +61,7 @@ $ npx projen new --from lerna-projen lerna-project
|
|
|
20
61
|
|
|
21
62
|
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.
|
|
22
63
|
|
|
23
|
-
### Example
|
|
64
|
+
### Example for JS
|
|
24
65
|
```javascript
|
|
25
66
|
const { LernaProject } = require('lerna-projen');
|
|
26
67
|
const { TypeScriptProject } = require('projen');
|
|
Binary file
|
|
Binary file
|
package/lib/index.js
CHANGED
|
@@ -92,7 +92,7 @@ class LernaProject extends projen_1.javascript.NodeProject {
|
|
|
92
92
|
}
|
|
93
93
|
exports.LernaProject = LernaProject;
|
|
94
94
|
_a = JSII_RTTI_SYMBOL_1;
|
|
95
|
-
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.
|
|
95
|
+
LernaProject[_a] = { fqn: "lerna-projen.LernaProject", version: "0.1.478" };
|
|
96
96
|
/**
|
|
97
97
|
* @pjid lerna-ts-project
|
|
98
98
|
*/
|
|
@@ -125,7 +125,7 @@ class LernaTypescriptProject extends projen_1.typescript.TypeScriptProject {
|
|
|
125
125
|
}
|
|
126
126
|
exports.LernaTypescriptProject = LernaTypescriptProject;
|
|
127
127
|
_b = JSII_RTTI_SYMBOL_1;
|
|
128
|
-
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.
|
|
128
|
+
LernaTypescriptProject[_b] = { fqn: "lerna-projen.LernaTypescriptProject", version: "0.1.478" };
|
|
129
129
|
class LernaProjectFactory {
|
|
130
130
|
constructor(project) {
|
|
131
131
|
this.project = project;
|
package/package.json
CHANGED
|
@@ -58,14 +58,14 @@
|
|
|
58
58
|
"jsii-docgen": "^10.5.0",
|
|
59
59
|
"jsii-pacmak": "^1.103.1",
|
|
60
60
|
"jsii-rosetta": "5.4.x",
|
|
61
|
-
"projen": "^0.86.
|
|
61
|
+
"projen": "^0.86.9",
|
|
62
62
|
"ts-jest": "^29.2.5",
|
|
63
63
|
"ts-node": "^10.9.2",
|
|
64
64
|
"typescript": "^5.5.4"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"constructs": "^10.3.0",
|
|
68
|
-
"projen": "^0.86.
|
|
68
|
+
"projen": "^0.86.9"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"commander": "^11.1.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"publishConfig": {
|
|
90
90
|
"access": "public"
|
|
91
91
|
},
|
|
92
|
-
"version": "0.1.
|
|
92
|
+
"version": "0.1.478",
|
|
93
93
|
"jest": {
|
|
94
94
|
"coverageProvider": "v8",
|
|
95
95
|
"testMatch": [
|