diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bb38cf7..938529d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ # gitzone ci_default -image: hosttoday/ht-docker-node:npmci +image: registry.gitlab.com/hosttoday/ht-docker-node:npmci cache: paths: @@ -49,14 +49,14 @@ testLTS: tags: - docker - notpriv - -testSTABLE: + +testBuild: stage: test script: - npmci npm prepare - - npmci node install stable + - npmci node install lts - npmci npm install - - npmci npm test + - npmci command npm run build coverage: /\d+.?\d+?\%\s*coverage/ tags: - docker @@ -65,7 +65,7 @@ testSTABLE: release: stage: release script: - - npmci node install stable + - npmci node install lts - npmci npm publish only: - tags @@ -80,8 +80,9 @@ codequality: stage: metadata allow_failure: true script: - - npm install -g tslint typescript - - tslint -c tslint.json ./ts/**/*.ts + - npmci command npm install -g tslint typescript + - npmci npm install + - npmci command "tslint -c tslint.json ./ts/**/*.ts" tags: - docker - priv @@ -97,7 +98,9 @@ trigger: - notpriv pages: - image: hosttoday/ht-docker-node:npmci + image: hosttoday/ht-docker-dbase:npmci + services: + - docker:18-dind stage: metadata script: - npmci command npm install -g @gitzone/tsdoc diff --git a/npmextra.json b/npmextra.json index 71f1ac2..5bb17de 100644 --- a/npmextra.json +++ b/npmextra.json @@ -5,7 +5,7 @@ }, "gitzone": { "module": { - "githost": "gitlab.om", + "githost": "gitlab.com", "gitscope": "pushrocks", "gitrepo": "smartpdf", "shortDescription": "Create PDFs fast and smoothly", diff --git a/package.json b/package.json index b22a36c..e1ac6c8 100644 --- a/package.json +++ b/package.json @@ -33,9 +33,10 @@ "ts_web/*", "dist/*", "dist_web/*", + "dist_ts_web/*", "assets/*", "cli.js", "npmextra.json", "readme.md" ] -} +} \ No newline at end of file diff --git a/readme.md b/readme.md index 1a582b0..cb0d182 100644 --- a/readme.md +++ b/readme.md @@ -3,13 +3,13 @@ Create PDFs fast and smoothly ## Availabililty and Links * [npmjs.org (npm package)](https://www.npmjs.com/package/@pushrocks/smartpdf) -* [gitlab.com (source)](https://gitlab.om/pushrocks/smartpdf) +* [gitlab.com (source)](https://gitlab.com/pushrocks/smartpdf) * [github.com (source mirror)](https://github.com/pushrocks/smartpdf) * [docs (typedoc)](https://pushrocks.gitlab.io/smartpdf/) ## Status for master -[![build status](https://gitlab.om/pushrocks/smartpdf/badges/master/build.svg)](https://gitlab.om/pushrocks/smartpdf/commits/master) -[![coverage report](https://gitlab.om/pushrocks/smartpdf/badges/master/coverage.svg)](https://gitlab.om/pushrocks/smartpdf/commits/master) +[![build status](https://gitlab.com/pushrocks/smartpdf/badges/master/build.svg)](https://gitlab.com/pushrocks/smartpdf/commits/master) +[![coverage report](https://gitlab.com/pushrocks/smartpdf/badges/master/coverage.svg)](https://gitlab.com/pushrocks/smartpdf/commits/master) [![npm downloads per month](https://img.shields.io/npm/dm/@pushrocks/smartpdf.svg)](https://www.npmjs.com/package/@pushrocks/smartpdf) [![Known Vulnerabilities](https://snyk.io/test/npm/@pushrocks/smartpdf/badge.svg)](https://snyk.io/test/npm/@pushrocks/smartpdf) [![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) @@ -21,6 +21,6 @@ Create PDFs fast and smoothly For further information read the linked docs at the top of this readme. > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) -| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) +| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) -[![repo-footer](https://pushrocks.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com) +[![repo-footer](https://lossless.gitlab.io/publicrelations/repofooter.svg)](https://maintainedby.lossless.com) diff --git a/test/test.ts b/test/test.ts index e1716d4..ddd9302 100644 --- a/test/test.ts +++ b/test/test.ts @@ -29,6 +29,12 @@ tap.test('should create a valid PDFResult', async () => { 'https://maintainedby.lossless.com' ); expect(pdfResult.buffer).to.be.instanceOf(Buffer); + const fs = await import('fs'); + + if (!fs.existsSync('.nogit/')) { + fs.mkdirSync('.nogit/'); + } + fs.writeFileSync('.nogit/sample.pdf', pdfResult.buffer); }); tap.test('should be able to close properly', async () => {