From 2f9ec6a700f9aa213cf2cc7fe986e452a31fe87d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 26 Nov 2020 02:59:46 +0000 Subject: [PATCH] fix(core): update --- .gitlab-ci.yml | 26 ++++++++++++++++++-------- html/index.html | 6 +++--- html/index.ts | 10 ++++++++++ npmextra.json | 2 +- package.json | 2 +- 5 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 html/index.ts diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ebc8b5..9a4467e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,23 +19,35 @@ mirror: stage: security script: - npmci git mirror + only: + - tags tags: - lossless - docker - notpriv -audit: +auditProductionDependencies: + image: registry.gitlab.com/hosttoday/ht-docker-node:npmci + stage: security + script: + - npmci npm prepare + - npmci command npm install --production --ignore-scripts + - npmci command npm config set registry https://registry.npmjs.org + - npmci command npm audit --audit-level=high --only=prod --production + tags: + - docker + +auditDevDependencies: image: registry.gitlab.com/hosttoday/ht-docker-node:npmci stage: security script: - npmci npm prepare - npmci command npm install --ignore-scripts - npmci command npm config set registry https://registry.npmjs.org - - npmci command npm audit --audit-level=high + - npmci command npm audit --audit-level=high --only=dev tags: - - lossless - docker - - notpriv + allow_failure: true # ==================== # test stage @@ -50,9 +62,7 @@ testStable: - npmci npm test coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - priv testBuild: stage: test @@ -63,9 +73,7 @@ testBuild: - npmci command npm run build coverage: /\d+.?\d+?\%\s*coverage/ tags: - - lossless - docker - - notpriv release: stage: release @@ -85,6 +93,8 @@ release: codequality: stage: metadata allow_failure: true + only: + - tags script: - npmci command npm install -g tslint typescript - npmci npm prepare diff --git a/html/index.html b/html/index.html index 9c2247b..e3b4bdd 100644 --- a/html/index.html +++ b/html/index.html @@ -9,7 +9,6 @@ content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height" /> - - + - + + diff --git a/html/index.ts b/html/index.ts new file mode 100644 index 0000000..422ba23 --- /dev/null +++ b/html/index.ts @@ -0,0 +1,10 @@ +// dees tools +import * as deesWccTools from '@designestate/dees-wcctools'; +import * as deesDomTools from '@designestate/dees-domtools'; + +// elements and pages +import * as elements from '../ts_web/elements'; +import * as pages from '../ts_web/pages'; + +deesWccTools.setupWccTools(elements as any, pages); +deesDomTools.elementBasic.setup(); diff --git a/npmextra.json b/npmextra.json index ded8c25..d079880 100644 --- a/npmextra.json +++ b/npmextra.json @@ -1,6 +1,6 @@ { "gitzone": { - "projectType": "element", + "projectType": "wcc", "module": { "githost": "gitlab.com", "gitscope": "designestate", diff --git a/package.json b/package.json index fccbcf8..7430576 100644 --- a/package.json +++ b/package.json @@ -44,4 +44,4 @@ "browserslist": [ "last 1 Chrome versions" ] -} +} \ No newline at end of file