fix(build): modernize project configuration, dependencies, and node-based test setup

This commit is contained in:
2026-05-01 18:10:45 +00:00
parent d10ec8d81f
commit 4209d7767b
11 changed files with 4903 additions and 3721 deletions
+40
View File
@@ -0,0 +1,40 @@
{
"@git.zone/cli": {
"projectType": "npm",
"module": {
"githost": "code.foss.global",
"gitscope": "push.rocks",
"gitrepo": "smartntml",
"shortDescription": "backend lit-html renderer",
"description": "Provides lit-html rendering capabilities for backend applications.",
"npmPackagename": "@push.rocks/smartntml",
"license": "MIT",
"projectDomain": "push.rocks",
"keywords": [
"backend rendering",
"lit-html",
"template rendering",
"server-side rendering",
"html template",
"web components",
"happy-dom",
"indexeddb",
"typescript"
]
},
"release": {
"registries": [
"https://verdaccio.lossless.digital",
"https://registry.npmjs.org"
],
"accessLevel": "public"
}
},
"@ship.zone/szci": {
"npmGlobalTools": [],
"npmRegistryUrl": "registry.npmjs.org"
},
"@git.zone/tsdoc": {
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
}
}
+7
View File
@@ -1,5 +1,12 @@
# Changelog # Changelog
## 2026-05-01 - 2.0.9 - fix(build)
modernize project configuration, dependencies, and node-based test setup
- adds package exports and includes .smartconfig.json and license in published files
- updates build and test tooling to current @git.zone packages and enables stricter TypeScript settings
- migrates tests to a Node-focused happy-dom setup using @git.zone/tstest and removes obsolete smartpromise usage
## 2024-10-13 - 2.0.8 - fix(core) ## 2024-10-13 - 2.0.8 - fix(core)
Updated dependencies and optimized code structure Updated dependencies and optimized code structure
+16 -6
View File
@@ -1,9 +1,19 @@
The MIT License (MIT) Copyright (c) 2026 Task Venture Capital GmbH <hello@task.vc>
Copyright 2022 Lossless GmbH <hello@lossless.com> Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+13 -5
View File
@@ -1,10 +1,11 @@
{ {
"gitzone": { "@git.zone/cli": {
"projectType": "npm", "projectType": "npm",
"module": { "module": {
"githost": "code.foss.global", "githost": "code.foss.global",
"gitscope": "push.rocks", "gitscope": "push.rocks",
"gitrepo": "smartntml", "gitrepo": "smartntml",
"shortDescription": "backend lit-html renderer",
"description": "Provides lit-html rendering capabilities for backend applications.", "description": "Provides lit-html rendering capabilities for backend applications.",
"npmPackagename": "@push.rocks/smartntml", "npmPackagename": "@push.rocks/smartntml",
"license": "MIT", "license": "MIT",
@@ -20,13 +21,20 @@
"indexeddb", "indexeddb",
"typescript" "typescript"
] ]
},
"release": {
"registries": [
"https://verdaccio.lossless.digital",
"https://registry.npmjs.org"
],
"accessLevel": "public"
} }
}, },
"npmci": { "@ship.zone/szci": {
"npmGlobalTools": [], "npmGlobalTools": [],
"npmAccessLevel": "public" "npmRegistryUrl": "registry.npmjs.org"
}, },
"tsdoc": { "@git.zone/tsdoc": {
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n" "legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
} }
} }
+15 -13
View File
@@ -3,29 +3,29 @@
"version": "2.0.8", "version": "2.0.8",
"private": false, "private": false,
"description": "Provides lit-html rendering capabilities for backend applications.", "description": "Provides lit-html rendering capabilities for backend applications.",
"exports": {
".": "./dist_ts/index.js"
},
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",
"type": "module", "type": "module",
"author": "Lossless GmbH", "author": "Task Venture Capital GmbH <hello@task.vc>",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/ --web)", "test": "tstest test/",
"build": "(tsbuild --web --allowimplicitany)", "build": "tsbuild --web",
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^2.1.84", "@git.zone/tsbuild": "^4.4.0",
"@git.zone/tsbundle": "^2.0.7", "@git.zone/tsrun": "^2.0.3",
"@git.zone/tsrun": "^1.2.49", "@git.zone/tstest": "^3.6.3",
"@git.zone/tstest": "^1.0.73", "@types/node": "^25.6.0"
"@push.rocks/tapbundle": "^5.3.0",
"@types/node": "^22.7.5"
}, },
"dependencies": { "dependencies": {
"@design.estate/dees-element": "^2.0.39", "@design.estate/dees-element": "^2.2.4",
"@happy-dom/global-registrator": "^15.7.4", "@happy-dom/global-registrator": "^20.9.0",
"@push.rocks/smartpromise": "^4.0.3", "fake-indexeddb": "^6.2.5"
"fake-indexeddb": "^6.0.0"
}, },
"browserslist": [ "browserslist": [
"last 1 chrome versions" "last 1 chrome versions"
@@ -39,6 +39,8 @@
"dist_ts_web/**/*", "dist_ts_web/**/*",
"assets/**/*", "assets/**/*",
"cli.js", "cli.js",
".smartconfig.json",
"license",
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
], ],
+4798 -3679
View File
File diff suppressed because it is too large Load Diff
+10 -6
View File
@@ -1,8 +1,16 @@
import { expect, expectAsync, tap } from '@push.rocks/tapbundle'; import { tap } from '@git.zone/tstest/tapbundle';
import { GlobalRegistrator } from '@happy-dom/global-registrator';
import * as smartntml from '../ts/index.js'; import * as smartntml from '../ts/index.js';
let testSmartntmlInstance: smartntml.Smartntml; let testSmartntmlInstance: smartntml.Smartntml;
tap.registerCleanup(async () => {
if (GlobalRegistrator.isRegistered) {
await GlobalRegistrator.unregister();
}
await tap.stopForcefully(0);
});
tap.test('first test', async () => { tap.test('first test', async () => {
testSmartntmlInstance = new smartntml.Smartntml(); testSmartntmlInstance = new smartntml.Smartntml();
}); });
@@ -17,8 +25,4 @@ tap.test('should render a string', async () => {
console.log(stringResult); console.log(stringResult);
}); });
tap.test('should log', async () => { export default tap.start();
setTimeout(() => process.exit(0), 0);
});
tap.start();
+1 -1
View File
@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartntml', name: '@push.rocks/smartntml',
version: '2.0.8', version: '2.0.9',
description: 'Provides lit-html rendering capabilities for backend applications.' description: 'Provides lit-html rendering capabilities for backend applications.'
} }
-3
View File
@@ -1,8 +1,5 @@
// @ts-ignore
import './instrument/happydom.js'; import './instrument/happydom.js';
import { Smartntml } from './classes.smartntml.js'; import { Smartntml } from './classes.smartntml.js';
export { Smartntml }; export { Smartntml };
import * as deesElement from '@design.estate/dees-element'; import * as deesElement from '@design.estate/dees-element';
export { deesElement }; export { deesElement };
-7
View File
@@ -1,11 +1,4 @@
// @pushrocks scope
import * as smartpromise from '@push.rocks/smartpromise';
export { smartpromise };
// designestate // designestate
import * as deesElement from '@design.estate/dees-element'; import * as deesElement from '@design.estate/dees-element';
export { deesElement }; export { deesElement };
// third party scope
+3 -1
View File
@@ -5,8 +5,10 @@
"target": "ES2022", "target": "ES2022",
"module": "NodeNext", "module": "NodeNext",
"moduleResolution": "NodeNext", "moduleResolution": "NodeNext",
"noImplicitAny": true,
"esModuleInterop": true, "esModuleInterop": true,
"verbatimModuleSyntax": true "verbatimModuleSyntax": true,
"types": ["node"]
}, },
"exclude": [ "exclude": [
"dist_*/**/*.d.ts" "dist_*/**/*.d.ts"