@tsed/cli-plugin-tslint
Advanced tools
Comparing version 1.10.2 to 1.11.0
@@ -10,2 +10,6 @@ import { IInitCmdContext } from "@tsed/cli"; | ||
}[]; | ||
onPostInstall(ctx: IInitCmdContext): { | ||
title: string; | ||
task: () => any; | ||
}[]; | ||
addScripts(ctx: IInitCmdContext): void; | ||
@@ -12,0 +16,0 @@ addDependencies(ctx: IInitCmdContext): void; |
@@ -30,2 +30,15 @@ "use strict"; | ||
} | ||
onPostInstall(ctx) { | ||
if (!ctx.tsLint) { | ||
return []; | ||
} | ||
return [ | ||
{ | ||
title: "Run eslint", | ||
task: () => { | ||
return this.packageJson.runScript("test:lint:fix", true); | ||
} | ||
} | ||
]; | ||
} | ||
addScripts(ctx) { | ||
@@ -82,2 +95,8 @@ this.packageJson.addScripts({ | ||
], TslintInitHook.prototype, "onExec", null); | ||
tslib_1.__decorate([ | ||
cli_core_1.OnPostInstall("init"), | ||
tslib_1.__metadata("design:type", Function), | ||
tslib_1.__metadata("design:paramtypes", [Object]), | ||
tslib_1.__metadata("design:returntype", void 0) | ||
], TslintInitHook.prototype, "onPostInstall", null); | ||
TslintInitHook = tslib_1.__decorate([ | ||
@@ -84,0 +103,0 @@ cli_core_1.Injectable() |
{ | ||
"name": "@tsed/cli-plugin-tslint", | ||
"version": "1.10.2", | ||
"version": "1.11.0", | ||
"main": "lib/index.js", | ||
@@ -8,4 +8,4 @@ "typings": "lib/index.d.ts", | ||
"devDependencies": { | ||
"@tsed/cli": "1.10.2", | ||
"@tsed/cli-core": "1.10.2" | ||
"@tsed/cli": "1.11.0", | ||
"@tsed/cli-core": "1.11.0" | ||
}, | ||
@@ -12,0 +12,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
14355
146