-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
86 lines (86 loc) · 2.5 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
{
"name": "@wya/socket",
"version": "1.1.0",
"description": "wya-socket for js",
"main": "lib/index.js",
"files": [
"src/**",
"lib/**",
"dist/**",
"examples/**"
],
"scripts": {
"start": "npm run dev",
"dev": "npm run all",
"build": "npm run test && rm -rf ./lib && cross-env NODE_ENV=production babel src --out-dir lib --copy-files --ignore **.test.js,**.md,examples/**",
"pub": " bash scripts/publish.sh",
"clean": "rm -rf ./dist ./demo",
"lint": "esw ./scripts/*.js ./src/**/*.js --color",
"lint:fix": "npm run lint -- --fix",
"lint:watch": "npm run lint -- --fix --watch",
"all": "npm-run-all --parallel --race --continue-on-error lint:watch test:browser-watch",
"serve": "node ./src/__test__/server.js",
"test": "npm run test:browser",
"test:browser": "cross-env TARGET_ENV=browser jest --config ./tests/config/jest.config.js",
"test:browser-watch": "npm run test:browser -- --watch"
},
"author": "wya-team",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/wya-team/wya-socket"
},
"bugs": {
"url": "https://github.com/wya-team/wya-socket/issues"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-proposal-decorators": "^7.10.5",
"@babel/plugin-proposal-export-default-from": "^7.10.4",
"@babel/plugin-proposal-export-namespace-from": "^7.10.4",
"@babel/plugin-proposal-function-bind": "^7.10.5",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.10.5",
"@babel/preset-env": "^7.10.4",
"@babel/runtime": "^7.10.5",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.1.0",
"cross-env": "^5.1.4",
"eslint": "^7.4.0",
"eslint-plugin-babel": "^5.3.1",
"eslint-plugin-markdown": "^1.0.2",
"eslint-watch": "^7.0.0",
"fs-extra": "^5.0.0",
"husky": "^4.2.3",
"jest": "^26.1.0",
"lint-staged": "^10.2.11",
"npm-run-all": "^4.1.2",
"rimraf": "^3.0.0"
},
"peerDependencies": {
"@babel/runtime": ">=7.0.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "node ./scripts/commit-lint"
}
},
"lint-staged": {
"{src,scripts}/**/*.{js,jsx}": [
"esw --fix",
"git add"
],
"*.md": [
"esw --ext '.md' --fix",
"git add"
],
"*.scss": [
"stylelint --fix --syntax scss",
"git add"
]
}
}