package.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. {
  2. "name": "lit",
  3. "version": "3.3.3",
  4. "publishConfig": {
  5. "access": "public"
  6. },
  7. "description": "A library for building fast, lightweight web components",
  8. "license": "BSD-3-Clause",
  9. "repository": {
  10. "type": "git",
  11. "url": "git+https://github.com/lit/lit.git",
  12. "directory": "packages/lit"
  13. },
  14. "author": "Google LLC",
  15. "homepage": "https://lit.dev/",
  16. "main": "index.js",
  17. "module": "index.js",
  18. "type": "module",
  19. "exports": {
  20. ".": {
  21. "types": "./development/index.d.ts",
  22. "default": "./index.js"
  23. },
  24. "./async-directive.js": {
  25. "types": "./development/async-directive.d.ts",
  26. "default": "./async-directive.js"
  27. },
  28. "./decorators.js": {
  29. "types": "./development/decorators.d.ts",
  30. "default": "./decorators.js"
  31. },
  32. "./decorators/custom-element.js": {
  33. "types": "./development/decorators/custom-element.d.ts",
  34. "default": "./decorators/custom-element.js"
  35. },
  36. "./decorators/event-options.js": {
  37. "types": "./development/decorators/event-options.d.ts",
  38. "default": "./decorators/event-options.js"
  39. },
  40. "./decorators/property.js": {
  41. "types": "./development/decorators/property.d.ts",
  42. "default": "./decorators/property.js"
  43. },
  44. "./decorators/query-all.js": {
  45. "types": "./development/decorators/query-all.d.ts",
  46. "default": "./decorators/query-all.js"
  47. },
  48. "./decorators/query-assigned-elements.js": {
  49. "types": "./development/decorators/query-assigned-elements.d.ts",
  50. "default": "./decorators/query-assigned-elements.js"
  51. },
  52. "./decorators/query-assigned-nodes.js": {
  53. "types": "./development/decorators/query-assigned-nodes.d.ts",
  54. "default": "./decorators/query-assigned-nodes.js"
  55. },
  56. "./decorators/query-async.js": {
  57. "types": "./development/decorators/query-async.d.ts",
  58. "default": "./decorators/query-async.js"
  59. },
  60. "./decorators/query.js": {
  61. "types": "./development/decorators/query.d.ts",
  62. "default": "./decorators/query.js"
  63. },
  64. "./decorators/state.js": {
  65. "types": "./development/decorators/state.d.ts",
  66. "default": "./decorators/state.js"
  67. },
  68. "./directive-helpers.js": {
  69. "types": "./development/directive-helpers.d.ts",
  70. "default": "./directive-helpers.js"
  71. },
  72. "./directive.js": {
  73. "types": "./development/directive.d.ts",
  74. "default": "./directive.js"
  75. },
  76. "./directives/async-append.js": {
  77. "types": "./development/directives/async-append.d.ts",
  78. "default": "./directives/async-append.js"
  79. },
  80. "./directives/async-replace.js": {
  81. "types": "./development/directives/async-replace.d.ts",
  82. "default": "./directives/async-replace.js"
  83. },
  84. "./directives/cache.js": {
  85. "types": "./development/directives/cache.d.ts",
  86. "default": "./directives/cache.js"
  87. },
  88. "./directives/choose.js": {
  89. "types": "./development/directives/choose.d.ts",
  90. "default": "./directives/choose.js"
  91. },
  92. "./directives/class-map.js": {
  93. "types": "./development/directives/class-map.d.ts",
  94. "default": "./directives/class-map.js"
  95. },
  96. "./directives/guard.js": {
  97. "types": "./development/directives/guard.d.ts",
  98. "default": "./directives/guard.js"
  99. },
  100. "./directives/if-defined.js": {
  101. "types": "./development/directives/if-defined.d.ts",
  102. "default": "./directives/if-defined.js"
  103. },
  104. "./directives/join.js": {
  105. "types": "./development/directives/join.d.ts",
  106. "default": "./directives/join.js"
  107. },
  108. "./directives/keyed.js": {
  109. "types": "./development/directives/keyed.d.ts",
  110. "default": "./directives/keyed.js"
  111. },
  112. "./directives/live.js": {
  113. "types": "./development/directives/live.d.ts",
  114. "default": "./directives/live.js"
  115. },
  116. "./directives/map.js": {
  117. "types": "./development/directives/map.d.ts",
  118. "default": "./directives/map.js"
  119. },
  120. "./directives/range.js": {
  121. "types": "./development/directives/range.d.ts",
  122. "default": "./directives/range.js"
  123. },
  124. "./directives/ref.js": {
  125. "types": "./development/directives/ref.d.ts",
  126. "default": "./directives/ref.js"
  127. },
  128. "./directives/repeat.js": {
  129. "types": "./development/directives/repeat.d.ts",
  130. "default": "./directives/repeat.js"
  131. },
  132. "./directives/style-map.js": {
  133. "types": "./development/directives/style-map.d.ts",
  134. "default": "./directives/style-map.js"
  135. },
  136. "./directives/template-content.js": {
  137. "types": "./development/directives/template-content.d.ts",
  138. "default": "./directives/template-content.js"
  139. },
  140. "./directives/unsafe-html.js": {
  141. "types": "./development/directives/unsafe-html.d.ts",
  142. "default": "./directives/unsafe-html.js"
  143. },
  144. "./directives/unsafe-mathml.js": {
  145. "types": "./development/directives/unsafe-mathml.d.ts",
  146. "default": "./directives/unsafe-mathml.js"
  147. },
  148. "./directives/unsafe-svg.js": {
  149. "types": "./development/directives/unsafe-svg.d.ts",
  150. "default": "./directives/unsafe-svg.js"
  151. },
  152. "./directives/until.js": {
  153. "types": "./development/directives/until.d.ts",
  154. "default": "./directives/until.js"
  155. },
  156. "./directives/when.js": {
  157. "types": "./development/directives/when.d.ts",
  158. "default": "./directives/when.js"
  159. },
  160. "./html.js": {
  161. "types": "./development/html.d.ts",
  162. "default": "./html.js"
  163. },
  164. "./polyfill-support.js": {
  165. "types": "./development/polyfill-support.d.ts",
  166. "default": "./polyfill-support.js"
  167. },
  168. "./static-html.js": {
  169. "types": "./development/static-html.d.ts",
  170. "default": "./static-html.js"
  171. }
  172. },
  173. "scripts": {
  174. "build": "wireit",
  175. "build:ts": "wireit",
  176. "build:ts:types": "wireit",
  177. "build:rollup": "wireit",
  178. "checksize": "wireit",
  179. "test": "wireit",
  180. "test:dev": "wireit",
  181. "test:prod": "wireit",
  182. "test:node": "wireit",
  183. "test:node-dev": "wireit"
  184. },
  185. "wireit": {
  186. "build": {
  187. "dependencies": [
  188. "build:rollup",
  189. "build:ts",
  190. "build:ts:types",
  191. "../lit-html:build",
  192. "../lit-element:build",
  193. "../reactive-element:build"
  194. ]
  195. },
  196. "build:ts": {
  197. "#comment": "Note this also builds polyfill-support via a TypeScript project reference.",
  198. "command": "tsc --build --pretty",
  199. "clean": "if-file-deleted",
  200. "dependencies": [
  201. "../lit-element:build:ts:types",
  202. "../lit-html:build:ts:types",
  203. "../reactive-element:build:ts:types"
  204. ],
  205. "files": [
  206. "src/**/*.ts",
  207. "tsconfig.json",
  208. "tsconfig.polyfill-support.json"
  209. ],
  210. "output": [
  211. "development/**/*.{js,js.map,d.ts,d.ts.map}",
  212. "tsconfig.tsbuildinfo",
  213. "tsconfig.polyfill-support.tsbuildinfo"
  214. ]
  215. },
  216. "build:ts:types": {
  217. "command": "treemirror development . \"**/*.d.ts{,.map}\"",
  218. "dependencies": [
  219. "../internal-scripts:build",
  220. "build:ts"
  221. ],
  222. "files": [],
  223. "output": [
  224. "*.d.ts{,.map}",
  225. "decorators/*.d.ts{,.map}",
  226. "directives/*.d.ts{,.map}"
  227. ]
  228. },
  229. "build:rollup": {
  230. "command": "rollup -c",
  231. "dependencies": [
  232. "build:ts"
  233. ],
  234. "files": [
  235. "rollup.config.js",
  236. "../../rollup-common.js",
  237. "src/test/*_test.html",
  238. "src/test/polyfill-support/*_test.html"
  239. ],
  240. "output": [
  241. "async-directive.js{,.map}",
  242. "decorators.js{,.map}",
  243. "directive-helpers.js{,.map}",
  244. "directive.js{,.map}",
  245. "html.js{,.map}",
  246. "index.js{,.map}",
  247. "polyfill-support.js{,.map}",
  248. "static-html.js{,.map}",
  249. "decorators/*.js{,.map}",
  250. "directives/*.js{,.map}",
  251. "test/*_test.html",
  252. "development/test/*_test.html",
  253. "test/polyfill-support/*_test.html",
  254. "development/test/polyfill-support/*_test.html",
  255. "lit-core.min.js{,.map}",
  256. "lit-all.min.js{,.map}"
  257. ]
  258. },
  259. "checksize": {
  260. "command": "rollup -c --environment=CHECKSIZE",
  261. "dependencies": [
  262. "build:ts"
  263. ],
  264. "files": [
  265. "rollup.config.js",
  266. "../../rollup-common.js"
  267. ],
  268. "output": []
  269. },
  270. "test": {
  271. "dependencies": [
  272. "test:dev",
  273. "test:prod",
  274. "test:node",
  275. "test:node-dev"
  276. ]
  277. },
  278. "test:dev": {
  279. "#comment": "TODO(aomarks) There is only one lit html test, and it doesn't work",
  280. "command": "MODE=dev node ../tests/run-web-tests.js \"development/**/*_test.(js|html)\" --config ../tests/web-test-runner.config.js",
  281. "dependencies": [
  282. "build:ts",
  283. "../tests:build"
  284. ],
  285. "env": {
  286. "BROWSERS": {
  287. "external": true
  288. }
  289. },
  290. "files": [],
  291. "output": []
  292. },
  293. "test:prod": {
  294. "command": "MODE=prod node ../tests/run-web-tests.js \"development/**/*_test.(js|html)\" --config ../tests/web-test-runner.config.js",
  295. "dependencies": [
  296. "../lit-element:build:rollup",
  297. "../lit-html:build:rollup",
  298. "../reactive-element:build:rollup",
  299. "build:ts",
  300. "build:rollup",
  301. "../tests:build"
  302. ],
  303. "env": {
  304. "BROWSERS": {
  305. "external": true
  306. }
  307. },
  308. "files": [],
  309. "output": []
  310. },
  311. "test:node": {
  312. "command": "node development/test/node-imports.js",
  313. "dependencies": [
  314. "build:ts",
  315. "build:rollup"
  316. ],
  317. "files": [],
  318. "output": []
  319. },
  320. "test:node-dev": {
  321. "command": "node --conditions=development development/test/node-imports.js",
  322. "dependencies": [
  323. "build:ts",
  324. "build:rollup"
  325. ],
  326. "files": [],
  327. "output": []
  328. }
  329. },
  330. "files": [
  331. "/async-directive.{d.ts.map,d.ts,js.map,js}",
  332. "/decorators.{d.ts.map,d.ts,js.map,js}",
  333. "/directive-helpers.{d.ts.map,d.ts,js.map,js}",
  334. "/directive.{d.ts.map,d.ts,js.map,js}",
  335. "/html.{d.ts.map,d.ts,js.map,js}",
  336. "/index.{d.ts.map,d.ts,js.map,js}",
  337. "/legacy-decorators.{d.ts.map,d.ts,js.map,js}",
  338. "/polyfill-support.{d.ts.map,d.ts,js.map,js}",
  339. "/static-html.{d.ts.map,d.ts,js.map,js}",
  340. "/decorators/",
  341. "/directives/",
  342. "/development/",
  343. "!/development/test/",
  344. "/logo.svg"
  345. ],
  346. "dependencies": {
  347. "@lit/reactive-element": "^2.1.0",
  348. "lit-element": "^4.2.0",
  349. "lit-html": "^3.3.0"
  350. },
  351. "devDependencies": {
  352. "@lit-internal/scripts": "^1.0.1",
  353. "@webcomponents/shadycss": "^1.8.0",
  354. "@webcomponents/template": "^1.4.4",
  355. "@webcomponents/webcomponentsjs": "^2.8.0",
  356. "tslib": "^2.0.3"
  357. },
  358. "typings": "index.d.ts"
  359. }