-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
114 lines (114 loc) · 3.19 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "yet-another-medium-zoom",
"version": "0.4.2",
"description": "Highly configurable medium-like lightbox",
"keywords": [
"lightbox",
"image",
"image zoom",
"picture",
"medium"
],
"main": "dist/yet-another-medium-zoom.umd.js",
"module": "dist/lib/index.js",
"types": "dist/types/index.d.ts",
"files": [
"dist",
"src"
],
"author": "birjolaxew <[email protected]>",
"homepage": "https://yamz.jfagerberg.me/",
"repository": {
"type": "git",
"url": "https://github.com/birjolaxew/yet-another-medium-zoom"
},
"license": "MIT",
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
"prebuild": "rimraf dist",
"build": "tsc --module commonjs && rollup -c rollup.config.ts",
"prepublishOnly": "npm run build",
"start": "rollup -c rollup.config.ts -w",
"test": "jest --coverage",
"test:watch": "jest --coverage --watch",
"test:prod": "npm run lint && npm run test -- --no-cache"
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/test/setup.ts"
],
"transform": {
".(ts|tsx)": "ts-jest"
},
"testEnvironment": "jsdom",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"moduleNameMapper": {
"\\.css$": "<rootDir>/test/__mocks__/styleMock.ts"
},
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/",
"/src/index.ts",
"/src/types.ts"
],
"coverageThreshold": {
"global": {
"branches": 75,
"functions": 95,
"lines": 90,
"statements": 90
}
},
"collectCoverageFrom": [
"src/**/*.{js,ts}"
]
},
"prettier": {
"semi": true,
"trailingComma": "es5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,css,json,md}": [
"prettier --write",
"git add"
]
},
"devDependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@types/jest": "^24.0.25",
"@types/lolex": "^5.1.0",
"@types/node": "^10.11.0",
"husky": "^3.0.3",
"jest": "^24.9.0",
"lint-staged": "^9.2.1",
"lolex": "^5.1.2",
"prettier": "^1.14.3",
"rimraf": "^2.6.2",
"rollup": "^0.67.0",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-json": "^3.1.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.18.0",
"ts-jest": "^24.2.0",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-config-standard": "^8.0.1",
"typescript": "^3.0.3"
}
}