@brightspace-ui-labs/facet-filter-sort 4.2.1 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -15
- package/package.json +13 -9
package/README.md
CHANGED
|
@@ -197,38 +197,39 @@ This also works if the `d2l-labs-filter-dropdown` is a child in the shadow-dom o
|
|
|
197
197
|
<d2l-labs-filter-dropdown id="filter"> ... </d2l-labs-filter-dropdown>
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
## Developing
|
|
200
|
+
## Developing
|
|
201
201
|
|
|
202
202
|
After cloning the repo, run `npm install` to install dependencies.
|
|
203
203
|
|
|
204
|
-
|
|
204
|
+
### Running the demos
|
|
205
205
|
|
|
206
|
-
|
|
207
|
-
npm install -g polymer-cli
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
To start a [local web server](https://www.polymer-project.org/3.0/docs/tools/polymer-cli-commands#serve) that hosts the demo page and tests:
|
|
206
|
+
To start a [@web/dev-server](https://modern-web.dev/docs/dev-server/overview/) that hosts the demo page and tests:
|
|
211
207
|
|
|
212
208
|
```shell
|
|
213
|
-
|
|
209
|
+
npm start
|
|
214
210
|
```
|
|
215
211
|
|
|
216
|
-
|
|
212
|
+
### Linting
|
|
217
213
|
|
|
218
214
|
```shell
|
|
215
|
+
# eslint, lit-analyzer, polymer lint and style linting
|
|
219
216
|
npm run lint
|
|
220
|
-
```
|
|
221
217
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
```shell
|
|
225
|
-
npm run test:polymer:local
|
|
218
|
+
# eslint only
|
|
219
|
+
npm run lint:eslint
|
|
226
220
|
```
|
|
227
221
|
|
|
228
|
-
|
|
222
|
+
### Testing
|
|
229
223
|
|
|
230
224
|
```shell
|
|
225
|
+
# lint & run headless unit tests
|
|
231
226
|
npm test
|
|
227
|
+
|
|
228
|
+
# unit tests only
|
|
229
|
+
npm run test:headless
|
|
230
|
+
|
|
231
|
+
# debug or run a subset of local unit tests
|
|
232
|
+
npm run test:headless:watch
|
|
232
233
|
```
|
|
233
234
|
|
|
234
235
|
## Versioning & Releasing
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "Collection of (search) facet, filter and sort elements",
|
|
3
|
+
"type": "module",
|
|
3
4
|
"repository": {
|
|
4
5
|
"type": "git",
|
|
5
6
|
"url": "https://github.com/BrightspaceUILabs/facet-filter-sort.git"
|
|
@@ -16,11 +17,12 @@
|
|
|
16
17
|
"lint": "npm run lint:eslint && npm run lint:lit && npm run lint:polymer && npm run lint:style",
|
|
17
18
|
"lint:eslint": "eslint . --ext .js,.html",
|
|
18
19
|
"lint:lit": "lit-analyzer \"{components, test, demo}/**/*.js\" --strict --rules.no-unknown-tag-name off",
|
|
19
|
-
"lint:polymer": "polymer lint -i \"
|
|
20
|
+
"lint:polymer": "polymer lint -i \"test/**/*.js\" \"demo/**/*.js\" \"components/**/*.js\"",
|
|
20
21
|
"lint:style": "stylelint \"**/*.{js,html}\"",
|
|
21
|
-
"
|
|
22
|
-
"test
|
|
23
|
-
"test": "
|
|
22
|
+
"start": "web-dev-server --node-resolve --watch --open",
|
|
23
|
+
"test": "npm run lint && npm run test:headless",
|
|
24
|
+
"test:headless": "web-test-runner --group default",
|
|
25
|
+
"test:headless:watch": "web-test-runner --group default --watch"
|
|
24
26
|
},
|
|
25
27
|
"author": "D2L Corporation",
|
|
26
28
|
"license": "Apache-2.0",
|
|
@@ -28,7 +30,10 @@
|
|
|
28
30
|
"@babel/core": "^7",
|
|
29
31
|
"@babel/eslint-parser": "^7",
|
|
30
32
|
"@brightspace-ui/stylelint-config": "^0.3",
|
|
31
|
-
"@
|
|
33
|
+
"@open-wc/testing": "^2",
|
|
34
|
+
"@web/dev-server": "^0.1",
|
|
35
|
+
"@web/test-runner": "^0.13",
|
|
36
|
+
"@web/test-runner-saucelabs": "^0.6",
|
|
32
37
|
"eslint": "^8",
|
|
33
38
|
"eslint-config-brightspace": "^0.16",
|
|
34
39
|
"eslint-plugin-html": "^6",
|
|
@@ -37,15 +42,14 @@
|
|
|
37
42
|
"eslint-plugin-sort-class-members": "^1",
|
|
38
43
|
"lit-analyzer": "^1",
|
|
39
44
|
"polymer-cli": "^1",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
45
|
+
"sinon": "^12",
|
|
46
|
+
"stylelint": "^14"
|
|
42
47
|
},
|
|
43
|
-
"version": "4.2.
|
|
48
|
+
"version": "4.2.2",
|
|
44
49
|
"dependencies": {
|
|
45
50
|
"@brightspace-ui/core": "^1",
|
|
46
51
|
"d2l-localize-behavior": "BrightspaceUI/localize-behavior#semver:^2",
|
|
47
52
|
"@brightspace-ui-labs/multi-select": "^5",
|
|
48
|
-
"d2l-polymer-behaviors": "Brightspace/d2l-polymer-behaviors-ui#semver:^2",
|
|
49
53
|
"d2l-typography": "BrightspaceUI/typography#semver:^7",
|
|
50
54
|
"lit-element": "^2",
|
|
51
55
|
"@polymer/polymer": "^3"
|