-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
172 lines (172 loc) · 5.4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
"name": "@lit-labs/virtualizer",
"version": "2.0.14",
"description": "Viewport-based virtualization (virtual scrolling) for Lit",
"author": "Google LLC",
"license": "BSD-3-Clause",
"homepage": "https://lit.dev/",
"repository": {
"type": "git",
"url": "https://github.com/lit/lit.git",
"directory": "packages/labs/virtualizer"
},
"main": "lit-virtualizer.js",
"module": "lit-virtualizer.js",
"type": "module",
"exports": {
".": {
"types": "./lit-virtualizer.d.ts",
"default": "./lit-virtualizer.js"
},
"./events.js": {
"types": "./events.d.ts",
"default": "./events.js"
},
"./layouts/flexWrap.js": {
"types": "./layouts/flexWrap.d.ts",
"default": "./layouts/flexWrap.js"
},
"./layouts/flow.js": {
"types": "./layouts/flow.d.ts",
"default": "./layouts/flow.js"
},
"./layouts/grid.js": {
"types": "./layouts/grid.d.ts",
"default": "./layouts/grid.js"
},
"./layouts/masonry.js": {
"types": "./layouts/masonry.d.ts",
"default": "./layouts/masonry.js"
},
"./LitVirtualizer.js": {
"types": "./LitVirtualizer.d.ts",
"default": "./LitVirtualizer.js"
},
"./polyfillLoaders/ResizeObserver.js": {
"types": "./polyfillLoaders/ResizeObserver.d.ts",
"default": "./polyfillLoaders/ResizeObserver.js"
},
"./polyfills/resize-observer-polyfill/ResizeObserver.js": {
"types": "./polyfills/resize-observer-polyfill/ResizeObserver.d.ts",
"default": "./polyfills/resize-observer-polyfill/ResizeObserver.js"
},
"./support/method-interception.js": {
"types": "./support/method-interception.d.ts",
"default": "./support/method-interception.js"
},
"./support/resize-observer-errors.js": {
"types": "./support/resize-observer-errors.d.ts",
"default": "./support/resize-observer-errors.js"
},
"./virtualize.js": {
"types": "./virtualize.d.ts",
"default": "./virtualize.js"
}
},
"scripts": {
"bench": "tach --root=../../.. --browser=chrome-headless test/benchmarks/basic.html --measure=fcp",
"bench:debug": "tach --root=../../.. test/benchmarks/basic.html --measure=fcp",
"bench:scroll": "tach --force-clean-npm-install --config=test/benchmarks/scrollingBenchmarks.json",
"build": "wireit",
"build:copy-polyfill": "wireit",
"build:ts": "wireit",
"checksize": "rollup -c; rm lit-virtualizer.bundled.js lit-virtualizer-with-polyfills.bundled.js",
"test": "wireit",
"test:es5build": "wireit",
"test:screenshot": "cd test/screenshot && rollup -c && mocha screenshot.js",
"generate-screenshots": "cd test/screenshot && rollup -c && mocha screenshot.js --generate-screenshots"
},
"wireit": {
"build": {
"dependencies": [
"build:ts",
"build:copy-polyfill"
]
},
"build:copy-polyfill": {
"command": "mkdir -p polyfills/resize-observer-polyfill && cp src/polyfills/resize-observer-polyfill/ResizeObserver.js polyfills/resize-observer-polyfill/ResizeObserver.js",
"files": [
"src/polyfills/resize-observer-polyfill/ResizeObserver.js"
],
"output": [
"polyfills/resize-observer-polyfill/ResizeObserver.js"
]
},
"build:ts": {
"command": "tsc --build --pretty",
"clean": "if-file-deleted",
"files": [
"src/**/*.ts",
"tsconfig.json"
],
"output": [
".tsbuildinfo",
"layouts/**/*.{js,d.ts,d.ts.map}",
"polyfillLoaders/**/*.{js,d.ts,d.ts.map}",
"support/**/*.{js,d.ts,d.ts.map}",
"test/**/*.{js,d.ts,d.ts.map}",
"!test/screenshot/**",
"events.{js,d.ts,d.ts.map}",
"lit-virtualizer.{js,d.ts,d.ts.map}",
"LitVirtualizer.{js,d.ts,d.ts.map}",
"ScrollerController.{js,d.ts,d.ts.map}",
"virtualize.{js,d.ts,d.ts.map}",
"Virtualizer.{js,d.ts,d.ts.map}"
],
"dependencies": [
"../../internal-scripts:build",
"../../lit:build"
]
},
"test": {
"command": "node ../../tests/run-web-tests.js \"test/**/*.test.js\" --config web-test-runner.config.js --esbuild-target auto --node-resolve true",
"dependencies": [
"build",
"test:es5build",
"../../tests:build"
],
"env": {
"BROWSERS": {
"external": true
}
},
"files": [
"web-test-runner.config.js"
],
"output": []
},
"test:es5build": {
"command": "tsc --target ES5 --noEmit --downlevelIteration",
"dependencies": [
"../../lit:build"
],
"files": [
"src/**/*.ts",
"tsconfig.json"
],
"output": []
}
},
"files": [
"/layouts/*.{d.ts,d.ts.map,js,js.map}",
"/layouts/shared/*.{d.ts,d.ts.map,js,js.map}",
"/polyfillLoaders/*.{d.ts,d.ts.map,js,js.map}",
"/polyfills/resize-observer-polyfill/ResizeObserver.{d.ts,js}",
"/support/*.{d.ts,d.ts.map,js,js.map}",
"/events.{js,d.ts,d.ts.map,js.map}",
"/lit-virtualizer.{d.ts,d.ts.map,js,js.map}",
"/virtualize.{d.ts,d.ts.map,js,js.map}",
"/Virtualizer.{d.ts,d.ts.map,js,js.map}",
"/LitVirtualizer.{d.ts,d.ts.map,js,js.map}",
"/ScrollerController.{d.ts,d.ts.map,js,js.map}"
],
"devDependencies": {
"@open-wc/testing": "^3.1.6",
"@web/dev-server-esbuild": "^0.3.0",
"tachometer": "^0.7.0"
},
"dependencies": {
"lit": "^3.2.0",
"tslib": "^2.0.3"
}
}