Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
78 lines (78 loc) · 2.35 KB
/
Copy pathpackage.json
File metadata and controls
78 lines (78 loc) · 2.35 KB
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
{
"name": "readmore-js",
"version": "3.1.0",
"description": "A lightweight JavaScript plugin for collapsing and expanding long blocks of text with \"Read more\" and \"Close\" links.",
"main": "dist/readmore.js",
"files": [
"dist/*.js",
"dist/*.js.map"
],
"module": "dist/readmore.es6.js",
"scripts": {
"build": "rm -rf ./dist/* && npm-run-all -p build:*",
"build:js": "rollup --config rollup.config.mjs",
"build:html": "cpy \"src/*.html\" dist/",
"watch": "npm-run-all -p watch:*",
"watch:js": "npm run build:js -- --watch",
"watch:html": "nodemon --watch src -e html -x \"npm run build:html\"",
"serve": "http-server -p 9000 dist/",
"start": "npm-run-all -p watch serve",
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "node --test --experimental-test-coverage --test-coverage-include=\"src/logic.js\" --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 \"test/**/*.test.js\"",
"test:e2e": "npm run build && playwright test",
"test:e2e:ui": "playwright test --ui",
"lint": "eslint --cache .",
"prepare": "husky",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/jedfoster/Readmore.js.git"
},
"keywords": [
"css",
"readmore",
"expand",
"collapse"
],
"author": "Jed Foster <jed@jedfoster.com>",
"license": "MIT",
"homepage": "https://github.com/jedfoster/Readmore.js",
"bugs": {
"url": "https://github.com/jedfoster/Readmore.js/issues"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@playwright/test": "^1.65.0",
"@rollup/plugin-replace": "^6.0.3",
"@stylistic/eslint-plugin": "^5.10.0",
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
"cpy-cli": "^7.0.0",
"eslint": "^10.14.0",
"eslint-config-prettier": "^10.1.8",
"globals": "^17.14.0",
"http-server": "^14.1.1",
"husky": "^9.1.7",
"lint-staged": "^17.6.0",
"nodemon": "^3.1.0",
"npm-run-all2": "^9.0.0",
"prettier": "^3.10.0",
"prettier-plugin-brace-style": "^0.10.4",
"prettier-plugin-curly": "^0.4.2",
"rollup": "^4.0.0"
},
"devEngines": {
"runtime": {
"name": "node",
"version": ">=24"
}
},
"lint-staged": {
"*.{js,mjs}": [
"eslint --fix"
],
"*.{js,mjs,json}": [
"prettier --write"
]
}
}