forked from willmcpo/body-scroll-lock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
72 lines (72 loc) · 2.27 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
{
"name": "body-scroll-lock",
"version": "2.6.1",
"description": "Enables body scroll locking (for iOS Mobile and Tablet, Android, desktop Safari/Chrome/Firefox) without breaking scrolling of a target element (eg. modal/lightbox/flyouts/nav-menus)",
"main": "lib/bodyScrollLock.min.js",
"author": "Will Po",
"repository": "https://github.com/willmcpo/body-scroll-lock.git",
"license": "MIT",
"keywords": [
"body scroll",
"body scroll lock",
"react scroll lock",
"react scroll",
"scroll",
"lock",
"freeze",
"toggle",
"disable",
"overflow",
"modal",
"lightbox",
"react",
"vanilla-js",
"angular",
"vue",
"ios",
"mobile",
"desktop",
"tablet",
"bsl"
],
"dependencies": {},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-preset-env": "^1.6.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-stage-0": "^6.24.1",
"eslint": "^4.15.0",
"eslint-config-airbnb-base": "^12.1.0",
"eslint-config-babel": "^7.0.2",
"eslint-plugin-flowtype": "^2.41.0",
"eslint-plugin-import": "^2.8.0",
"flow-bin": "^0.86.0",
"husky": "^0.14.3",
"jest": "^22.1.2",
"lint-staged": "^6.0.1",
"prettier": "^1.10.2",
"rimraf": "^2.6.2",
"uglify-js": "^3.4.7"
},
"scripts": {
"clean": "rimraf lib/ && mkdir -p ./lib",
"release": "npm version",
"postrelease": "yarn publish && git push --follow-tags",
"buildEs6": "babel --plugins transform-flow-strip-types --no-babelrc src/bodyScrollLock.js > lib/bodyScrollLock.es6.js",
"buildEs5": "babel src/bodyScrollLock.js > lib/bodyScrollLock.js && uglifyjs --compress unused,dead_code --mangle reserved=['require','exports'] lib/bodyScrollLock.js > lib/bodyScrollLock.min.js",
"build": "yarn buildEs6 && yarn buildEs5",
"lint": "eslint ./src",
"prerelease": "yarn flow && yarn lint && yarn run clean && yarn build",
"flow": "flow",
"prettierAll": "prettier --write --single-quote --trailing-comma es5 --print-width 120 'src/**/*.js'",
"precommit": "lint-staged"
},
"lint-staged": {
"*.js": [
"prettier --write --single-quote --trailing-comma es5 --print-width 120",
"git add"
]
}
}