-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
72 lines (72 loc) · 1.83 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": "post-messenger",
"version": "0.2.2",
"description": "A wrapper of window.postMessage for cross-document communication.",
"main": "lib/index.js",
"scripts": {
"test": "NODE_ENV=babel jest",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"build:umd": "rimraf ./dist && cross-env NODE_ENV=rollup rollup -c",
"build:lib": "rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib",
"build": "npm run build:umd && npm run build:lib && npm run test && size-limit"
},
"size-limit": [
{
"limit": "1 KB",
"path": "dist/post-messenger.min.js"
}
],
"repository": {
"type": "git",
"url": "[email protected]:hustcc/post-messenger.git"
},
"keywords": [
"postMessage",
"iframe",
"post-messenger",
"cross-document"
],
"author": "ProtoTeam",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-jest": "^22.4.3",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-env": "^1.6.1",
"coveralls": "^3.0.0",
"cross-env": "^5.1.3",
"jest": "^21.2.1",
"jsdom": "^11.5.1",
"mitt": "^1.1.3",
"rimraf": "^2.6.2",
"rollup": "^0.58.1",
"rollup-plugin-babel": "^3.0.4",
"rollup-plugin-uglify": "^3.0.0",
"size-limit": "^0.19.0"
},
"jest": {
"setupFiles": [
"<rootDir>/__tests__/setup.js",
"<rootDir>/__tests__/jest-postmessage-mock.js"
],
"testRegex": "(/__tests__/.*(test|spec))\\.(js)$",
"moduleFileExtensions": [
"js",
"json"
],
"transform": {
"^.+\\.js?$": "babel-jest"
},
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js}",
"!**/node_modules/**",
"!**/vendor/**"
],
"moduleDirectories": [
"node_modules",
"src"
]
}
}