commit 0eda437a1e92effb9b2834f4342c8ad702bf9371 Author: Philipp Kunz Date: Sat Nov 25 00:42:09 2023 +0100 fix(core): update diff --git a/.gitea/workflows/default_nottags.yaml b/.gitea/workflows/default_nottags.yaml new file mode 100644 index 0000000..9f4e743 --- /dev/null +++ b/.gitea/workflows/default_nottags.yaml @@ -0,0 +1,66 @@ +name: Default (not tags) + +on: + push: + tags-ignore: + - '**' + +env: + IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci + NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git + NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}} + NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}} + NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}} + NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}} + +jobs: + security: + runs-on: ubuntu-latest + continue-on-error: true + container: + image: ${{ env.IMAGE }} + + steps: + - uses: actions/checkout@v3 + + - name: Install pnpm and npmci + run: | + pnpm install -g pnpm + pnpm install -g @shipzone/npmci + + - name: Run npm prepare + run: npmci npm prepare + + - name: Audit production dependencies + run: | + npmci command npm config set registry https://registry.npmjs.org + npmci command pnpm audit --audit-level=high --prod + continue-on-error: true + + - name: Audit development dependencies + run: | + npmci command npm config set registry https://registry.npmjs.org + npmci command pnpm audit --audit-level=high --dev + continue-on-error: true + + test: + if: ${{ always() }} + needs: security + runs-on: ubuntu-latest + container: + image: ${{ env.IMAGE }} + + steps: + - uses: actions/checkout@v3 + + - name: Test stable + run: | + npmci node install stable + npmci npm install + npmci npm test + + - name: Test build + run: | + npmci node install stable + npmci npm install + npmci npm build diff --git a/.gitea/workflows/default_tags.yaml b/.gitea/workflows/default_tags.yaml new file mode 100644 index 0000000..e27ad69 --- /dev/null +++ b/.gitea/workflows/default_tags.yaml @@ -0,0 +1,124 @@ +name: Default (tags) + +on: + push: + tags: + - '*' + +env: + IMAGE: registry.gitlab.com/hosttoday/ht-docker-node:npmci + NPMCI_COMPUTED_REPOURL: https://${{gitea.repository_owner}}:${{secrets.GITEA_TOKEN}}@gitea.lossless.digital/${{gitea.repository}}.git + NPMCI_TOKEN_NPM: ${{secrets.NPMCI_TOKEN_NPM}} + NPMCI_TOKEN_NPM2: ${{secrets.NPMCI_TOKEN_NPM2}} + NPMCI_GIT_GITHUBTOKEN: ${{secrets.NPMCI_GIT_GITHUBTOKEN}} + NPMCI_URL_CLOUDLY: ${{secrets.NPMCI_URL_CLOUDLY}} + +jobs: + security: + runs-on: ubuntu-latest + continue-on-error: true + container: + image: ${{ env.IMAGE }} + + steps: + - uses: actions/checkout@v3 + + - name: Prepare + run: | + pnpm install -g pnpm + pnpm install -g @shipzone/npmci + npmci npm prepare + + - name: Audit production dependencies + run: | + npmci command npm config set registry https://registry.npmjs.org + npmci command pnpm audit --audit-level=high --prod + continue-on-error: true + + - name: Audit development dependencies + run: | + npmci command npm config set registry https://registry.npmjs.org + npmci command pnpm audit --audit-level=high --dev + continue-on-error: true + + test: + if: ${{ always() }} + needs: security + runs-on: ubuntu-latest + container: + image: ${{ env.IMAGE }} + + steps: + - uses: actions/checkout@v3 + + - name: Prepare + run: | + pnpm install -g pnpm + pnpm install -g @shipzone/npmci + npmci npm prepare + + - name: Test stable + run: | + npmci node install stable + npmci npm install + npmci npm test + + - name: Test build + run: | + npmci node install stable + npmci npm install + npmci npm build + + release: + needs: test + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + container: + image: ${{ env.IMAGE }} + + steps: + - uses: actions/checkout@v3 + + - name: Prepare + run: | + pnpm install -g pnpm + pnpm install -g @shipzone/npmci + npmci npm prepare + + - name: Release + run: | + npmci node install stable + npmci npm publish + + metadata: + needs: test + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + runs-on: ubuntu-latest + container: + image: ${{ env.IMAGE }} + continue-on-error: true + + steps: + - uses: actions/checkout@v3 + + - name: Prepare + run: | + pnpm install -g pnpm + pnpm install -g @shipzone/npmci + npmci npm prepare + + - name: Code quality + run: | + npmci command npm install -g typescript + npmci npm install + + - name: Trigger + run: npmci trigger + + - name: Build docs and upload artifacts + run: | + npmci node install stable + npmci npm install + pnpm install -g @git.zone/tsdoc + npmci command tsdoc + continue-on-error: true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ef13c79 --- /dev/null +++ b/.gitignore @@ -0,0 +1,20 @@ +.nogit/ + +# artifacts +coverage/ +public/ +pages/ + +# installs +node_modules/ + +# caches +.yarn/ +.cache/ +.rpt2_cache + +# builds +dist/ +dist_*/ + +# custom \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..26e9f92 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "command": "npm test", + "name": "Run npm test", + "request": "launch", + "type": "node-terminal" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..3648eaa --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,26 @@ +{ + "json.schemas": [ + { + "fileMatch": ["/npmextra.json"], + "schema": { + "type": "object", + "properties": { + "npmci": { + "type": "object", + "description": "settings for npmci" + }, + "gitzone": { + "type": "object", + "description": "settings for gitzone", + "properties": { + "projectType": { + "type": "string", + "enum": ["website", "element", "service", "npm", "wcc"] + } + } + } + } + } + } + ] +} diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..5d13c30 --- /dev/null +++ b/html/index.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/html/index.ts b/html/index.ts new file mode 100644 index 0000000..3d9151b --- /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/index.js'; +import * as pages from '../ts_web/pages/index.js'; + +deesWccTools.setupWccTools(elements as any, pages); +deesDomTools.elementBasic.setup(); diff --git a/npmextra.json b/npmextra.json new file mode 100644 index 0000000..c3260cf --- /dev/null +++ b/npmextra.json @@ -0,0 +1,18 @@ +{ + "gitzone": { + "projectType": "wcc", + "module": { + "githost": "gitlab.com", + "gitscope": "signature.digital_private", + "gitrepo": "catalog", + "description": "a catalog containing components for e-signing", + "npmPackagename": "@signature.digital_private/catalog", + "license": "UNLICENSED", + "projectDomain": "signature.digital" + } + }, + "npmci": { + "npmGlobalTools": [], + "npmAccessLevel": "private" + } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..02b83a6 --- /dev/null +++ b/package.json @@ -0,0 +1,46 @@ +{ + "name": "@signature.digital_private/catalog", + "version": "1.0.55", + "private": false, + "description": "a catalog containing components for e-signing", + "main": "dist_ts_web/index.js", + "typings": "dist_ts_web/index.d.ts", + "type": "module", + "scripts": { + "test": "npm run build", + "build": "tsbuild element && tsbundle element --production", + "watch": "tswatch element" + }, + "author": "Task Venture Capital GmbH", + "license": "UNLICENSED", + "dependencies": { + "@designestate/dees-domtools": "^1.0.41", + "@designestate/dees-element": "^1.0.26", + "@designestate/dees-wcctools": "^1.0.37", + "@git.zone/tsrun": "^1.2.12", + "@losslessone_private/loint-pubapi": "^1.0.9", + "@pushrocks/smartexpress": "^3.0.76", + "typescript": "^4.4.3" + }, + "devDependencies": { + "@git.zone/tsbuild": "^2.1.24", + "@git.zone/tsbundle": "^1.0.72", + "@git.zone/tswatch": "^1.0.50", + "@pushrocks/projectinfo": "^4.0.5" + }, + "files": [ + "ts/**/*", + "ts_web/**/*", + "dist/**/*", + "dist_*/**/*", + "dist_ts/**/*", + "dist_ts_web/**/*", + "assets/**/*", + "cli.js", + "npmextra.json", + "readme.md" + ], + "browserslist": [ + "last 1 Chrome versions" + ] +} diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..2350464 --- /dev/null +++ b/readme.md @@ -0,0 +1,31 @@ +# @signature.digital_private/catalog +a catalog containing components for e-signing + +## Availabililty and Links +* [npmjs.org (npm package)](https://www.npmjs.com/package/@signature.digital_private/catalog) +* [gitlab.com (source)](https://gitlab.com/signature.digital_private/catalog) +* [github.com (source mirror)](https://github.com/signature.digital_private/catalog) +* [docs (typedoc)](https://signature.digital_private.gitlab.io/catalog/) + +## Status for master + +Status Category | Status Badge +-- | -- +GitLab Pipelines | [![pipeline status](https://gitlab.com/signature.digital_private/catalog/badges/master/pipeline.svg)](https://lossless.cloud) +GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/signature.digital_private/catalog/badges/master/coverage.svg)](https://lossless.cloud) +npm | [![npm downloads per month](https://badgen.net/npm/dy/@signature.digital_private/catalog)](https://lossless.cloud) +Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/signature.digital_private/catalog)](https://lossless.cloud) +TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud) +node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) +Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud) +PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@signature.digital_private/catalog)](https://lossless.cloud) +PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@signature.digital_private/catalog)](https://lossless.cloud) +BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@signature.digital_private/catalog)](https://lossless.cloud) + +## Usage +Use TypeScript for best in class intellisense +For further information read the linked docs at the top of this readme. + +## Legal +> UNLICENSED licensed | **©** [Task Venture Capital GmbH](https://task.vc) +| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy) diff --git a/ts_web/00_commitinfo_data.ts b/ts_web/00_commitinfo_data.ts new file mode 100644 index 0000000..fc77b18 --- /dev/null +++ b/ts_web/00_commitinfo_data.ts @@ -0,0 +1,8 @@ +/** + * autocreated commitinfo by @pushrocks/commitinfo + */ +export const commitinfo = { + name: '@signature.digital_private/catalog', + version: '1.0.56', + description: 'a catalog containing components for e-signing' +} diff --git a/ts_web/elements/first-element.ts b/ts_web/elements/first-element.ts new file mode 100644 index 0000000..9491fc4 --- /dev/null +++ b/ts_web/elements/first-element.ts @@ -0,0 +1,47 @@ +import { DeesElement, property, html, customElement, TemplateResult, css, cssManager } from '@designestate/dees-element'; +import * as domtools from '@designestate/dees-domtools'; + +declare global { + interface HTMLElementTagNameMap { + 'first-element': FirstElement; + } +} + +@customElement('first-element') +export class FirstElement extends DeesElement { + public static demo = () => html` + + `; + + @property({ + type: String + }) + public aProp: string = 'loading...'; + + + constructor() { + super(); + domtools.DomTools.setupDomTools(); + } + + public static styles = [ + domtools.elementBasic.staticStyles, + css` + :host { + display: block; + background: blue; + color: white; + padding: 10px; + text-align: center; + } + ` + ] + + public render(): TemplateResult { + return html` +
+ ${this.aProp} +
+ `; + } +} \ No newline at end of file diff --git a/ts_web/elements/index.ts b/ts_web/elements/index.ts new file mode 100644 index 0000000..f61e7ee --- /dev/null +++ b/ts_web/elements/index.ts @@ -0,0 +1 @@ +export * from './first-element.js'; diff --git a/ts_web/index.ts b/ts_web/index.ts new file mode 100644 index 0000000..f7edaed --- /dev/null +++ b/ts_web/index.ts @@ -0,0 +1 @@ +export * from './elements/index.js'; diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..dfe5a55 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "experimentalDecorators": true, + "useDefineForClassFields": false, + "target": "ES2022", + "module": "NodeNext", + "moduleResolution": "NodeNext", + "esModuleInterop": true, + "verbatimModuleSyntax": true + }, + "exclude": [ + "dist_*/**/*.d.ts" + ] +}