diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a4467e..69b3e08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,20 +12,12 @@ stages: - release - metadata +before_script: + - npm install -g @shipzone/npmci + # ==================== # security stage # ==================== -mirror: - stage: security - script: - - npmci git mirror - only: - - tags - tags: - - lossless - - docker - - notpriv - auditProductionDependencies: image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security @@ -36,6 +28,7 @@ auditProductionDependencies: - npmci command npm audit --audit-level=high --only=prod --production tags: - docker + allow_failure: true auditDevDependencies: image: registry.gitlab.com/hosttoday/ht-docker-node:npmci @@ -96,10 +89,9 @@ codequality: only: - tags script: - - npmci command npm install -g tslint typescript + - npmci command npm install -g typescript - npmci npm prepare - npmci npm install - - npmci command "tslint -c tslint.json ./ts/**/*.ts" tags: - lossless - docker @@ -119,11 +111,10 @@ trigger: pages: stage: metadata script: - - npmci node install lts - - npmci command npm install -g @gitzone/tsdoc + - npmci node install stable - npmci npm prepare - npmci npm install - - npmci command tsdoc + - npmci command npm run buildDocs tags: - lossless - docker diff --git a/package.json b/package.json index fa3c3fe..df83a23 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "license": "MIT", "scripts": { "test": "(tstest test/)", - "build": "(tsbuild --web --allowimplicitany)" + "build": "(tsbuild --web --allowimplicitany)", + "buildDocs": "tsdoc" }, "devDependencies": { "@gitzone/tsbuild": "^2.1.65", @@ -39,4 +40,4 @@ "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/test/test.ts b/test/test.ts index 251c65e..8ec9037 100644 --- a/test/test.ts +++ b/test/test.ts @@ -40,6 +40,6 @@ tap.test('should create a direct smartsmtp transport', async () => { 'phil@kunz.io' ); console.log(result); -}) +}); tap.start(); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 75d002e..7bfe52d 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@pushrocks/smartsmtp', - version: '3.0.1', + version: '3.0.2', description: 'a module for handling smtp stuff' } diff --git a/ts/index.ts b/ts/index.ts index 6d328f4..b962b49 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1 +1 @@ -export * from './smartsmtp.classes.smartsmtp.js'; \ No newline at end of file +export * from './smartsmtp.classes.smartsmtp.js'; diff --git a/ts/smartsmtp.classes.smartsmtp.ts b/ts/smartsmtp.classes.smartsmtp.ts index 92cbc9e..21bdb65 100644 --- a/ts/smartsmtp.classes.smartsmtp.ts +++ b/ts/smartsmtp.classes.smartsmtp.ts @@ -26,7 +26,7 @@ export class Smartsmtp { public static async createSmartsmtpSendmail() { const nodemailerTransport = plugins.nodemailer.createTransport({ sendmail: true, - newline: 'unix' + newline: 'unix', }); return new Smartsmtp(nodemailerTransport); } @@ -61,7 +61,7 @@ export class Smartsmtp { }); } - const response = await this.nodemailerTransport.sendMail(message).catch(err => { + const response = await this.nodemailerTransport.sendMail(message).catch((err) => { console.log(err); }); return response;