-
Notifications
You must be signed in to change notification settings - Fork 439
/
package.json
executable file
·87 lines (87 loc) · 2.57 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
{
"name": "compressorjs",
"version": "1.2.1",
"description": "JavaScript image compressor.",
"main": "dist/compressor.common.js",
"module": "dist/compressor.esm.js",
"browser": "dist/compressor.js",
"types": "types/index.d.ts",
"repository": "fengyuanchen/compressorjs",
"homepage": "https://fengyuanchen.github.io/compressorjs",
"license": "MIT",
"author": {
"name": "Chen Fengyuan",
"url": "https://chenfengyuan.com/"
},
"files": [
"src",
"dist",
"types"
],
"keywords": [
"image",
"compress",
"compressor",
"compressor.js",
"image-compressor",
"lossy-compression",
"javascript",
"front-end",
"web"
],
"scripts": {
"build": "rollup -c",
"clean": "del-cli dist",
"compress": "uglifyjs dist/compressor.js -o dist/compressor.min.js -c -m --comments /^!/",
"dev": "rollup -c -m -w",
"lint": "npm run lint:js && npm run lint:css",
"lint:css": "stylelint docs/**/*.css --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 test",
"start": "npm run dev",
"test": "cross-env NODE_ENV=test karma start test/karma.conf.js",
"test:coverage": "cat coverage/lcov.info | codecov"
},
"dependencies": {
"blueimp-canvas-to-blob": "^3.29.0",
"is-blob": "^2.1.0"
},
"devDependencies": {
"@babel/core": "^7.21.0",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/preset-env": "^7.20.2",
"@commitlint/cli": "^17.4.4",
"@commitlint/config-conventional": "^17.4.4",
"@rollup/plugin-babel": "^5.3.1",
"@rollup/plugin-commonjs": "^21.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^3.1.0",
"babel-plugin-istanbul": "^6.1.1",
"chai": "^4.3.7",
"change-case": "^4.1.2",
"codecov": "^3.8.3",
"create-banner": "^2.0.0",
"cross-env": "^7.0.3",
"del-cli": "^5.0.0",
"eslint": "^8.35.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.27.5",
"husky": "^8.0.3",
"karma": "^6.4.1",
"karma-chai": "^0.1.0",
"karma-chrome-launcher": "^3.1.1",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-rollup-preprocessor": "^7.0.8",
"lint-staged": "^13.1.2",
"mocha": "^10.2.0",
"puppeteer": "^19.7.2",
"rollup": "^2.79.1",
"stylelint": "^15.2.0",
"stylelint-config-standard": "^30.0.1",
"stylelint-order": "^6.0.2",
"uglify-js": "^3.17.4"
}
}