forked from GoogleChromeLabs/text-fragments-polyfill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
74 lines (74 loc) · 2.53 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
{
"name": "text-fragments-polyfill",
"version": "5.5.0",
"description": "This is a polyfill for the [Text Fragments](https://wicg.github.io/scroll-to-text-fragment/) feature for browsers that don't support it natively.",
"main": "./dist/text-fragments.js",
"browser": "./dist/text-fragments.js",
"module": "./dist/text-fragments.js",
"type": "module",
"exports": {
".": "./dist/text-fragments.js",
"./dist/fragment-generation-utils.js": "./dist/fragment-generation-utils.js",
"./text-fragment-utils": "./src/text-fragment-utils.js",
"./package.json": "./package.json"
},
"unpkg": "./dist/text-fragments.js",
"files": [
"src",
"dist",
"demo"
],
"devDependencies": {
"@rollup/plugin-terser": "^0.4.0",
"clang-format": "^1.8.0",
"eslint": "^8.33.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^8.6.0",
"http-server": "^14.1.1",
"jasmine-core": "^4.5.0",
"karma": "^6.4.1",
"karma-chrome-launcher": "^3.1.1",
"karma-firefox-launcher": "^2.1.2",
"karma-html2js-preprocessor": "^1.1.0",
"karma-jasmine": "^5.1.0",
"karma-webkit-launcher": "^2.1.0",
"playwright": "^1.30.0",
"prettier": "^2.8.3",
"regenerate": "^1.4.2",
"rollup": "^3.14.0",
"shx": "^0.3.4",
"unicode-9.0.0": "^0.7.5"
},
"scripts": {
"start": "npx http-server",
"clean": "shx rm -rf dist",
"fix": "npx clang-format --style=Google -i ./src/*.js ./tools/*.js ./test/**/*.js && npx prettier --write **/*.json **/*.html",
"prepare": "npm run clean && npm run fix && npm run lint && npx rollup src/text-fragments.js --dir dist -p 'terser' && npx rollup src/fragment-generation-utils.js --dir dist -p 'terser'",
"lint": "npx eslint . --ext .js,.mjs --fix --ignore-pattern dist/",
"test": "./node_modules/karma/bin/karma start karma.conf.cjs --single-run",
"debug": "./node_modules/karma/bin/karma start karma.conf.cjs --debug --browsers"
},
"repository": {
"type": "git",
"url": "git+https://github.com/GoogleChromeLabs/text-fragments-polyfill.git"
},
"contributors": [
"Thomas Steiner <[email protected]>",
"Tommy Martino <[email protected]>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/GoogleChromeLabs/text-fragments-polyfill/issues"
},
"homepage": "https://github.com/GoogleChromeLabs/text-fragments-polyfill#readme",
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"google",
"prettier"
]
}
}