mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
Add linting and indexes for interfaces/services (#1510)
* Add linting and indexes for interfaces/services * Fix linting * Set correct directory for linting in cake
This commit is contained in:
parent
9b33ee7ca9
commit
6ce4f0200d
102 changed files with 1908 additions and 1982 deletions
16
build.cake
16
build.cake
|
@ -108,7 +108,7 @@ Task("SetVersionInfo")
|
|||
|
||||
Task("NPM")
|
||||
.Does(() => {
|
||||
var settings = new NpmInstallSettings {
|
||||
var settings = new NpmInstallSettings {
|
||||
LogLevel = NpmLogLevel.Silent,
|
||||
WorkingDirectory = webProjDir,
|
||||
Production = true
|
||||
|
@ -117,9 +117,21 @@ var settings = new NpmInstallSettings {
|
|||
NpmInstall(settings);
|
||||
});
|
||||
|
||||
Task("TSLint")
|
||||
.IsDependentOn("NPM")
|
||||
.Does(() =>
|
||||
{
|
||||
var settings = new NpmRunScriptSettings {
|
||||
WorkingDirectory = webProjDir,
|
||||
ScriptName = "lint"
|
||||
};
|
||||
|
||||
NpmRunScript(settings);
|
||||
});
|
||||
|
||||
Task("Restore")
|
||||
.IsDependentOn("SetVersionInfo")
|
||||
.IsDependentOn("NPM")
|
||||
.IsDependentOn("TSLint")
|
||||
.Does(() =>
|
||||
{
|
||||
DotNetCoreRestore(projDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue