forked from Aaronius/penpal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
90 lines (90 loc) · 2.68 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
{
"name": "penpal",
"version": "6.2.2",
"description": "A promise-based library for communicating with iframes via postMessage.",
"author": "Aaron Hardy <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Aaronius/penpal/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Aaronius/penpal.git"
},
"keywords": [
"iframe",
"postMessage",
"promise"
],
"main": "es5/index.js",
"module": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"clean": "rimraf lib es5 dist",
"build:lib": "tsc",
"build:es5": "babel ./src --out-dir ./es5 --extensions '.ts'",
"build:dist": "rollup --config rollup.config.js && terser dist/penpal.js -o dist/penpal.min.js -m --source-map",
"build:analysis": "node ./scripts/filesize dist/penpal.min.js",
"build": "npm-run-all clean build:lib build:es5 build:dist build:analysis",
"lint": "eslint **/*.js",
"format": "prettier --write \"**/*.{json,ts,js,md,html,babelrc,eslintrc}\"",
"test": "npm-run-all clean runTests",
"test:watch": "npm-run-all clean runTests:watch",
"test:sauce": "npm-run-all build 'runTests -- --sauce'",
"runTests": "node ./scripts/test.js",
"runTests:watch": "npm run runTests -- --watch",
"prepublishOnly": "npm-run-all format lint test build",
"prepare": "husky install"
},
"lint-staged": {
"**/*.js": [
"eslint --cache --fix"
],
"**/*.{json,ts,js,md,html,babelrc,eslintrc}": [
"prettier --write"
]
},
"browserslist": [
"last 2 Chrome version",
"last 2 Firefox version",
"last 2 Safari version",
"last 2 Edge version"
],
"files": [
"lib",
"es5",
"dist"
],
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@babel/preset-typescript": "^7.8.3",
"@metahub/karma-rollup-preprocessor": "^6.0.0",
"@rollup/plugin-typescript": "^4.0.0",
"connect": "^3.6.6",
"eslint": "^7.25.0",
"eslint-config-prettier": "^6.10.1",
"eslint-plugin-import": "^2.14.0",
"filesize": "^6.1.0",
"husky": "^6.0.0",
"jasmine-core": "^3.8.0",
"karma": "^5.0.2",
"karma-babel-preprocessor": "^8.0.0-beta.0",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^1.1.0",
"karma-jasmine": "^3.1.1",
"karma-sauce-launcher": "^4.1.3",
"lint-staged": "^11.0.0",
"npm-run-all": "^4.1.5",
"prettier": "2.0.4",
"rimraf": "^3.0.2",
"rollup": "^2.6.1",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-typescript": "^1.0.1",
"serve-static": "^1.13.2",
"terser": "^4.6.11",
"typescript": "^3.8.3",
"yargs": "^15.3.1"
}
}