-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
78 lines (78 loc) · 2.61 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
{
"name": "idle-tracker",
"version": "0.1.3",
"description": "Tiny pure Javascript library to track browser inactivity",
"author": "Roderick Hsiao <roderickhsiao@gmail.com>",
"repository": {
"type": "git",
"url": "https://github.com/roderickhsiao/idle-tracker.git"
},
"keywords": [
"browser idle",
"browser inactive",
"idle tracker",
"idle",
"inactive",
"inactivity",
"timer"
],
"scripts": {
"bundlesize": "bundlesize",
"prebuild": "rm -rf dist",
"build": "yarn build:cjs && yarn build:es && yarn build:umd && yarn build:next && yarn tsc --build tsconfig.publish.json",
"build-gh-pages": "yarn build:cjs && yarn build:es && yarn build:umd && yarn build:next && yarn tsc --build tsconfig.json",
"build:cjs": "NODE_ENV=production babel --extensions .ts src/* -d dist/cjs",
"build:es": "cross-env NODE_ENV=production BABEL_ENV=es babel --extensions .ts src/* -d dist/es",
"build:umd": "cross-env NODE_ENV=production BABEL_ENV=umd babel --extensions .ts src/* -d dist/umd",
"build:next": "cross-env NODE_ENV=production BABEL_ENV=next babel --extensions .ts src/* -d dist/next",
"lint": "eslint src/*",
"postpublish": "bash .scripts/publish_example.sh",
"prepublish": "yarn build",
"start": "http-server . &",
"pretest": "yarn start",
"test": "yarn run build && mocha test/setup.js --recursive test --timeout 10000",
"stop-test-server": "pkill -f http-server"
},
"main": "dist/cjs/index.js",
"module": "dist/es/index.js",
"types": "dist/index.d.ts",
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.3.1",
"@babel/preset-typescript": "^7.16.7",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"babel-eslint": "^10.0.0",
"bundlesize": "^0.18.0",
"chai": "^4.2.0",
"cross-env": "^7.0.0",
"eslint": "^8.0.0",
"eslint-config-airbnb": "^19.0.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-airbnb-typescript-base": "^4.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.7.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"http-server": "^14.0.0",
"ip": "^1.1.5",
"lodash": "^4.17.11",
"mocha": "^10.0.0",
"pre-commit": "^1.0.0",
"puppeteer": "^19.0.0",
"typescript": "^4.6.3"
},
"license": "MIT",
"precommit": [
"lint"
],
"bundlesize": [
{
"path": "./dist/*/*.js",
"maxSize": "2 kB"
}
]
}