Added Jenkinsfile

- added jenkinsfile
- autofixed tslint issues
pull/5/head
Trivernis 5 years ago
parent 3f48635dba
commit 0083f669c2

30
Jenkinsfile vendored

@ -0,0 +1,30 @@
pipeline {
agent any
stages {
stage('Dependencies') {
steps {
echo 'Installing Dependencies...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'yarn install'
}
}
}
stage('Stylecheck') {
steps {
echo 'Checking Style...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'tslint "src/**/*.ts"'
}
}
}
stage('Build') {
steps {
echo 'Building...'
nodejs(nodeJSInstallationName: 'Node 12.x') {
sh 'gulp'
}
}
}
}
}

@ -1,12 +1,12 @@
import {GraphQLError} from "graphql";
import * as status from "http-status";
import * as yaml from "js-yaml";
import dataaccess from "../lib/dataAccess";
import {NotLoggedInGqlError, PostNotFoundGqlError} from "../lib/errors/graphqlErrors";
import globals from "../lib/globals";
import {InternalEvents} from "../lib/InternalEvents";
import * as models from "../lib/models";
import {is} from "../lib/regex";
import * as yaml from "js-yaml";
/**
* Returns the resolvers for the graphql api.

@ -1,4 +1,4 @@
import {Column, ForeignKey, Model, NotNull, Table,} from "sequelize-typescript";
import {Column, ForeignKey, Model, NotNull, Table} from "sequelize-typescript";
import {ChatRoom} from "./ChatRoom";
import {User} from "./User";

@ -1,5 +1,5 @@
import * as sqz from "sequelize";
import {BelongsTo, Column, CreatedAt, ForeignKey, Model, NotNull, Table,} from "sequelize-typescript";
import {BelongsTo, Column, CreatedAt, ForeignKey, Model, NotNull, Table} from "sequelize-typescript";
import markdown from "../markdown";
import {ChatRoom} from "./ChatRoom";
import {User} from "./User";

@ -1,4 +1,4 @@
import {BelongsToMany, CreatedAt, HasMany, Model, Table,} from "sequelize-typescript";
import {BelongsToMany, CreatedAt, HasMany, Model, Table} from "sequelize-typescript";
import {ChatMember} from "./ChatMember";
import {ChatMessage} from "./ChatMessage";
import {User} from "./User";

@ -1,4 +1,4 @@
import {Column, ForeignKey, Model, NotNull, Table,} from "sequelize-typescript";
import {Column, ForeignKey, Model, NotNull, Table} from "sequelize-typescript";
import {Group} from "./Group";
import {User} from "./User";

@ -1,4 +1,4 @@
import {Column, ForeignKey, Model, NotNull, Table,} from "sequelize-typescript";
import {Column, ForeignKey, Model, NotNull, Table} from "sequelize-typescript";
import {Group} from "./Group";
import {User} from "./User";

@ -1,5 +1,5 @@
import * as sqz from "sequelize";
import {Column, ForeignKey, Model, NotNull, Table,} from "sequelize-typescript";
import {Column, ForeignKey, Model, NotNull, Table} from "sequelize-typescript";
import {Post} from "./Post";
import {User} from "./User";

@ -1,5 +1,5 @@
import * as sqz from "sequelize";
import {BelongsTo, Column, ForeignKey, Model, NotNull, Table,} from "sequelize-typescript";
import {BelongsTo, Column, ForeignKey, Model, NotNull, Table} from "sequelize-typescript";
import {User} from "./User";
export enum RequestType {

Loading…
Cancel
Save