@rxap/plugin-library 16.0.0-dev.1 → 16.0.0-dev.11
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/CHANGELOG.md +106 -161
- package/README.md +94 -127
- package/executors.json +29 -0
- package/generators.json +24 -0
- package/package.json +75 -38
- package/src/executors/check-version/executor.d.ts +5 -0
- package/src/executors/check-version/executor.js +36 -0
- package/src/executors/check-version/executor.js.map +1 -0
- package/src/executors/check-version/schema.d.ts +3 -0
- package/src/executors/check-version/schema.json +16 -0
- package/src/executors/readme/executor.d.ts +5 -0
- package/src/executors/readme/executor.js +141 -0
- package/src/executors/readme/executor.js.map +1 -0
- package/src/executors/readme/schema.d.ts +1 -0
- package/src/{builders/update-package-group → executors/readme}/schema.json +2 -3
- package/src/executors/run-generator/executor.d.ts +5 -0
- package/src/executors/run-generator/executor.js +46 -0
- package/src/executors/run-generator/executor.js.map +1 -0
- package/src/executors/run-generator/schema.d.ts +6 -0
- package/src/executors/run-generator/schema.json +27 -0
- package/src/executors/update-dependencies/executor.d.ts +5 -0
- package/src/executors/update-dependencies/executor.js +32 -0
- package/src/executors/update-dependencies/executor.js.map +1 -0
- package/src/executors/update-dependencies/schema.d.ts +1 -0
- package/src/executors/update-dependencies/schema.json +9 -0
- package/src/executors/update-package-group/executor.d.ts +5 -0
- package/src/executors/update-package-group/executor.js +45 -0
- package/src/executors/update-package-group/executor.js.map +1 -0
- package/src/executors/update-package-group/schema.d.ts +1 -0
- package/src/executors/update-package-group/schema.json +9 -0
- package/src/generators/fix-dependencies/generator.d.ts +27 -0
- package/src/generators/fix-dependencies/generator.js +520 -0
- package/src/generators/fix-dependencies/generator.js.map +1 -0
- package/src/generators/fix-dependencies/schema.d.ts +8 -0
- package/src/generators/fix-dependencies/schema.json +31 -0
- package/src/generators/index-export/generator.d.ts +4 -0
- package/src/generators/index-export/generator.js +72 -0
- package/src/generators/index-export/generator.js.map +1 -0
- package/src/generators/index-export/schema.d.ts +3 -0
- package/src/generators/index-export/schema.json +16 -0
- package/src/generators/init/files/README.md.handlebars +115 -0
- package/src/generators/init/generator.d.ts +4 -0
- package/src/generators/init/generator.js +120 -0
- package/src/generators/init/generator.js.map +1 -0
- package/src/generators/init/schema.d.ts +3 -0
- package/src/generators/init/schema.json +16 -0
- package/src/generators/init-plugin/generator.d.ts +4 -0
- package/src/generators/init-plugin/generator.js +54 -0
- package/src/generators/init-plugin/generator.js.map +1 -0
- package/src/generators/init-plugin/schema.d.ts +3 -0
- package/src/generators/init-plugin/schema.json +16 -0
- package/src/index.d.ts +1 -1
- package/src/index.js +3 -0
- package/src/index.js.map +1 -1
- package/LICENSE +0 -630
- package/builders.json +0 -20
- package/collection.json +0 -32
- package/migration.json +0 -4
- package/src/builders/build-schematics/builder.d.ts +0 -13
- package/src/builders/build-schematics/builder.js +0 -84
- package/src/builders/build-schematics/builder.js.map +0 -1
- package/src/builders/build-schematics/schema.json +0 -78
- package/src/builders/update-package-group/builder.d.ts +0 -19
- package/src/builders/update-package-group/builder.js +0 -89
- package/src/builders/update-package-group/builder.js.map +0 -1
- package/src/builders/update-package-group/read-file.d.ts +0 -7
- package/src/builders/update-package-group/read-file.js +0 -11
- package/src/builders/update-package-group/read-file.js.map +0 -1
- package/src/builders/update-package-group/write-file.d.ts +0 -5
- package/src/builders/update-package-group/write-file.js +0 -11
- package/src/builders/update-package-group/write-file.js.map +0 -1
- package/src/builders/update-peer-dependencies/builder.d.ts +0 -40
- package/src/builders/update-peer-dependencies/builder.js +0 -293
- package/src/builders/update-peer-dependencies/builder.js.map +0 -1
- package/src/builders/update-peer-dependencies/schema.json +0 -33
- package/src/builders/utils/assets.d.ts +0 -14
- package/src/builders/utils/assets.js +0 -54
- package/src/builders/utils/assets.js.map +0 -1
- package/src/builders/utils/compile-typescript-files.d.ts +0 -13
- package/src/builders/utils/compile-typescript-files.js +0 -56
- package/src/builders/utils/compile-typescript-files.js.map +0 -1
- package/src/builders/utils/equals.d.ts +0 -1
- package/src/builders/utils/equals.js +0 -200
- package/src/builders/utils/equals.js.map +0 -1
- package/src/builders/utils/unique.d.ts +0 -1
- package/src/builders/utils/unique.js +0 -8
- package/src/builders/utils/unique.js.map +0 -1
- package/src/schematics/config/index.d.ts +0 -3
- package/src/schematics/config/index.js +0 -17
- package/src/schematics/config/index.js.map +0 -1
- package/src/schematics/config/schema.json +0 -50
- package/src/schematics/config-schematics/coerce-builders-json.d.ts +0 -2
- package/src/schematics/config-schematics/coerce-builders-json.js +0 -23
- package/src/schematics/config-schematics/coerce-builders-json.js.map +0 -1
- package/src/schematics/config-schematics/coerce-builders.d.ts +0 -1
- package/src/schematics/config-schematics/coerce-builders.js +0 -11
- package/src/schematics/config-schematics/coerce-builders.js.map +0 -1
- package/src/schematics/config-schematics/coerce-collection-json.d.ts +0 -2
- package/src/schematics/config-schematics/coerce-collection-json.js +0 -23
- package/src/schematics/config-schematics/coerce-collection-json.js.map +0 -1
- package/src/schematics/config-schematics/coerce-migration-json.d.ts +0 -2
- package/src/schematics/config-schematics/coerce-migration-json.js +0 -23
- package/src/schematics/config-schematics/coerce-migration-json.js.map +0 -1
- package/src/schematics/config-schematics/coerce-ng-update.d.ts +0 -1
- package/src/schematics/config-schematics/coerce-ng-update.js +0 -21
- package/src/schematics/config-schematics/coerce-ng-update.js.map +0 -1
- package/src/schematics/config-schematics/coerce-schematics.d.ts +0 -1
- package/src/schematics/config-schematics/coerce-schematics.js +0 -11
- package/src/schematics/config-schematics/coerce-schematics.js.map +0 -1
- package/src/schematics/config-schematics/index.d.ts +0 -3
- package/src/schematics/config-schematics/index.js +0 -96
- package/src/schematics/config-schematics/index.js.map +0 -1
- package/src/schematics/config-schematics/init-src-files.d.ts +0 -2
- package/src/schematics/config-schematics/init-src-files.js +0 -16
- package/src/schematics/config-schematics/init-src-files.js.map +0 -1
- package/src/schematics/config-schematics/schema.json +0 -47
- package/src/schematics/config-update-package-group/index.d.ts +0 -3
- package/src/schematics/config-update-package-group/index.js +0 -21
- package/src/schematics/config-update-package-group/index.js.map +0 -1
- package/src/schematics/config-update-package-group/schema.json +0 -21
- package/src/schematics/config-update-peer-dependencies/index.d.ts +0 -3
- package/src/schematics/config-update-peer-dependencies/index.js +0 -26
- package/src/schematics/config-update-peer-dependencies/index.js.map +0 -1
- package/src/schematics/config-update-peer-dependencies/schema.json +0 -28
- package/src/schematics/ng-add/index.d.ts +0 -3
- package/src/schematics/ng-add/index.js +0 -21
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -17
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@rxap/plugin-library
|
|
2
|
-
======
|
|
1
|
+
# @rxap/plugin-library
|
|
3
2
|
|
|
4
3
|
[](https://www.npmjs.com/package/@rxap/plugin-library)
|
|
5
4
|
[](https://commitizen.github.io/cz-cli/)
|
|
@@ -8,154 +7,122 @@
|
|
|
8
7
|

|
|
9
8
|

|
|
10
9
|
|
|
11
|
-
> A Nx/Ng plugin for build many library types.
|
|
12
|
-
|
|
13
10
|
- [Installation](#installation)
|
|
14
|
-
- [
|
|
15
|
-
- [
|
|
11
|
+
- [Generators](#generators)
|
|
12
|
+
- [Executors](#executors)
|
|
16
13
|
|
|
17
14
|
# Installation
|
|
18
15
|
|
|
19
|
-
Add the
|
|
20
|
-
|
|
16
|
+
**Add the package to your workspace:**
|
|
17
|
+
```bash
|
|
18
|
+
yarn add @rxap/plugin-library
|
|
21
19
|
```
|
|
22
|
-
|
|
20
|
+
**Install peer dependencies:**
|
|
21
|
+
```bash
|
|
22
|
+
yarn add @nx/devkit@^16.5.0 @rxap/generator-ts-morph@^1.0.1-dev.2 @rxap/generator-utilities@^1.1.0-dev.0 @rxap/node-utilities@^1.0.1-dev.2 @rxap/plugin-angular@^16.1.0-dev.3 @rxap/plugin-nestjs@^16.1.0-dev.2 @rxap/plugin-utilities@^16.1.0-dev.1 @rxap/workspace-utilities@* nx@^16.5.0 semver@^7.3.5 ts-morph@^18.0.0
|
|
23
23
|
```
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
*Configure the builder @rxap/plugin-library for a project:*
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
ng g @rxap/plugin-library:config [project]
|
|
24
|
+
**Execute the init generator:**
|
|
25
|
+
```bash
|
|
26
|
+
yarn nx g @rxap/plugin-library:init
|
|
32
27
|
```
|
|
28
|
+
# Generators
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
# Schematics
|
|
37
|
-
|
|
38
|
-
## config-schematics
|
|
39
|
-
> Adds the builder @rxap/pack-library:build-schematics to the specified project
|
|
30
|
+
## init
|
|
31
|
+
> Create and update configurations to use rxap package publish concept
|
|
40
32
|
|
|
33
|
+
```bash
|
|
34
|
+
yarn nx g @rxap/plugin-library:init
|
|
41
35
|
```
|
|
42
|
-
ng g @rxap/plugin-library:config-schematics
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
Option | Type | Default | Description
|
|
46
|
-
--- | --- | --- | ---
|
|
47
|
-
project | string | | The name of the project.
|
|
48
|
-
type | string | |
|
|
49
|
-
|
|
50
|
-
| Required |
|
|
51
|
-
| --- |
|
|
52
|
-
| project |
|
|
53
|
-
| type |
|
|
54
|
-
|
|
55
|
-
## config
|
|
56
|
-
> Adds @rxap/plugin-library builder to the specified project
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
ng g @rxap/plugin-library:config
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
Option | Type | Default | Description
|
|
63
|
-
--- | --- | --- | ---
|
|
64
|
-
project | string | | The name of the project.
|
|
65
|
-
schematics | boolean | true | Whether to add the build-schematics for schematics
|
|
66
|
-
migrations | boolean | true | Whether to add the build-schematics for migrations
|
|
67
|
-
builders | boolean | false | Whether to add the build-schematics for builders
|
|
68
|
-
updatePackageGroup | boolean | true | Whether to add the update-package-group builder to the project
|
|
69
|
-
updatePeerDependencies | boolean | true | Whether to add the update-peer-dependencies for builder to the project
|
|
70
36
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
| project |
|
|
37
|
+
## fix-dependencies
|
|
38
|
+
> Adds missing dependencies and removes redudant dependencies of a project
|
|
74
39
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
```
|
|
79
|
-
ng g @rxap/plugin-library:config-update-package-group
|
|
40
|
+
```bash
|
|
41
|
+
yarn nx g @rxap/plugin-library:fix-dependencies
|
|
80
42
|
```
|
|
81
43
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
project | string | | The name of the project.
|
|
85
|
-
|
|
86
|
-
| Required |
|
|
87
|
-
| --- |
|
|
88
|
-
| project |
|
|
44
|
+
## index-export
|
|
45
|
+
> Generate index exports for each directory and in the src root
|
|
89
46
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
```
|
|
94
|
-
ng g @rxap/plugin-library:config-update-peer-dependencies
|
|
47
|
+
```bash
|
|
48
|
+
yarn nx g @rxap/plugin-library:index-export
|
|
95
49
|
```
|
|
96
50
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
project | string | | The name of the project.
|
|
100
|
-
ignore | array | | A list of package name regex that should not be included as peer dependencies
|
|
101
|
-
|
|
102
|
-
| Required |
|
|
103
|
-
| --- |
|
|
104
|
-
| project |
|
|
105
|
-
|
|
106
|
-
## ng-add
|
|
107
|
-
> Setup the package @rxap/plugin-library for the workspace.
|
|
51
|
+
## init-plugin
|
|
52
|
+
> init-plugin generator
|
|
108
53
|
|
|
54
|
+
```bash
|
|
55
|
+
yarn nx g @rxap/plugin-library:init-plugin
|
|
109
56
|
```
|
|
110
|
-
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
Option | Type | Default | Description
|
|
114
|
-
--- | --- | --- | ---
|
|
115
|
-
project | string | | Name of the project
|
|
57
|
+
# Executors
|
|
116
58
|
|
|
117
|
-
|
|
59
|
+
## update-dependencies
|
|
60
|
+
> Update the local dependencies in the dist package.json. Replaces the atarix with the current package version of local dependency
|
|
118
61
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
@rxap/plugin-library:
|
|
62
|
+
**project.json**
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"targets": {
|
|
66
|
+
"update-dependencies": {
|
|
67
|
+
"executor": "@rxap/plugin-library:update-dependencies"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
125
71
|
```
|
|
126
72
|
|
|
127
|
-
Option | Type | Default | Description
|
|
128
|
-
--- | --- | --- | ---
|
|
129
|
-
tsConfig | string | | The name of the Typescript configuration file.
|
|
130
|
-
outputPath | string | | The output path of the generated files.
|
|
131
|
-
assets | array | | List of static library assets.
|
|
132
|
-
type | string | |
|
|
133
|
-
|
|
134
|
-
| Required |
|
|
135
|
-
| --- |
|
|
136
|
-
| tsConfig |
|
|
137
|
-
| outputPath |
|
|
138
|
-
| type |
|
|
139
73
|
## update-package-group
|
|
140
|
-
>
|
|
141
|
-
|
|
142
|
-
**
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
74
|
+
> Update the packageGroup array with all direct depedent projects
|
|
75
|
+
|
|
76
|
+
**project.json**
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"targets": {
|
|
80
|
+
"update-package-group": {
|
|
81
|
+
"executor": "@rxap/plugin-library:update-package-group"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## readme
|
|
88
|
+
> Readme generator for libraries.
|
|
89
|
+
|
|
90
|
+
**project.json**
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"targets": {
|
|
94
|
+
"readme": {
|
|
95
|
+
"executor": "@rxap/plugin-library:readme"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
## run-generator
|
|
102
|
+
> Executes a generator for the project
|
|
103
|
+
|
|
104
|
+
**project.json**
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"targets": {
|
|
108
|
+
"run-generator": {
|
|
109
|
+
"executor": "@rxap/plugin-library:run-generator"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## check-version
|
|
116
|
+
> check-version executor
|
|
117
|
+
|
|
118
|
+
**project.json**
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"targets": {
|
|
122
|
+
"check-version": {
|
|
123
|
+
"executor": "@rxap/plugin-library:check-version"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
155
127
|
```
|
|
156
128
|
|
|
157
|
-
Option | Type | Default | Description
|
|
158
|
-
--- | --- | --- | ---
|
|
159
|
-
ignore | array | | A list of package name regex that should not be included as peer dependencies
|
|
160
|
-
dependencies | array | | A list of package name should be included as dependencies
|
|
161
|
-
includeIndirectDependencies | boolean | false | Whether the dependencies of the direct dependencies are include in the peer dependencies list
|
package/executors.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"executors": {
|
|
3
|
+
"update-dependencies": {
|
|
4
|
+
"implementation": "./src/executors/update-dependencies/executor",
|
|
5
|
+
"schema": "./src/executors/update-dependencies/schema.json",
|
|
6
|
+
"description": "Update the local dependencies in the dist package.json. Replaces the atarix with the current package version of local dependency"
|
|
7
|
+
},
|
|
8
|
+
"update-package-group": {
|
|
9
|
+
"implementation": "./src/executors/update-package-group/executor",
|
|
10
|
+
"schema": "./src/executors/update-package-group/schema.json",
|
|
11
|
+
"description": "Update the packageGroup array with all direct depedent projects"
|
|
12
|
+
},
|
|
13
|
+
"readme": {
|
|
14
|
+
"implementation": "./src/executors/readme/executor",
|
|
15
|
+
"schema": "./src/executors/readme/schema.json",
|
|
16
|
+
"description": "Readme generator for libraries."
|
|
17
|
+
},
|
|
18
|
+
"run-generator": {
|
|
19
|
+
"implementation": "./src/executors/run-generator/executor",
|
|
20
|
+
"schema": "./src/executors/run-generator/schema.json",
|
|
21
|
+
"description": "Executes a generator for the project"
|
|
22
|
+
},
|
|
23
|
+
"check-version": {
|
|
24
|
+
"implementation": "./src/executors/check-version/executor",
|
|
25
|
+
"schema": "./src/executors/check-version/schema.json",
|
|
26
|
+
"description": "check-version executor"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
package/generators.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"init": {
|
|
4
|
+
"factory": "./src/generators/init/generator",
|
|
5
|
+
"schema": "./src/generators/init/schema.json",
|
|
6
|
+
"description": "Create and update configurations to use rxap package publish concept"
|
|
7
|
+
},
|
|
8
|
+
"fix-dependencies": {
|
|
9
|
+
"factory": "./src/generators/fix-dependencies/generator",
|
|
10
|
+
"schema": "./src/generators/fix-dependencies/schema.json",
|
|
11
|
+
"description": "Adds missing dependencies and removes redudant dependencies of a project"
|
|
12
|
+
},
|
|
13
|
+
"index-export": {
|
|
14
|
+
"factory": "./src/generators/index-export/generator",
|
|
15
|
+
"schema": "./src/generators/index-export/schema.json",
|
|
16
|
+
"description": "Generate index exports for each directory and in the src root"
|
|
17
|
+
},
|
|
18
|
+
"init-plugin": {
|
|
19
|
+
"factory": "./src/generators/init-plugin/generator",
|
|
20
|
+
"schema": "./src/generators/init-plugin/schema.json",
|
|
21
|
+
"description": "init-plugin generator"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,52 +1,89 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/plugin-library",
|
|
3
|
-
"version": "16.0.0-dev.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
3
|
+
"version": "16.0.0-dev.11",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"executors": "./executors.json",
|
|
6
|
+
"generators": "./generators.json",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public",
|
|
9
|
+
"directory": "../../../dist/packages/plugin/library"
|
|
10
|
+
},
|
|
11
|
+
"nx-migrations": {
|
|
12
|
+
"packageGroup": [
|
|
13
|
+
{
|
|
14
|
+
"package": "@rxap/generator-ts-morph",
|
|
15
|
+
"version": "1.0.1-dev.2"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"package": "@rxap/generator-utilities",
|
|
19
|
+
"version": "1.1.0-dev.0"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"package": "@rxap/node-utilities",
|
|
23
|
+
"version": "1.0.1-dev.2"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"package": "@rxap/plugin-angular",
|
|
27
|
+
"version": "16.1.0-dev.3"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"package": "@rxap/plugin-nestjs",
|
|
31
|
+
"version": "16.1.0-dev.2"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"package": "@rxap/plugin-utilities",
|
|
35
|
+
"version": "16.1.0-dev.1"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"package": "@rxap/schematics-utilities",
|
|
39
|
+
"version": "16.0.0-dev.4"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
},
|
|
7
43
|
"keywords": [
|
|
8
44
|
"rxap",
|
|
45
|
+
"packages",
|
|
9
46
|
"plugin",
|
|
10
|
-
"
|
|
11
|
-
"builder",
|
|
12
|
-
"angular",
|
|
13
|
-
"automation"
|
|
47
|
+
"library"
|
|
14
48
|
],
|
|
15
|
-
"
|
|
16
|
-
"private": false,
|
|
49
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/plugin/library",
|
|
17
50
|
"bugs": {
|
|
18
|
-
"url": "https://gitlab.com/rxap/
|
|
19
|
-
"email": "incoming+rxap-
|
|
51
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
52
|
+
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
20
53
|
},
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"save": "devDependencies"
|
|
54
|
+
"license": "GPL-3.0-or-later",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
58
|
+
"directory": "packages/plugin/library"
|
|
27
59
|
},
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"@angular-devkit/schematics": "^16.0.1",
|
|
32
|
-
"@rxap/schematics-utilities": "^16.0.0-dev.0",
|
|
33
|
-
"fs-extra": "9.1.0",
|
|
34
|
-
"glob": "7.1.7",
|
|
35
|
-
"nx": "16.2.1",
|
|
36
|
-
"tslib": "^2.3.1",
|
|
37
|
-
"typescript": "^5.0.4"
|
|
60
|
+
"author": {
|
|
61
|
+
"name": "Merzough Münker",
|
|
62
|
+
"email": "mmuenker@digitaix.com"
|
|
38
63
|
},
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"handlebars": "4.7.7",
|
|
66
|
+
"ignore": "^5.2.4",
|
|
67
|
+
"tslib": "2.5.3"
|
|
42
68
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"@nx/devkit": "^16.5.0",
|
|
71
|
+
"@rxap/generator-ts-morph": "^1.0.1-dev.2",
|
|
72
|
+
"@rxap/generator-utilities": "^1.1.0-dev.0",
|
|
73
|
+
"@rxap/node-utilities": "^1.0.1-dev.2",
|
|
74
|
+
"@rxap/plugin-angular": "^16.1.0-dev.3",
|
|
75
|
+
"@rxap/plugin-nestjs": "^16.1.0-dev.2",
|
|
76
|
+
"@rxap/plugin-utilities": "^16.1.0-dev.1",
|
|
77
|
+
"@rxap/workspace-utilities": "*",
|
|
78
|
+
"nx": "^16.5.0",
|
|
79
|
+
"semver": "^7.3.5",
|
|
80
|
+
"ts-morph": "^18.0.0",
|
|
81
|
+
"@rxap/schematics-ts-morph": "16.0.0-dev.6",
|
|
82
|
+
"@rxap/schematics-utilities": "16.0.0-dev.6",
|
|
83
|
+
"@rxap/utilities": "16.0.0-dev.5",
|
|
84
|
+
"@rxap/workspace-ts-morph": "0.0.2-dev.0"
|
|
48
85
|
},
|
|
49
|
-
"
|
|
50
|
-
"
|
|
86
|
+
"gitHead": "38078f7707e6461caef781fca512fb2c9e53506b",
|
|
87
|
+
"main": "./src/index.js",
|
|
51
88
|
"types": "./src/index.d.ts"
|
|
52
89
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const plugin_utilities_1 = require("@rxap/plugin-utilities");
|
|
5
|
+
const semver_1 = require("semver");
|
|
6
|
+
function runExecutor(options, context) {
|
|
7
|
+
var _a;
|
|
8
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
9
|
+
console.log('Executor ran for CheckVersion', options);
|
|
10
|
+
const projectJson = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
11
|
+
const rootPackageJson = (0, plugin_utilities_1.readPackageJsonForProject)(context, 'packages');
|
|
12
|
+
const targetVersion = (_a = rootPackageJson.devDependencies[options.packageName]) !== null && _a !== void 0 ? _a : rootPackageJson.dependencies[options.packageName];
|
|
13
|
+
if (!targetVersion) {
|
|
14
|
+
console.error(`The package ${options.packageName} is not installed in the root package.json`);
|
|
15
|
+
return {
|
|
16
|
+
success: false,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
console.log(`Current '${options.packageName}' version: ${targetVersion}`);
|
|
20
|
+
console.log(`Project version: ${projectJson.version}`);
|
|
21
|
+
const version = (0, semver_1.parse)(targetVersion);
|
|
22
|
+
const versionRange = `>=${version.major}`;
|
|
23
|
+
const normalizedVersion = projectJson.version.replace(/-.*$/, '');
|
|
24
|
+
if (!(0, semver_1.satisfies)(normalizedVersion, versionRange)) {
|
|
25
|
+
console.error(`The project version '${projectJson.version}' normalized '${normalizedVersion}' is not compatible with the '${options.packageName}' version '${targetVersion}' with the range '${versionRange}'`);
|
|
26
|
+
return {
|
|
27
|
+
success: false,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
success: true,
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
exports.default = runExecutor;
|
|
36
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/library/src/executors/check-version/executor.ts"],"names":[],"mappings":";;;AACA,6DAAmE;AACnE,mCAGgB;AAGhB,SAA8B,WAAW,CACvC,OAAmC,EACnC,OAAwB;;;QAExB,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,OAAO,CAAC,CAAC;QAEtD,MAAM,WAAW,GAAG,IAAA,4CAAyB,EAAC,OAAO,CAAC,CAAC;QACvD,MAAM,eAAe,GAAG,IAAA,4CAAyB,EAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAEvE,MAAM,aAAa,GAAG,MAAA,eAAe,CAAC,eAAe,CAAC,OAAO,CAAC,WAAW,CAAC,mCACxE,eAAe,CAAC,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAEpD,IAAI,CAAC,aAAa,EAAE;YAClB,OAAO,CAAC,KAAK,CAAC,eAAgB,OAAO,CAAC,WAAY,4CAA4C,CAAC,CAAC;YAChG,OAAO;gBACL,OAAO,EAAE,KAAK;aACf,CAAC;SACH;QAED,OAAO,CAAC,GAAG,CAAC,YAAa,OAAO,CAAC,WAAY,cAAe,aAAc,EAAE,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,oBAAqB,WAAW,CAAC,OAAQ,EAAE,CAAC,CAAC;QAEzD,MAAM,OAAO,GAAG,IAAA,cAAK,EAAC,aAAa,CAAC,CAAC;QAErC,MAAM,YAAY,GAAG,KAAM,OAAO,CAAC,KAAM,EAAE,CAAC;QAE5C,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAElE,IAAI,CAAC,IAAA,kBAAS,EAAC,iBAAiB,EAAE,YAAY,CAAC,EAAE;YAC/C,OAAO,CAAC,KAAK,CAAC,wBAAyB,WAAW,CAAC,OAAQ,iBAAkB,iBAAkB,iCAAkC,OAAO,CAAC,WAAY,cAAe,aAAc,qBAAsB,YAAa,GAAG,CAAC,CAAC;YAC1N,OAAO;gBACL,OAAO,EAAE,KAAK;aACf,CAAC;SACH;QAED,OAAO;YACL,OAAO,EAAE,IAAI;SACd,CAAC;;CACH;AAtCD,8BAsCC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"version": 2,
|
|
4
|
+
"title": "CheckVersion executor",
|
|
5
|
+
"description": "",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"packageName": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The name of the package used as minimum version reference"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": [
|
|
14
|
+
"packageName"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const devkit_1 = require("@nx/devkit");
|
|
5
|
+
const plugin_utilities_1 = require("@rxap/plugin-utilities");
|
|
6
|
+
const Handlebars = tslib_1.__importStar(require("handlebars"));
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
function readGetStartedFile(context) {
|
|
9
|
+
// TODO : support GET_STARTED.md but with an fallback to GETSTARTED.md
|
|
10
|
+
return (0, plugin_utilities_1.readFileFromProjectRoot)(context, 'GETSTARTED.md');
|
|
11
|
+
}
|
|
12
|
+
function readGetGuidsFile(context) {
|
|
13
|
+
return (0, plugin_utilities_1.readFileFromProjectRoot)(context, 'GUIDES.md');
|
|
14
|
+
}
|
|
15
|
+
function getTemplate(context) {
|
|
16
|
+
const readmeTemplateFile = (0, plugin_utilities_1.readFileFromProjectRoot)(context, 'README.md.handlebars', true);
|
|
17
|
+
return Handlebars.compile(readmeTemplateFile);
|
|
18
|
+
}
|
|
19
|
+
function getSchematics(context) {
|
|
20
|
+
var _a;
|
|
21
|
+
const { schematics } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
22
|
+
if (!schematics) {
|
|
23
|
+
return [];
|
|
24
|
+
}
|
|
25
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
26
|
+
const collectionJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, schematics));
|
|
27
|
+
const schematicList = [];
|
|
28
|
+
for (const [schematic, config] of Object.entries((_a = collectionJson.schematics) !== null && _a !== void 0 ? _a : {})) {
|
|
29
|
+
schematicList.push({
|
|
30
|
+
name: schematic,
|
|
31
|
+
description: config.description,
|
|
32
|
+
schema: (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return schematicList;
|
|
36
|
+
}
|
|
37
|
+
function getGenerators(context) {
|
|
38
|
+
var _a;
|
|
39
|
+
const { generators } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
40
|
+
if (!generators) {
|
|
41
|
+
return [];
|
|
42
|
+
}
|
|
43
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
44
|
+
const collectionJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, generators));
|
|
45
|
+
const generatorList = [];
|
|
46
|
+
for (const [generator, config] of Object.entries((_a = collectionJson.generators) !== null && _a !== void 0 ? _a : {})) {
|
|
47
|
+
generatorList.push({
|
|
48
|
+
name: generator,
|
|
49
|
+
description: config.description,
|
|
50
|
+
schema: (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const schematicList = getSchematics(context);
|
|
54
|
+
return [...generatorList, ...schematicList];
|
|
55
|
+
}
|
|
56
|
+
function getBuilders(context) {
|
|
57
|
+
var _a;
|
|
58
|
+
const { builders } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
59
|
+
if (!builders) {
|
|
60
|
+
return [];
|
|
61
|
+
}
|
|
62
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
63
|
+
const buildersJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, builders));
|
|
64
|
+
const builderList = [];
|
|
65
|
+
for (const [builder, config] of Object.entries((_a = buildersJson.builders) !== null && _a !== void 0 ? _a : {})) {
|
|
66
|
+
builderList.push({
|
|
67
|
+
name: builder,
|
|
68
|
+
description: config.description,
|
|
69
|
+
schema: (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)),
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
return builderList;
|
|
73
|
+
}
|
|
74
|
+
function getExecutors(context) {
|
|
75
|
+
var _a;
|
|
76
|
+
const { executors } = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
77
|
+
if (!executors) {
|
|
78
|
+
return [];
|
|
79
|
+
}
|
|
80
|
+
const projectRoot = (0, plugin_utilities_1.GetProjectRoot)(context);
|
|
81
|
+
const executorsJson = (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, executors));
|
|
82
|
+
const executorList = [];
|
|
83
|
+
for (const [executor, config] of Object.entries((_a = executorsJson.executors) !== null && _a !== void 0 ? _a : {})) {
|
|
84
|
+
executorList.push({
|
|
85
|
+
name: executor,
|
|
86
|
+
description: config.description,
|
|
87
|
+
schema: (0, devkit_1.readJsonFile)((0, path_1.join)(context.root, projectRoot, config.schema)),
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
const builderList = getBuilders(context);
|
|
91
|
+
return [...executorList, ...builderList];
|
|
92
|
+
}
|
|
93
|
+
function getPeerDependencyList(context) {
|
|
94
|
+
var _a;
|
|
95
|
+
const packageJson = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
96
|
+
const peerDependencyList = [];
|
|
97
|
+
for (const [packageName, version] of Object.entries((_a = packageJson.peerDependencies) !== null && _a !== void 0 ? _a : {})) {
|
|
98
|
+
peerDependencyList.push({
|
|
99
|
+
name: packageName,
|
|
100
|
+
version,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return peerDependencyList;
|
|
104
|
+
}
|
|
105
|
+
Handlebars.registerHelper('hasProperties', function (record, options) {
|
|
106
|
+
if (Object.keys(record).length > 0) {
|
|
107
|
+
options.fn(this);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
function runExecutor(options, context) {
|
|
111
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const getStartedContent = readGetStartedFile(context);
|
|
113
|
+
const guidesContent = readGetGuidsFile(context);
|
|
114
|
+
const packageJson = (0, plugin_utilities_1.readPackageJsonForProject)(context);
|
|
115
|
+
const template = getTemplate(context);
|
|
116
|
+
const generatorList = getGenerators(context);
|
|
117
|
+
const executorsList = getExecutors(context);
|
|
118
|
+
const peerDependencyList = getPeerDependencyList(context);
|
|
119
|
+
console.log('Input for README.md template ready');
|
|
120
|
+
const readme = template({
|
|
121
|
+
packageJson,
|
|
122
|
+
getStartedContent,
|
|
123
|
+
guidesContent,
|
|
124
|
+
generatorList,
|
|
125
|
+
executorsList,
|
|
126
|
+
peerDependencyList,
|
|
127
|
+
hasPeerDependencies: peerDependencyList.length > 0,
|
|
128
|
+
hasGenerators: generatorList.length > 0,
|
|
129
|
+
hasExecutors: executorsList.length > 0,
|
|
130
|
+
hasInitGenerator: generatorList.find((generator) => generator.name === 'init') !== undefined,
|
|
131
|
+
hasConfigGenerator: generatorList.find((generator) => generator.name === 'config') !== undefined,
|
|
132
|
+
});
|
|
133
|
+
console.log('README.md generated');
|
|
134
|
+
(0, plugin_utilities_1.writeFileToProjectRoot)(context, 'README.md', readme);
|
|
135
|
+
return {
|
|
136
|
+
success: true,
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
exports.default = runExecutor;
|
|
141
|
+
//# sourceMappingURL=executor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/library/src/executors/readme/executor.ts"],"names":[],"mappings":";;;AAAA,uCAGoB;AACpB,6DAKgC;AAChC,+DAAyC;AACzC,+BAA4B;AAG5B,SAAS,kBAAkB,CAAC,OAAwB;IAClD,sEAAsE;IACtE,OAAO,IAAA,0CAAuB,EAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAC3D,CAAC;AAED,SAAS,gBAAgB,CAAC,OAAwB;IAChD,OAAO,IAAA,0CAAuB,EAAC,OAAO,EAAE,WAAW,CAAC,CAAC;AACvD,CAAC;AAED,SAAS,WAAW,CAAC,OAAwB;IAC3C,MAAM,kBAAkB,GAAG,IAAA,0CAAuB,EAAC,OAAO,EAAE,sBAAsB,EAAE,IAAI,CAAC,CAAC;IAE1F,OAAO,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;AAChD,CAAC;AAcD,SAAS,aAAa,CAAC,OAAwB;;IAC7C,M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