UNPKG

web-component-wrapper

Version:

Generic web-component base class and framework specific wrapper.

199 lines 6.14 kB
{ "name": "web-component-wrapper", "version": "0.0.517", "description": "Generic web-component base class and framework specific wrapper.", "keywords": [ "component", "decouple", "encapsulate", "isolate", "native", "web", "webcomponent", "web-component" ], "homepage": "https://torben.website/web-component-wrapper", "bugs": { "email": "info@torben.website", "url": "https://github.com/thaibault/web-component-wrapper/issues" }, "license": "CC-BY-3.0", "author": { "name": "Torben Sickert", "email": "info@torben.website", "url": "https://torben.website" }, "files": [ "decorator.d.ts", "decorator.js", "decoratorNext.js", "index.d.ts", "index.js", "indexNext.js", "polyfill.html.ejs", "ReactWeb.d.ts", "ReactWeb.js", "ReactWebNext.js", "Web.d.ts", "Web.js", "WebNext.js", "type.d.ts" ], "repository": { "type": "git", "url": "https://github.com/thaibault/web-component-wrapper" }, "scripts": { "build": "yarn build:types; yarn build:plain", "build:bundle": "yarn build:types; yarn build:bundle:plain", "build:bundle:plain": "weboptimizer build '{__reference__: \"target:bundle\"}'; yarn build:next", "build:plain": "weboptimizer build; yarn build:next", "build:next": "weboptimizer build '{__reference__: \"target:next\"}'", "build:types": "weboptimizer build:types", "check": "yarn check:types; yarn lint", "check:types": "weboptimizer check:types", "clear": "weboptimizer clear", "document": "weboptimizer document", "lint": "weboptimizer lint", "prepare": "yarn build", "serve": "weboptimizer serve", "start": "yarn serve", "test": "yarn clear; weboptimizer test", "test:browser": "yarn clear; weboptimizer test:browser", "test:coverage": "yarn clear; weboptimizer test:coverage", "test:coverage:report": "yarn clear; weboptimizer test:coverage:report", "update:documentation": "documentation-website", "watch": "weboptimizer build --watch" }, "runkitExample": "require('@babel/runtime/package.json')\n\nconst {Web} = require('web-component-wrapper')\n\nWeb.hasCode('<div>${expression}</div>')", "devDependencies": { "@babel/eslint-parser": "^7.27.0", "@babel/runtime": "^7.27.0", "@stylistic/eslint-plugin-ts": "^4.2.0", "@types/ejs": "^3.1.5", "@types/html-minifier": "^4.0.5", "@types/jsdom": "^21.1.7", "@types/node": "^22.15.3", "@types/react": "^19.1.2", "@types/react-dom": "^19.1.2", "@types/webpack-env": "^1.18.8", "@typescript-eslint/eslint-plugin": "^8.31.0", "@typescript-eslint/parser": "^8.31.0", "@webcomponents/webcomponentsjs": "^2.8.0", "clientnode": "^3.0.1277", "documentation-website": "^1.0.345", "eslint": "^9.25.1", "eslint-config-google": "^0.14.0", "eslint-plugin-jsdoc": "^50.6.11", "jest": "^29.7.0", "jsdoc": "^4.0.4", "prop-types": "^15.8.1", "react": "^19.1.0", "react-dom": "^19.1.0", "typescript-eslint": "^8.31.0", "weboptimizer": "^2.0.1579", "webpack-dev-server": "^5.2.1" }, "peerDependencies": { "@babel/runtime": "*", "@types/react": "*", "@types/react-dom": "*", "clientnode": "*", "react": "*", "react-dom": "*" }, "peerDependenciesMeta": { "@babel/runtime": { "optional": true }, "@types/react": { "optional": true }, "@types/react-dom": { "optional": true }, "react": { "optional": true }, "react-dom": { "optional": true } }, "engines": { "node": ">=20", "npm": ">=10", "yarn": ">=4" }, "resolutions": { "colors": "1.4.0", "globals@npm:^9.18.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch", "globals@npm:^11.1.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch", "globals@npm:^14.0.0": "patch:globals@npm%3A11.12.0#~/.yarn/patches/globals-npm-11.12.0-1fa7f41a6c.patch" }, "sideEffects": false, "documentationWebsite": { "tagline": "Encapsulate your components as web-components.", "trackingCode": "TODO" }, "webOptimizer": { "commandLine": { "test": { "environments": [ "jsdom" ] } }, "generic": { "supportedBrowsers": [ "IE >= 11", "last 2 versions", "> 5%" ] }, "injection": { "entry": { "__evaluate__": "2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2].startsWith('test') ? {testBundle: './test.ts'} : 2 < self.givenCommandLineArguments.length && self.givenCommandLineArguments[2] === 'serve' ? {clientnode: 'clientnode', index: './index'} : '__auto__'" } }, "module": { "optimizer": { "babelMinify": { "#": "To provide a logging output we need to exclude this feature.", "__evaluate__": "self.debug ? {bundle: null, module: null} : {bundle: {transform: {removeConsole: false}}, module: /*NOTE: Wrongly produces a void function around 'getAttributeNames': {removeConsole: false}*/null}" } } }, "target:bundle": { "inPlace": { "externalLibrary": { "dynamic": true, "normal": true } }, "module": { "preprocessor": { "javaScript": { "options": { "plugins": { "__remove__": "@babel/plugin-transform-runtime" } } } } } }, "target:next": { "generic": { "supportedBrowsers": [ "browserslist config and supports es6-class" ] }, "injection": { "entry": { "__evaluate__": "{decoratorNext: './decorator.ts', indexNext: './index.ts', ReactWebNext: './ReactWeb.ts', WebNext: './Web.ts'}" } } } }, "packageManager": "yarn@4.9.1+sha512.f95ce356460e05be48d66401c1ae64ef84d163dd689964962c6888a9810865e39097a5e9de748876c2e0bf89b232d583c33982773e9903ae7a76257270986538" }