forked from fengyuanchen/viewerjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 3.32 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": "viewerjs",
"description": "JavaScript image viewer.",
"version": "1.10.1",
"main": "dist/viewer.common.js",
"module": "dist/viewer.esm.js",
"browser": "dist/viewer.js",
"style": "dist/viewer.css",
"types": "types/index.d.ts",
"files": [
"src",
"dist",
"types"
],
"scripts": {
"build": "npm run build:css && npm run build:js",
"build:css": "postcss src/index.css -o dist/viewer.css --no-map",
"build:js": "rollup -c",
"clean": "del-cli dist",
"compress": "npm run compress:css && npm run compress:js",
"compress:css": "postcss dist/viewer.css -u cssnano -o dist/viewer.min.css --no-map",
"compress:js": "uglifyjs dist/viewer.js -o dist/viewer.min.js -c -m --comments /^!/",
"copy": "cpy dist/viewer.css docs/css",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint {src,docs}/**/*.{css,scss,html} --fix",
"lint:js": "eslint src test *.js --fix",
"prepare": "husky install",
"release": "npm run clean && npm run lint && npm run build && npm run compress && npm run copy && npm test",
"start": "npm-run-all --parallel watch:*",
"test": "karma start",
"test:coverage": "cat coverage/lcov.info | codecov",
"watch:css": "postcss src/index.css -o docs/css/viewer.css -m -w",
"watch:js": "rollup -c -m -w"
},
"repository": {
"type": "git",
"url": "git+https://github.com/fengyuanchen/viewerjs.git"
},
"keywords": [
"image",
"viewer",
"viewerjs",
"viewer.js",
"html",
"css",
"javascript",
"front-end",
"web"
],
"author": {
"name": "Chen Fengyuan",
"url": "https://chenfengyuan.com/"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/fengyuanchen/viewerjs/issues"
},
"homepage": "https://fengyuanchen.github.io/viewerjs",
"devDependencies": {
"@babel/core": "^7.14.8",
"@babel/preset-env": "^7.14.9",
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@rollup/plugin-babel": "^5.3.0",
"babel-plugin-istanbul": "^6.0.0",
"chai": "^4.3.4",
"change-case": "^4.1.2",
"codecov": "^3.8.3",
"cpy-cli": "^3.1.1",
"create-banner": "^2.0.0",
"cssnano": "^5.0.7",
"del-cli": "^4.0.1",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.23.4",
"husky": "^7.0.1",
"karma": "^6.3.4",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-rollup-preprocessor": "^7.0.7",
"lint-staged": "^11.1.1",
"mocha": "^9.0.3",
"npm-run-all": "^4.1.5",
"postcss": "^8.3.6",
"postcss-cli": "^8.3.1",
"postcss-header": "^3.0.1",
"postcss-import": "^14.0.2",
"postcss-preset-env": "^6.7.0",
"postcss-url": "^10.1.3",
"puppeteer": "^10.1.0",
"rollup": "^2.55.1",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"stylelint-order": "^4.1.0",
"uglify-js": "^3.14.1"
},
"browserslist": [
"last 2 versions",
"> 1%",
"not ie <= 8"
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"{src,test}/**/*.js|*.conf*.js": "eslint --fix",
"{src,docs}/**/*.{css,scss,html}": "stylelint --fix"
}
}