@open-norantec/herbal 1.0.2-alpha.31 → 1.0.2-alpha.33
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/dist/cli/herbal.js
CHANGED
|
@@ -167,12 +167,20 @@ command
|
|
|
167
167
|
'--obfuscate',
|
|
168
168
|
'--obfuscator-config-file <string>',
|
|
169
169
|
'--disable-write-file',
|
|
170
|
+
'--disable-minify',
|
|
171
|
+
'--disable-minify-identifiers',
|
|
172
|
+
'--disable-minify-syntax',
|
|
173
|
+
'--disable-minify-whitespace',
|
|
170
174
|
],
|
|
171
175
|
onLog: log,
|
|
172
176
|
defaultOptions: function () { return ({
|
|
173
177
|
watch: true,
|
|
174
178
|
executeAfterBuild: true,
|
|
175
179
|
obfuscate: false,
|
|
180
|
+
disableMinify: true,
|
|
181
|
+
disableMinifyIdentifiers: true,
|
|
182
|
+
disableMinifySyntax: true,
|
|
183
|
+
disableMinifyWhitespace: true,
|
|
176
184
|
getWatcher: handleGetWatcher,
|
|
177
185
|
getVirtualEntryFileContent: handleGetVirtualEntryFileContent,
|
|
178
186
|
onGetFileContent: handleGetFileContent,
|
|
@@ -190,11 +198,19 @@ command
|
|
|
190
198
|
'--obfuscate',
|
|
191
199
|
'--obfuscator-config-file <string>',
|
|
192
200
|
'--disable-write-file',
|
|
201
|
+
'--disable-minify',
|
|
202
|
+
'--disable-minify-identifiers',
|
|
203
|
+
'--disable-minify-syntax',
|
|
204
|
+
'--disable-minify-whitespace',
|
|
193
205
|
],
|
|
194
206
|
defaultOptions: function (source, output, options) { return ({
|
|
195
207
|
watch: false,
|
|
196
208
|
executeAfterBuild: false,
|
|
197
209
|
obfuscate: false,
|
|
210
|
+
disableMinify: true,
|
|
211
|
+
disableMinifyIdentifiers: true,
|
|
212
|
+
disableMinifySyntax: true,
|
|
213
|
+
disableMinifyWhitespace: true,
|
|
198
214
|
getWatcher: handleGetWatcher,
|
|
199
215
|
onGetFileContent: handleGetFileContent,
|
|
200
216
|
onOutputFile: createHandleOutputFile(false),
|
|
@@ -40,6 +40,7 @@ declare class MethodPool {
|
|
|
40
40
|
export declare function isHerbalController(target: Function): boolean;
|
|
41
41
|
export declare function getControllerName(target: Function): any;
|
|
42
42
|
export interface HerbalControllerOptions<C> {
|
|
43
|
+
ignoreControllerNamePostfix?: boolean;
|
|
43
44
|
prefix?: string;
|
|
44
45
|
useHeadGuards?: Constructor<any>[];
|
|
45
46
|
useTailGuards?: Constructor<any>[];
|
|
@@ -459,7 +459,9 @@ var ControllerUtil = (function () {
|
|
|
459
459
|
: createOptions.prefix
|
|
460
460
|
: options.prefix;
|
|
461
461
|
var controllerName = _.camelCase(target.name.replace(/Controller$/g, ''));
|
|
462
|
-
|
|
462
|
+
if (!(options === null || options === void 0 ? void 0 : options.ignoreControllerNamePostfix)) {
|
|
463
|
+
finalPrefix += "".concat(((_a = finalPrefix === null || finalPrefix === void 0 ? void 0 : finalPrefix.endsWith) === null || _a === void 0 ? void 0 : _a.call(finalPrefix, '/')) ? '' : '/').concat(controllerName);
|
|
464
|
+
}
|
|
463
465
|
var register = function (name, options, callback) {
|
|
464
466
|
if (string_util_class_1.StringUtil.isFalsyString(name) || typeof callback !== 'function')
|
|
465
467
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-norantec/herbal",
|
|
3
|
-
"version": "1.0.2-alpha.
|
|
3
|
+
"version": "1.0.2-alpha.33",
|
|
4
4
|
"description": "Herbal is a builder and toolchain for Nest.js applications",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@nestjs/common": "^10.0.0",
|
|
39
39
|
"@nestjs/core": "^10.4.19",
|
|
40
40
|
"@nestjs/sequelize": "^10.0.1",
|
|
41
|
-
"@open-norantec/forge": "
|
|
41
|
+
"@open-norantec/forge": "latest",
|
|
42
42
|
"@open-norantec/utilities": "latest",
|
|
43
43
|
"commander": "^12.1.0",
|
|
44
44
|
"fs-extra": "^11.3.4",
|