-
Notifications
You must be signed in to change notification settings - Fork 58
/
package.json
97 lines (97 loc) · 2.74 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
{
"name": "scroll-behavior",
"version": "0.11.0",
"description": "Pluggable browser scroll management",
"files": [
"lib",
"es"
],
"main": "lib/index.js",
"module": "es/index.js",
"types": "lib/index.d.ts",
"scripts": {
"build": "npm run build:cjs && npm run build:esm && npm run build:types",
"build:cjs": "babel -d lib --delete-dir-on-start src",
"build:esm": "babel --env-name esm -d es --delete-dir-on-start src",
"build:types": "cpy types/*.d.ts lib",
"format": "eslint --fix . && npm run prettier -- --write",
"lint": "eslint . && npm run prettier -- -l",
"prepublish": "npm run build",
"prettier": "prettier --ignore-path .eslintignore '**/*.{md,ts,tsx}'",
"tdd": "cross-env NODE_ENV=test karma start",
"test": "npm run lint && npm run test:ts && npm run testonly",
"test:ts": "dtslint types",
"testonly": "npm run tdd -- --single-run"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": "eslint --fix",
"*.{md,ts,tsx}": "prettier --write"
},
"prettier": {
"printWidth": 79,
"singleQuote": true,
"trailingComma": "all"
},
"repository": {
"type": "git",
"url": "git+https://github.com/taion/scroll-behavior.git"
},
"keywords": [
"scroll"
],
"author": "Jimmy Jia",
"license": "MIT",
"bugs": {
"url": "https://github.com/taion/scroll-behavior/issues"
},
"homepage": "https://github.com/taion/scroll-behavior#readme",
"dependencies": {
"dom-helpers": "^5.1.4",
"invariant": "^2.2.4",
"page-lifecycle": "^0.1.2"
},
"devDependencies": {
"@4c/babel-preset": "^7.4.1",
"@babel/cli": "^7.12.13",
"@babel/core": "^7.12.13",
"@babel/polyfill": "^7.12.1",
"babel-loader": "^8.2.2",
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-istanbul": "^6.0.0",
"babel-polyfill": "^6.26.0",
"chai": "^4.3.0",
"codecov": "^3.8.1",
"cpy-cli": "^3.1.1",
"cross-env": "^7.0.3",
"dirty-chai": "^2.0.1",
"dtslint": "^3.7.0",
"eslint": "^7.19.0",
"eslint-config-4catalyzer": "^1.1.5",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.3.1",
"history": "^2.1.2",
"husky": "^4.3.8",
"karma": "^5.2.3",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.3",
"karma-firefox-launcher": "^1.3.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-sinon-chai": "^2.0.2",
"karma-sourcemap-loader": "^0.3.8",
"karma-webpack": "^4.0.2",
"lint-staged": "^10.5.4",
"mocha": "^8.2.1",
"prettier": "^2.2.1",
"sinon": "^9.2.4",
"sinon-chai": "^3.5.0",
"typescript": "^4.1.3",
"webpack": "^4.46.0"
}
}