377 lines
11 KiB
JSON
377 lines
11 KiB
JSON
{
|
|
"name": "@lit/reactive-element",
|
|
"version": "1.6.3",
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"description": "A simple low level base class for creating fast, lightweight web components",
|
|
"license": "BSD-3-Clause",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/lit/lit.git",
|
|
"directory": "packages/reactive-element"
|
|
},
|
|
"author": "Google LLC",
|
|
"homepage": "https://lit.dev/",
|
|
"main": "reactive-element.js",
|
|
"module": "reactive-element.js",
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./development/reactive-element.d.ts",
|
|
"node": {
|
|
"development": "./node/development/reactive-element.js",
|
|
"default": "./node/reactive-element.js"
|
|
},
|
|
"development": "./development/reactive-element.js",
|
|
"default": "./reactive-element.js"
|
|
},
|
|
"./css-tag.js": {
|
|
"types": "./development/css-tag.d.ts",
|
|
"node": {
|
|
"development": "./node/development/css-tag.js",
|
|
"default": "./node/css-tag.js"
|
|
},
|
|
"development": "./development/css-tag.js",
|
|
"default": "./css-tag.js"
|
|
},
|
|
"./decorators.js": {
|
|
"types": "./development/decorators.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators.js",
|
|
"default": "./node/decorators.js"
|
|
},
|
|
"development": "./development/decorators.js",
|
|
"default": "./decorators.js"
|
|
},
|
|
"./decorators/base.js": {
|
|
"types": "./development/decorators/base.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/base.js",
|
|
"default": "./node/decorators/base.js"
|
|
},
|
|
"development": "./development/decorators/base.js",
|
|
"default": "./decorators/base.js"
|
|
},
|
|
"./decorators/custom-element.js": {
|
|
"types": "./development/decorators/custom-element.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/custom-element.js",
|
|
"default": "./node/decorators/custom-element.js"
|
|
},
|
|
"development": "./development/decorators/custom-element.js",
|
|
"default": "./decorators/custom-element.js"
|
|
},
|
|
"./decorators/event-options.js": {
|
|
"types": "./development/decorators/event-options.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/event-options.js",
|
|
"default": "./node/decorators/event-options.js"
|
|
},
|
|
"development": "./development/decorators/event-options.js",
|
|
"default": "./decorators/event-options.js"
|
|
},
|
|
"./decorators/property.js": {
|
|
"types": "./development/decorators/property.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/property.js",
|
|
"default": "./node/decorators/property.js"
|
|
},
|
|
"development": "./development/decorators/property.js",
|
|
"default": "./decorators/property.js"
|
|
},
|
|
"./decorators/query-all.js": {
|
|
"types": "./development/decorators/query-all.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/query-all.js",
|
|
"default": "./node/decorators/query-all.js"
|
|
},
|
|
"development": "./development/decorators/query-all.js",
|
|
"default": "./decorators/query-all.js"
|
|
},
|
|
"./decorators/query-assigned-elements.js": {
|
|
"types": "./development/decorators/query-assigned-elements.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/query-assigned-elements.js",
|
|
"default": "./node/decorators/query-assigned-elements.js"
|
|
},
|
|
"development": "./development/decorators/query-assigned-elements.js",
|
|
"default": "./decorators/query-assigned-elements.js"
|
|
},
|
|
"./decorators/query-assigned-nodes.js": {
|
|
"types": "./development/decorators/query-assigned-nodes.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/query-assigned-nodes.js",
|
|
"default": "./node/decorators/query-assigned-nodes.js"
|
|
},
|
|
"development": "./development/decorators/query-assigned-nodes.js",
|
|
"default": "./decorators/query-assigned-nodes.js"
|
|
},
|
|
"./decorators/query-async.js": {
|
|
"types": "./development/decorators/query-async.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/query-async.js",
|
|
"default": "./node/decorators/query-async.js"
|
|
},
|
|
"development": "./development/decorators/query-async.js",
|
|
"default": "./decorators/query-async.js"
|
|
},
|
|
"./decorators/query.js": {
|
|
"types": "./development/decorators/query.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/query.js",
|
|
"default": "./node/decorators/query.js"
|
|
},
|
|
"development": "./development/decorators/query.js",
|
|
"default": "./decorators/query.js"
|
|
},
|
|
"./decorators/state.js": {
|
|
"types": "./development/decorators/state.d.ts",
|
|
"node": {
|
|
"development": "./node/development/decorators/state.js",
|
|
"default": "./node/decorators/state.js"
|
|
},
|
|
"development": "./development/decorators/state.js",
|
|
"default": "./decorators/state.js"
|
|
},
|
|
"./polyfill-support.js": {
|
|
"types": "./development/polyfill-support.d.ts",
|
|
"node": {
|
|
"development": "./node/development/polyfill-support.js",
|
|
"default": "./node/polyfill-support.js"
|
|
},
|
|
"development": "./development/polyfill-support.js",
|
|
"default": "./polyfill-support.js"
|
|
},
|
|
"./reactive-controller.js": {
|
|
"types": "./development/reactive-controller.d.ts",
|
|
"node": {
|
|
"development": "./node/development/reactive-controller.js",
|
|
"default": "./node/reactive-controller.js"
|
|
},
|
|
"development": "./development/reactive-controller.js",
|
|
"default": "./reactive-controller.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "wireit",
|
|
"build:ts": "wireit",
|
|
"build:ts:types": "wireit",
|
|
"build:rollup": "wireit",
|
|
"build:babel": "wireit",
|
|
"check-version": "wireit",
|
|
"checksize": "wireit",
|
|
"prepublishOnly": "npm run check-version",
|
|
"test": "wireit",
|
|
"test:dev": "wireit",
|
|
"test:prod": "wireit",
|
|
"test:node": "wireit",
|
|
"test:node-dev": "wireit",
|
|
"test:node-dom-shim": "wireit",
|
|
"test:node-dom-shim-dev": "wireit"
|
|
},
|
|
"wireit": {
|
|
"build": {
|
|
"dependencies": [
|
|
"build:rollup",
|
|
"build:babel",
|
|
"build:ts",
|
|
"build:ts:types"
|
|
]
|
|
},
|
|
"build:ts": {
|
|
"#comment": "Note this also builds polyfill-support via a TypeScript project reference.",
|
|
"command": "tsc --build --pretty",
|
|
"clean": "if-file-deleted",
|
|
"dependencies": [
|
|
"../labs/testing:build:ts:utils",
|
|
"../labs/ssr-dom-shim:build:ts"
|
|
],
|
|
"files": [
|
|
"src/**/*.ts",
|
|
"tsconfig.json",
|
|
"tsconfig.polyfill-support.json"
|
|
],
|
|
"output": [
|
|
"development/**/*.{js,js.map,d.ts,d.ts.map}",
|
|
"!development/test/decorators-babel",
|
|
"tsconfig.tsbuildinfo",
|
|
"tsconfig.polyfill-support.tsbuildinfo"
|
|
]
|
|
},
|
|
"build:ts:types": {
|
|
"command": "treemirror development . \"**/*.d.ts{,.map}\"",
|
|
"dependencies": [
|
|
"../internal-scripts:build",
|
|
"build:ts"
|
|
],
|
|
"files": [],
|
|
"output": [
|
|
"*.d.ts{,.map}",
|
|
"decorators/*.d.ts{,.map}"
|
|
]
|
|
},
|
|
"build:rollup": {
|
|
"command": "rollup -c",
|
|
"dependencies": [
|
|
"build:ts"
|
|
],
|
|
"files": [
|
|
"rollup.config.js",
|
|
"../../rollup-common.js",
|
|
"src/test/*_test.html",
|
|
"src/test/polyfill-support/*_test.html"
|
|
],
|
|
"output": [
|
|
"css-tag.js{,.map}",
|
|
"decorators.js{,.map}",
|
|
"polyfill-support.js{,.map}",
|
|
"reactive-controller.js{,.map}",
|
|
"reactive-element.js{,.map}",
|
|
"decorators/*.js{,.map}",
|
|
"test/*_test.html",
|
|
"development/test/*_test.html",
|
|
"test/polyfill-support/*_test.html",
|
|
"development/test/polyfill-support/*_test.html",
|
|
"node/"
|
|
]
|
|
},
|
|
"build:babel": {
|
|
"command": "babel --extensions .ts src/test/decorators --out-dir development/test/decorators-babel",
|
|
"files": [
|
|
"src/test/decorators/**/*.ts"
|
|
],
|
|
"output": [
|
|
"development/test/decorators-babel"
|
|
]
|
|
},
|
|
"checksize": {
|
|
"command": "rollup -c --environment=CHECKSIZE",
|
|
"dependencies": [
|
|
"build:ts"
|
|
],
|
|
"files": [
|
|
"rollup.config.js",
|
|
"../../rollup-common.js"
|
|
],
|
|
"output": []
|
|
},
|
|
"check-version": {
|
|
"command": "node scripts/check-version-tracker.js",
|
|
"files": [
|
|
"scripts/check-version-tracker.js",
|
|
"package.json",
|
|
"src/reactive-element.ts"
|
|
],
|
|
"output": []
|
|
},
|
|
"test": {
|
|
"dependencies": [
|
|
"test:dev",
|
|
"test:prod",
|
|
"test:node",
|
|
"test:node-dev",
|
|
"test:node-dom-shim",
|
|
"test:node-dom-shim-dev",
|
|
"check-version"
|
|
]
|
|
},
|
|
"test:dev": {
|
|
"command": "MODE=dev node ../tests/run-web-tests.js \"development/**/*_test.(js|html)\" --config ../tests/web-test-runner.config.js",
|
|
"dependencies": [
|
|
"build:ts",
|
|
"build:babel",
|
|
"../tests:build"
|
|
],
|
|
"env": {
|
|
"BROWSERS": {
|
|
"external": true
|
|
}
|
|
},
|
|
"files": [],
|
|
"output": []
|
|
},
|
|
"test:prod": {
|
|
"command": "MODE=prod node ../tests/run-web-tests.js \"development/**/*_test.(js|html)\" --config ../tests/web-test-runner.config.js",
|
|
"dependencies": [
|
|
"build:ts",
|
|
"build:rollup",
|
|
"build:babel",
|
|
"../tests:build"
|
|
],
|
|
"env": {
|
|
"BROWSERS": {
|
|
"external": true
|
|
}
|
|
},
|
|
"files": [],
|
|
"output": []
|
|
},
|
|
"test:node": {
|
|
"command": "node development/test/node-imports.js",
|
|
"dependencies": [
|
|
"build:ts",
|
|
"build:rollup"
|
|
],
|
|
"files": [],
|
|
"output": []
|
|
},
|
|
"test:node-dev": {
|
|
"command": "node --conditions=development development/test/node-imports.js",
|
|
"dependencies": [
|
|
"build:ts",
|
|
"build:rollup"
|
|
],
|
|
"files": [],
|
|
"output": []
|
|
},
|
|
"test:node-dom-shim": {
|
|
"command": "node development/test/node-dom-shim.js",
|
|
"dependencies": [
|
|
"build:ts",
|
|
"build:rollup"
|
|
],
|
|
"files": [],
|
|
"output": []
|
|
},
|
|
"test:node-dom-shim-dev": {
|
|
"command": "node --conditions=development development/test/node-dom-shim.js",
|
|
"dependencies": [
|
|
"build:ts",
|
|
"build:rollup"
|
|
],
|
|
"files": [],
|
|
"output": []
|
|
}
|
|
},
|
|
"files": [
|
|
"/css-tag.{d.ts,d.ts.map,js,js.map}",
|
|
"/decorators.{d.ts,d.ts.map,js,js.map}",
|
|
"/polyfill-support.{d.ts,d.ts.map,js,js.map}",
|
|
"/reactive-controller.{d.ts,d.ts.map,js,js.map}",
|
|
"/reactive-element.{d.ts,d.ts.map,js,js.map}",
|
|
"/decorators/",
|
|
"/development/",
|
|
"!/development/test/",
|
|
"/node/"
|
|
],
|
|
"dependencies": {
|
|
"@lit-labs/ssr-dom-shim": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.14.6",
|
|
"@babel/core": "^7.14.6",
|
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
"@babel/plugin-proposal-decorators": "^7.14.5",
|
|
"@babel/plugin-transform-typescript": "^7.14.6",
|
|
"@webcomponents/shadycss": "^1.8.0",
|
|
"@webcomponents/template": "^1.4.4",
|
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
|
"@lit-internal/scripts": "^1.0.0"
|
|
},
|
|
"typings": "reactive-element.d.ts",
|
|
"directories": {
|
|
"test": "test"
|
|
}
|
|
}
|