diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1c84099..8d4acf4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ -# gitzone standard -image: hosttoday/ht-docker-node:npmci +# gitzone ci_default +image: registry.gitlab.com/hosttoday/ht-docker-node:npmci cache: paths: @@ -49,23 +49,11 @@ testLTS: tags: - docker - notpriv - -testSTABLE: - stage: test - script: - - npmci npm prepare - - npmci node install stable - - npmci npm install - - npmci npm test - coverage: /\d+.?\d+?\%\s*coverage/ - tags: - - docker - - notpriv release: stage: release script: - - npmci node install stable + - npmci node install lts - npmci npm publish only: - tags @@ -78,19 +66,11 @@ release: # ==================== codequality: stage: metadata - image: docker:stable allow_failure: true - services: - - docker:stable-dind script: - - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') - - docker run - --env SOURCE_CODE="$PWD" - --volume "$PWD":/code - --volume /var/run/docker.sock:/var/run/docker.sock - "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code - artifacts: - paths: [codeclimate.json] + - npmci command npm install -g tslint typescript + - npmci npm install + - npmci command "tslint -c tslint.json ./ts/**/*.ts" tags: - docker - priv diff --git a/package.json b/package.json index 6b5f3d8..0c477e1 100644 --- a/package.json +++ b/package.json @@ -20,5 +20,15 @@ "tslint": "^5.18.0", "tslint-config-prettier": "^1.15.0" }, - "dependencies": {} -} + "dependencies": {}, + "files": [ + "ts/*", + "ts_web/*", + "dist/*", + "dist_web/*", + "assets/*", + "cli.js", + "npmextra.json", + "readme.md" + ] +} \ No newline at end of file diff --git a/ts/index.ts b/ts/index.ts index f76ab3b..dcb91b0 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,4 +1,3 @@ import * as plugins from './finplus-interfaces.plugins'; export * from './interfaces/csvparser'; - diff --git a/ts/interfaces/csvparser.ts b/ts/interfaces/csvparser.ts index 2830bda..aab53e2 100644 --- a/ts/interfaces/csvparser.ts +++ b/ts/interfaces/csvparser.ts @@ -1,4 +1,4 @@ export abstract class AcCsvParser { public abstract transactionArray: T[]; - public abstract async getTransactions (): Promise; -} \ No newline at end of file + public abstract async getTransactions(): Promise; +} diff --git a/ts/interfaces/index.ts b/ts/interfaces/index.ts index a28b249..7f76bbd 100644 --- a/ts/interfaces/index.ts +++ b/ts/interfaces/index.ts @@ -1 +1 @@ -export * from './csvparser'; \ No newline at end of file +export * from './csvparser';