-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 2.39 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
{
"name": "accessible-toggle",
"version": "1.3.1",
"description": "Accessible and responsive toggling of an element's visibility",
"author": "Eli Van Zoeren ([email protected])",
"license": "MIT",
"repository": "elivz/accessible-toggle",
"main": "cjs/index.js",
"browser": "dist/accessibleToggle.js",
"module": "es/index.js",
"jsxnext:main": "es/index.js",
"files": [
"dist",
"cjs",
"es",
"src"
],
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"release": "release-it",
"lint": "xo --fix",
"test": "clear && jest",
"test:coverage": "jest --coverage ",
"test:watch": "clear && jest --watch",
"lint:test": "npm run lint && npm run test:coverage",
"build": "clear && npm run lint:test && npm run build:cjs && npm run build:es && npm run build:umd",
"build:watch": "clear && rimraf cjs && cross-env BABEL_ENV=cjs babel -w src --out-dir cjs",
"build:es": "rimraf es && cross-env BABEL_ENV=es babel src --out-dir es",
"build:cjs": "rimraf cjs && cross-env BABEL_ENV=cjs babel src --out-dir cjs",
"build:umd": "rimraf dist && cross-env BABEL_ENV=es rollup -c & cross-env BABEL_ENV=es NODE_ENV=production rollup -c"
},
"husky": {
"hooks": {
"pre-publish": "npm run build",
"pre-commit": "npm run lint:test && npm run build:umd && git add dist"
}
},
"devDependencies": {
"@babel/cli": "^7.11.6",
"@babel/core": "^7.11.6",
"@babel/preset-env": "^7.11.5",
"babel-jest": "^26.0.0",
"babel-plugin-add-module-exports": "^1.0.0",
"cross-env": "^7.0.0",
"husky": "^4.3.0",
"jest": "^26.0.0",
"release-it": "^14.0.0",
"rimraf": "^3.0.0",
"rollup": "^2.29.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-filesize": "^9.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-uglify": "^6.0.0",
"xo": "^0.33.0"
},
"dependencies": {
"raf-throttle": "^2.0.3"
},
"xo": {
"space": true,
"prettier": true,
"env": [
"browser"
],
"ignores": [
"cjs",
"dist",
"es"
],
"overrides": [
{
"files": "__tests__/*.js",
"env": [
"browser",
"node"
],
"globals": [
"test",
"expect",
"document"
]
}
]
},
"prettier": {
"singleQuote": true,
"trailingComma": "es5"
}
}