forked from dollarshaveclub/shave
-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
108 lines (108 loc) Β· 3.33 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
{
"name": "shave",
"version": "5.0.4",
"description": "Shave is a javascript plugin that truncates multi-line text within a html element based on set max height",
"main": "dist/shave.js",
"module": "dist/shave.es.js",
"type": "module",
"unpkg": "dist/shave.min.js",
"files": [
"dist",
"src",
"types"
],
"types": "types/shave.d.ts",
"scripts": {
"build": "pnpm clean && pnpm build:dist && pnpm run build:types",
"build:dist": "rollup -c rollup.config.js --bundleConfigAsCjs",
"build:types": "tsc",
"clean": "rimraf dist types",
"commit": "git-cz",
"commit-msg": "commitlint --edit $1",
"eslint": "eslint . --fix",
"eslint:ci": "eslint .",
"format": "prettier --write src/*.ts rollup.config.js tests/*.js scripts/*.js",
"husky-setup": "(path-exists .husky/commit-msg) || (husky install && pnpm husky-setup:commit-msg && pnpm husky-setup:post-merge && pnpm husky-setup:pre-commit)",
"husky-setup:commit-msg": "npx husky add .husky/commit-msg 'pnpm run commit-msg'",
"husky-setup:post-merge": "npx husky add .husky/post-merge 'pnpm run setup'",
"husky-setup:pre-commit": "npx husky add .husky/pre-commit 'pnpm run pre-commit'",
"pre-commit": "pnpm run build && pnpm run test && eslint",
"prepare": "is-ci || pnpm husky-setup",
"prepublishOnly": "pnpm build && pnpm run test",
"setup": "pnpm install --reporter=silent && pnpm build",
"test": "pnpm run test:acceptance && pnpm run test:es-check",
"test:acceptance": "node ./scripts/acceptance.js --coverage",
"test:es-check": "es-check es5 dist/shave.js dist/jquery.shave.js",
"release": "release-it"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yowainwright/shave.git"
},
"keywords": [
"ellipsis",
"truncate",
"truncation",
"truncated",
"semantic",
"js",
"content",
"shorten",
"javascript",
"text",
"shave",
"trim"
],
"author": "Jeff Wainwright <[email protected]> (jeffry.in)",
"license": "MIT",
"bugs": {
"url": "https://github.com/yowainwright/shave/issues"
},
"homepage": "https://github.com/yowainwright/shave#readme",
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/prompt-cli": "^19.5.0",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^12.1.0",
"@types/jquery": "^3.5.30",
"@types/node": "^22.5.5",
"@types/rollup": "^0.54.0",
"@types/zepto": "^1.0.36",
"@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0",
"es-check": "7.2.1",
"eslint": "8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.6",
"is-ci": "^4.1.0",
"node-qunit-phantomjs": "^2.1.1",
"path-exists-cli": "^2.0.0",
"prettier": "^3.3.3",
"release-it": "^17.6.0",
"rimraf": "^6.0.1",
"rollup": "^4.21.3",
"rollup-plugin-uglify": "^6.0.4",
"tslib": "^2.7.0",
"typescript": "^5.6.2"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"header-max-length": [
2,
"always",
120
]
}
},
"release-it": {
"git": {
"commitMessage": "chore: release-it commit"
}
}
}