@nx/esbuild 22.7.0-beta.7 → 22.7.0-beta.9
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/executors.json +6 -6
- package/generators.json +16 -16
- package/migrations.json +2 -2
- package/package.json +4 -4
- package/src/executors/esbuild/lib/fixtures/apps/myapp/tsconfig.app.json +3 -3
- package/src/executors/esbuild/schema.json +190 -190
- package/src/generators/configuration/schema.json +73 -73
- package/src/generators/init/schema.json +24 -24
package/executors.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"executors": {
|
|
3
|
+
"esbuild": {
|
|
4
|
+
"implementation": "./src/executors/esbuild/esbuild.impl",
|
|
5
|
+
"schema": "./src/executors/esbuild/schema.json",
|
|
6
|
+
"description": "Bundle a package using EsBuild."
|
|
7
|
+
}
|
|
7
8
|
}
|
|
8
|
-
}
|
|
9
9
|
}
|
package/generators.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
"name": "Nx esbuild",
|
|
3
|
+
"version": "0.1",
|
|
4
|
+
"generators": {
|
|
5
|
+
"init": {
|
|
6
|
+
"factory": "./src/generators/init/init#esbuildInitGenerator",
|
|
7
|
+
"schema": "./src/generators/init/schema.json",
|
|
8
|
+
"description": "Initialize the `@nx/esbuild` plugin.",
|
|
9
|
+
"aliases": ["ng-add"],
|
|
10
|
+
"hidden": true
|
|
11
|
+
},
|
|
12
|
+
"configuration": {
|
|
13
|
+
"aliases": ["esbuild-project"],
|
|
14
|
+
"factory": "./src/generators/configuration/configuration",
|
|
15
|
+
"schema": "./src/generators/configuration/schema.json",
|
|
16
|
+
"description": "Add esbuild configuration to a project."
|
|
17
|
+
}
|
|
17
18
|
}
|
|
18
|
-
}
|
|
19
19
|
}
|
package/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/esbuild",
|
|
3
|
-
"version": "22.7.0-beta.
|
|
3
|
+
"version": "22.7.0-beta.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for esbuild contains executors and generators that support building applications using esbuild",
|
|
6
6
|
"repository": {
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"migrations": "./migrations.json"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nx/devkit": "22.7.0-beta.
|
|
36
|
-
"@nx/js": "22.7.0-beta.
|
|
35
|
+
"@nx/devkit": "22.7.0-beta.9",
|
|
36
|
+
"@nx/js": "22.7.0-beta.9",
|
|
37
37
|
"tinyglobby": "^0.2.12",
|
|
38
38
|
"picocolors": "^1.1.0",
|
|
39
39
|
"tsconfig-paths": "^4.1.2",
|
|
40
40
|
"tslib": "^2.3.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"nx": "22.7.0-beta.
|
|
43
|
+
"nx": "22.7.0-beta.9"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"esbuild": ">=0.19.2 <1.0.0"
|
|
@@ -1,198 +1,198 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
"default": []
|
|
41
|
-
},
|
|
42
|
-
"bundle": {
|
|
43
|
-
"type": "boolean",
|
|
44
|
-
"description": "Whether to bundle the main entry point and additional entry points. Set to false to keep individual output files.",
|
|
45
|
-
"default": true
|
|
46
|
-
},
|
|
47
|
-
"format": {
|
|
48
|
-
"type": "array",
|
|
49
|
-
"description": "List of module formats to output. Defaults to matching format from tsconfig (e.g. CJS for CommonJS, and ESM otherwise).",
|
|
50
|
-
"alias": "f",
|
|
51
|
-
"items": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"enum": ["esm", "cjs"]
|
|
54
|
-
},
|
|
55
|
-
"default": ["esm"]
|
|
56
|
-
},
|
|
57
|
-
"declaration": {
|
|
58
|
-
"type": "boolean",
|
|
59
|
-
"description": "Generate declaration (*.d.ts) files for every TypeScript or JavaScript file inside your project. Should be used for libraries that are published to an npm repository."
|
|
60
|
-
},
|
|
61
|
-
"declarationRootDir": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "Sets the rootDir for the declaration (*.d.ts) files."
|
|
64
|
-
},
|
|
65
|
-
"watch": {
|
|
66
|
-
"type": "boolean",
|
|
67
|
-
"description": "Enable re-building when files change.",
|
|
68
|
-
"default": false
|
|
69
|
-
},
|
|
70
|
-
"assets": {
|
|
71
|
-
"type": "array",
|
|
72
|
-
"description": "List of static assets.",
|
|
73
|
-
"default": [],
|
|
74
|
-
"items": {
|
|
75
|
-
"$ref": "#/definitions/assetPattern"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"deleteOutputPath": {
|
|
79
|
-
"type": "boolean",
|
|
80
|
-
"description": "Remove previous output before build.",
|
|
81
|
-
"alias": "clean",
|
|
82
|
-
"default": true
|
|
83
|
-
},
|
|
84
|
-
"external": {
|
|
85
|
-
"type": "array",
|
|
86
|
-
"description": "Mark one or more module as external. Can use * wildcards, such as '*.png'.",
|
|
87
|
-
"items": {
|
|
88
|
-
"type": "string"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"excludeFromExternal": {
|
|
92
|
-
"type": "array",
|
|
93
|
-
"description": "List of dependencies that should be excluded from the external list. This is useful when Nx automatically marks certain packages as external, but you want to bundle them instead.",
|
|
94
|
-
"items": {
|
|
95
|
-
"type": "string"
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
"outputHashing": {
|
|
99
|
-
"type": "string",
|
|
100
|
-
"description": "Define the output filename cache-busting hashing mode.",
|
|
101
|
-
"default": "none",
|
|
102
|
-
"enum": ["none", "all"]
|
|
103
|
-
},
|
|
104
|
-
"metafile": {
|
|
105
|
-
"type": "boolean",
|
|
106
|
-
"description": "Generate a meta.json file in the output folder that includes metadata about the build. This file can be analyzed by other tools.",
|
|
107
|
-
"default": false
|
|
108
|
-
},
|
|
109
|
-
"sourcemap": {
|
|
110
|
-
"oneOf": [
|
|
111
|
-
{ "type": "string", "enum": ["linked", "inline", "external", "both"] },
|
|
112
|
-
{ "type": "boolean" }
|
|
113
|
-
],
|
|
114
|
-
"alias": "sourceMap",
|
|
115
|
-
"description": "Generate sourcemap."
|
|
116
|
-
},
|
|
117
|
-
"minify": {
|
|
118
|
-
"type": "boolean",
|
|
119
|
-
"description": "Minifies outputs.",
|
|
120
|
-
"default": false
|
|
121
|
-
},
|
|
122
|
-
"platform": {
|
|
123
|
-
"type": "string",
|
|
124
|
-
"description": "Platform target for outputs.",
|
|
125
|
-
"enum": ["browser", "node", "neutral"],
|
|
126
|
-
"default": "node"
|
|
127
|
-
},
|
|
128
|
-
"target": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"description": "The environment target for outputs.",
|
|
131
|
-
"default": "esnext"
|
|
132
|
-
},
|
|
133
|
-
"skipTypeCheck": {
|
|
134
|
-
"type": "boolean",
|
|
135
|
-
"description": "Skip type-checking via TypeScript. Skipping type-checking speeds up the build but type errors are not caught.",
|
|
136
|
-
"default": false,
|
|
137
|
-
"x-priority": "internal"
|
|
138
|
-
},
|
|
139
|
-
"generatePackageJson": {
|
|
140
|
-
"type": "boolean",
|
|
141
|
-
"description": "Generates a `package.json` and pruned lock file with the project's `node_module` dependencies populated for installing in a container. If a `package.json` exists in the project's directory, it will be reused with dependencies populated.",
|
|
142
|
-
"default": false
|
|
143
|
-
},
|
|
144
|
-
"thirdParty": {
|
|
145
|
-
"type": "boolean",
|
|
146
|
-
"description": "Includes third-party packages in the bundle (i.e. npm packages)."
|
|
147
|
-
},
|
|
148
|
-
"esbuildOptions": {
|
|
149
|
-
"type": "object",
|
|
150
|
-
"description": "Additional options to pass to esbuild. See https://esbuild.github.io/api/. Cannot be used with 'esbuildConfig' option.",
|
|
151
|
-
"additionalProperties": true,
|
|
152
|
-
"x-priority": "important"
|
|
153
|
-
},
|
|
154
|
-
"esbuildConfig": {
|
|
155
|
-
"type": "string",
|
|
156
|
-
"description": "Path to a esbuild configuration file. See https://esbuild.github.io/api/. Cannot be used with 'esbuildOptions' option.",
|
|
157
|
-
"x-priority": "important"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"required": ["tsConfig", "main", "outputPath"],
|
|
161
|
-
"definitions": {
|
|
162
|
-
"assetPattern": {
|
|
163
|
-
"oneOf": [
|
|
164
|
-
{
|
|
165
|
-
"type": "object",
|
|
166
|
-
"properties": {
|
|
167
|
-
"glob": {
|
|
168
|
-
"type": "string",
|
|
169
|
-
"description": "The pattern to match."
|
|
170
|
-
},
|
|
171
|
-
"input": {
|
|
172
|
-
"type": "string",
|
|
173
|
-
"description": "The input directory path in which to apply `glob`. Defaults to the project root."
|
|
2
|
+
"version": 2,
|
|
3
|
+
"outputCapture": "direct-nodejs",
|
|
4
|
+
"title": "esbuild (experimental)",
|
|
5
|
+
"description": "Bundle a package for different platforms.",
|
|
6
|
+
"cli": "nx",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"main": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The path to the entry file, relative to project.",
|
|
12
|
+
"alias": "entryFile",
|
|
13
|
+
"x-completion-type": "file",
|
|
14
|
+
"x-completion-glob": "**/*@(.js|.ts)",
|
|
15
|
+
"x-priority": "important"
|
|
16
|
+
},
|
|
17
|
+
"outputPath": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The output path of the generated files.",
|
|
20
|
+
"x-completion-type": "directory",
|
|
21
|
+
"x-priority": "important"
|
|
22
|
+
},
|
|
23
|
+
"outputFileName": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "Name of the main output file. Defaults same basename as 'main' file."
|
|
26
|
+
},
|
|
27
|
+
"tsConfig": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "The path to tsconfig file.",
|
|
30
|
+
"x-completion-type": "file",
|
|
31
|
+
"x-completion-glob": "tsconfig.*.json",
|
|
32
|
+
"x-priority": "important"
|
|
33
|
+
},
|
|
34
|
+
"additionalEntryPoints": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"description": "List of additional entry points.",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
174
39
|
},
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
40
|
+
"default": []
|
|
41
|
+
},
|
|
42
|
+
"bundle": {
|
|
43
|
+
"type": "boolean",
|
|
44
|
+
"description": "Whether to bundle the main entry point and additional entry points. Set to false to keep individual output files.",
|
|
45
|
+
"default": true
|
|
46
|
+
},
|
|
47
|
+
"format": {
|
|
48
|
+
"type": "array",
|
|
49
|
+
"description": "List of module formats to output. Defaults to matching format from tsconfig (e.g. CJS for CommonJS, and ESM otherwise).",
|
|
50
|
+
"alias": "f",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"enum": ["esm", "cjs"]
|
|
178
54
|
},
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
55
|
+
"default": ["esm"]
|
|
56
|
+
},
|
|
57
|
+
"declaration": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Generate declaration (*.d.ts) files for every TypeScript or JavaScript file inside your project. Should be used for libraries that are published to an npm repository."
|
|
60
|
+
},
|
|
61
|
+
"declarationRootDir": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Sets the rootDir for the declaration (*.d.ts) files."
|
|
64
|
+
},
|
|
65
|
+
"watch": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"description": "Enable re-building when files change.",
|
|
68
|
+
"default": false
|
|
69
|
+
},
|
|
70
|
+
"assets": {
|
|
71
|
+
"type": "array",
|
|
72
|
+
"description": "List of static assets.",
|
|
73
|
+
"default": [],
|
|
74
|
+
"items": {
|
|
75
|
+
"$ref": "#/definitions/assetPattern"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"deleteOutputPath": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"description": "Remove previous output before build.",
|
|
81
|
+
"alias": "clean",
|
|
82
|
+
"default": true
|
|
83
|
+
},
|
|
84
|
+
"external": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"description": "Mark one or more module as external. Can use * wildcards, such as '*.png'.",
|
|
87
|
+
"items": {
|
|
88
|
+
"type": "string"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"excludeFromExternal": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"description": "List of dependencies that should be excluded from the external list. This is useful when Nx automatically marks certain packages as external, but you want to bundle them instead.",
|
|
94
|
+
"items": {
|
|
183
95
|
"type": "string"
|
|
184
|
-
}
|
|
185
96
|
}
|
|
186
|
-
},
|
|
187
|
-
"additionalProperties": false,
|
|
188
|
-
"required": ["glob", "input", "output"]
|
|
189
97
|
},
|
|
190
|
-
{
|
|
191
|
-
|
|
98
|
+
"outputHashing": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Define the output filename cache-busting hashing mode.",
|
|
101
|
+
"default": "none",
|
|
102
|
+
"enum": ["none", "all"]
|
|
103
|
+
},
|
|
104
|
+
"metafile": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"description": "Generate a meta.json file in the output folder that includes metadata about the build. This file can be analyzed by other tools.",
|
|
107
|
+
"default": false
|
|
108
|
+
},
|
|
109
|
+
"sourcemap": {
|
|
110
|
+
"oneOf": [
|
|
111
|
+
{ "type": "string", "enum": ["linked", "inline", "external", "both"] },
|
|
112
|
+
{ "type": "boolean" }
|
|
113
|
+
],
|
|
114
|
+
"alias": "sourceMap",
|
|
115
|
+
"description": "Generate sourcemap."
|
|
116
|
+
},
|
|
117
|
+
"minify": {
|
|
118
|
+
"type": "boolean",
|
|
119
|
+
"description": "Minifies outputs.",
|
|
120
|
+
"default": false
|
|
121
|
+
},
|
|
122
|
+
"platform": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"description": "Platform target for outputs.",
|
|
125
|
+
"enum": ["browser", "node", "neutral"],
|
|
126
|
+
"default": "node"
|
|
127
|
+
},
|
|
128
|
+
"target": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "The environment target for outputs.",
|
|
131
|
+
"default": "esnext"
|
|
132
|
+
},
|
|
133
|
+
"skipTypeCheck": {
|
|
134
|
+
"type": "boolean",
|
|
135
|
+
"description": "Skip type-checking via TypeScript. Skipping type-checking speeds up the build but type errors are not caught.",
|
|
136
|
+
"default": false,
|
|
137
|
+
"x-priority": "internal"
|
|
138
|
+
},
|
|
139
|
+
"generatePackageJson": {
|
|
140
|
+
"type": "boolean",
|
|
141
|
+
"description": "Generates a `package.json` and pruned lock file with the project's `node_module` dependencies populated for installing in a container. If a `package.json` exists in the project's directory, it will be reused with dependencies populated.",
|
|
142
|
+
"default": false
|
|
143
|
+
},
|
|
144
|
+
"thirdParty": {
|
|
145
|
+
"type": "boolean",
|
|
146
|
+
"description": "Includes third-party packages in the bundle (i.e. npm packages)."
|
|
147
|
+
},
|
|
148
|
+
"esbuildOptions": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"description": "Additional options to pass to esbuild. See https://esbuild.github.io/api/. Cannot be used with 'esbuildConfig' option.",
|
|
151
|
+
"additionalProperties": true,
|
|
152
|
+
"x-priority": "important"
|
|
153
|
+
},
|
|
154
|
+
"esbuildConfig": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"description": "Path to a esbuild configuration file. See https://esbuild.github.io/api/. Cannot be used with 'esbuildOptions' option.",
|
|
157
|
+
"x-priority": "important"
|
|
192
158
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
159
|
+
},
|
|
160
|
+
"required": ["tsConfig", "main", "outputPath"],
|
|
161
|
+
"definitions": {
|
|
162
|
+
"assetPattern": {
|
|
163
|
+
"oneOf": [
|
|
164
|
+
{
|
|
165
|
+
"type": "object",
|
|
166
|
+
"properties": {
|
|
167
|
+
"glob": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"description": "The pattern to match."
|
|
170
|
+
},
|
|
171
|
+
"input": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"description": "The input directory path in which to apply `glob`. Defaults to the project root."
|
|
174
|
+
},
|
|
175
|
+
"output": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"description": "Relative path within the output folder."
|
|
178
|
+
},
|
|
179
|
+
"ignore": {
|
|
180
|
+
"description": "An array of globs to ignore.",
|
|
181
|
+
"type": "array",
|
|
182
|
+
"items": {
|
|
183
|
+
"type": "string"
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
"additionalProperties": false,
|
|
188
|
+
"required": ["glob", "input", "output"]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"type": "string"
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"additionalProperties": true,
|
|
197
|
+
"examplesFile": "../../../docs/esbuild-examples.md"
|
|
198
198
|
}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxEsBuildProject",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Add esbuild configuration to a project",
|
|
6
|
+
"description": "Add esbuild configuration to a project.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"project": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "The name of the project.",
|
|
12
|
+
"$default": {
|
|
13
|
+
"$source": "argv",
|
|
14
|
+
"index": 0
|
|
15
|
+
},
|
|
16
|
+
"x-dropdown": "project",
|
|
17
|
+
"x-prompt": "What is the name of the project to set up a esbuild for?",
|
|
18
|
+
"x-priority": "important"
|
|
19
|
+
},
|
|
20
|
+
"main": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Path relative to the workspace root for the main entry file. Defaults to `<project-root>/src/main.ts` or `<project-root>src/index.ts`, whichever is found.",
|
|
23
|
+
"alias": "entryFile",
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"tsConfig": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Path relative to the workspace root for the tsconfig file to build with. Defaults to `<project-root>/tsconfig.app.json` or `<project-root>/tsconfig.lib.json`, whichever is found.",
|
|
29
|
+
"x-priority": "important"
|
|
30
|
+
},
|
|
31
|
+
"skipFormat": {
|
|
32
|
+
"description": "Skip formatting files.",
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": false,
|
|
35
|
+
"x-priority": "internal"
|
|
36
|
+
},
|
|
37
|
+
"skipPackageJson": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": false,
|
|
40
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
41
|
+
"x-priority": "internal"
|
|
42
|
+
},
|
|
43
|
+
"skipValidation": {
|
|
44
|
+
"type": "boolean",
|
|
45
|
+
"default": false,
|
|
46
|
+
"description": "Do not perform any validation on existing project.",
|
|
47
|
+
"x-priority": "internal"
|
|
48
|
+
},
|
|
49
|
+
"importPath": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "The library name used to import it, like `@myorg/my-awesome-lib`."
|
|
52
|
+
},
|
|
53
|
+
"platform": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Platform target for outputs.",
|
|
56
|
+
"enum": ["browser", "node", "neutral"],
|
|
57
|
+
"default": "node"
|
|
58
|
+
},
|
|
59
|
+
"buildTarget": {
|
|
60
|
+
"description": "The build target to add.",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": "build"
|
|
63
|
+
},
|
|
64
|
+
"format": {
|
|
65
|
+
"description": "The format to build the library (esm or cjs).",
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"enum": ["esm", "cjs"]
|
|
70
|
+
},
|
|
71
|
+
"default": ["esm"]
|
|
72
|
+
}
|
|
19
73
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"description": "Path relative to the workspace root for the main entry file. Defaults to `<project-root>/src/main.ts` or `<project-root>src/index.ts`, whichever is found.",
|
|
23
|
-
"alias": "entryFile",
|
|
24
|
-
"x-priority": "important"
|
|
25
|
-
},
|
|
26
|
-
"tsConfig": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"description": "Path relative to the workspace root for the tsconfig file to build with. Defaults to `<project-root>/tsconfig.app.json` or `<project-root>/tsconfig.lib.json`, whichever is found.",
|
|
29
|
-
"x-priority": "important"
|
|
30
|
-
},
|
|
31
|
-
"skipFormat": {
|
|
32
|
-
"description": "Skip formatting files.",
|
|
33
|
-
"type": "boolean",
|
|
34
|
-
"default": false,
|
|
35
|
-
"x-priority": "internal"
|
|
36
|
-
},
|
|
37
|
-
"skipPackageJson": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"default": false,
|
|
40
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
41
|
-
"x-priority": "internal"
|
|
42
|
-
},
|
|
43
|
-
"skipValidation": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"default": false,
|
|
46
|
-
"description": "Do not perform any validation on existing project.",
|
|
47
|
-
"x-priority": "internal"
|
|
48
|
-
},
|
|
49
|
-
"importPath": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "The library name used to import it, like `@myorg/my-awesome-lib`."
|
|
52
|
-
},
|
|
53
|
-
"platform": {
|
|
54
|
-
"type": "string",
|
|
55
|
-
"description": "Platform target for outputs.",
|
|
56
|
-
"enum": ["browser", "node", "neutral"],
|
|
57
|
-
"default": "node"
|
|
58
|
-
},
|
|
59
|
-
"buildTarget": {
|
|
60
|
-
"description": "The build target to add.",
|
|
61
|
-
"type": "string",
|
|
62
|
-
"default": "build"
|
|
63
|
-
},
|
|
64
|
-
"format": {
|
|
65
|
-
"description": "The format to build the library (esm or cjs).",
|
|
66
|
-
"type": "array",
|
|
67
|
-
"items": {
|
|
68
|
-
"type": "string",
|
|
69
|
-
"enum": ["esm", "cjs"]
|
|
70
|
-
},
|
|
71
|
-
"default": ["esm"]
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
"required": [],
|
|
75
|
-
"examplesFile": "../../../docs/configuration-examples.md"
|
|
74
|
+
"required": [],
|
|
75
|
+
"examplesFile": "../../../docs/configuration-examples.md"
|
|
76
76
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "NxEsbuildInit",
|
|
4
|
+
"cli": "nx",
|
|
5
|
+
"title": "Init Esbuild Plugin",
|
|
6
|
+
"description": "Init Esbuild Plugin.",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"skipFormat": {
|
|
10
|
+
"description": "Skip formatting files.",
|
|
11
|
+
"type": "boolean",
|
|
12
|
+
"default": false
|
|
13
|
+
},
|
|
14
|
+
"skipPackageJson": {
|
|
15
|
+
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
+
"type": "boolean",
|
|
17
|
+
"default": false
|
|
18
|
+
},
|
|
19
|
+
"keepExistingVersions": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"x-priority": "internal",
|
|
22
|
+
"description": "Keep existing dependencies versions",
|
|
23
|
+
"default": false
|
|
24
|
+
}
|
|
13
25
|
},
|
|
14
|
-
"
|
|
15
|
-
"description": "Do not add dependencies to `package.json`.",
|
|
16
|
-
"type": "boolean",
|
|
17
|
-
"default": false
|
|
18
|
-
},
|
|
19
|
-
"keepExistingVersions": {
|
|
20
|
-
"type": "boolean",
|
|
21
|
-
"x-priority": "internal",
|
|
22
|
-
"description": "Keep existing dependencies versions",
|
|
23
|
-
"default": false
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"required": []
|
|
26
|
+
"required": []
|
|
27
27
|
}
|