exploRUG component setup

This commit is contained in:
2026-04-21 14:43:35 +05:45
parent 6bf882733a
commit 987aa51d8d
15 changed files with 8096 additions and 179 deletions

View File

@@ -1,15 +1,19 @@
{
"name": "@lit/lit-starter-ts",
"private": true,
"name": "exploRUG",
"version": "2.0.3",
"description": "A simple web component",
"main": "my-element.js",
"module": "my-element.js",
"main": "dist/exploRUG.js",
"module": "dist/exploRUG.js",
"type": "module",
"exports": {
".": "./dist/exploRUG.js",
"./react": "./dist/exploRUG.js"
},
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"clean": "rimraf my-element.{d.ts,d.ts.map,js,js.map} test/my-element.{d.ts,d.ts.map,js,js.map} test/my-element_test.{d.ts,d.ts.map,js,js.map}",
"build": "vite build",
"build:watch": "vite build --watch",
"dev": "vite",
"clean": "rimraf dist",
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
"lint:eslint": "eslint 'src/**/*.ts'",
"lint:lit-analyzer": "lit-analyzer",
@@ -23,14 +27,11 @@
"docs:serve": "wds --root-dir=docs --node-resolve --watch",
"analyze": "cem analyze --litelement --globs \"src/**/*.ts\"",
"analyze:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --watch",
"serve": "wds --watch",
"serve:prod": "MODE=prod npm run serve",
"test": "npm run test:dev && npm run test:prod",
"test": "tsc && npm run test:dev && npm run test:prod",
"test:dev": "wtr",
"test:watch": "wtr --watch",
"test:prod": "MODE=prod wtr",
"test:prod:watch": "MODE=prod wtr --watch",
"checksize": "rollup -c ; cat my-element.bundled.js | gzip -9 | wc -c ; rm my-element.bundled.js"
"test:prod:watch": "MODE=prod wtr --watch"
},
"keywords": [
"web-components",
@@ -40,17 +41,26 @@
],
"author": "Google LLC",
"license": "BSD-3-Clause",
"peerDependencies": {
"@lit/react": "^1.0.0",
"lit": "^3.0.0",
"react": "^18.0.0"
},
"dependencies": {
"lit": "^3.2.0"
"javascript-obfuscator": "^5.4.1",
"lit": "^3.2.0",
"rollup-plugin-obfuscator": "^1.1.0"
},
"devDependencies": {
"@11ty/eleventy": "^1.0.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^4.0.0",
"@custom-elements-manifest/analyzer": "^0.6.3",
"@lit/react": "^1.0.0",
"@open-wc/testing": "^4.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.7",
"@rollup/plugin-terser": "^0.4.4",
"@types/react": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"@web/dev-server": "^0.1.31",
@@ -61,10 +71,13 @@
"eslint": "^8.15.0",
"lit-analyzer": "^1.2.1",
"prettier": "^2.6.2",
"react": "^18.0.0",
"rimraf": "^3.0.2",
"rollup": "^4.18.0",
"rollup-plugin-summary": "^2.0.1",
"typescript": "~5.9.0"
"typescript": "~5.9.0",
"vite": "^5.0.0",
"vite-plugin-dts": "^3.0.0"
},
"customElements": "custom-elements.json"
}