forked from jimp-dev/jimp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
185 lines (185 loc) · 4.97 KB
/
package.json
File metadata and controls
185 lines (185 loc) · 4.97 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
{
"name": "jimp",
"version": "0.3.5",
"description": "An image processing library written entirely in JavaScript (i.e. zero external or native dependencies).",
"main": "./dist/jimp.js",
"browser": "./browser/lib/jimp.js",
"types": "./jimp.d.ts",
"tonicExampleFilename": "example.js",
"files": [
"browser",
"dist",
"es",
"jimp.d.ts",
"fonts"
],
"repository": {
"type": "git",
"url": "https://github.com/oliver-moran/jimp.git"
},
"bugs": {
"url": "https://github.com/oliver-moran/jimp/issues"
},
"scripts": {
"lint": "npm run -s lint:src && npm run -s lint:tests && npm run -s lint:extra && echo Lint All Success",
"lint:src": "xo src/*.js src/**/*.js !src/modules/*.js",
"lint:tests": "xo test/*.js --global before",
"lint:extra": "xo {tools,examples}/*.js",
"test:browser": "cross-env BABEL_ENV=test ENV=browser CHROME_BIN=\"$(which chrome || which chromium)\" karma start --single-run",
"test:browser:watch": "npm run -s test:browser start -- --auto-watch",
"test:node": "cross-env BABEL_ENV=test mocha --require @babel/register",
"test:node:watch": "npm run test:node -- --reporter min --watch",
"test:node:coverage": "nyc npm run test:node",
"test": "npm run -s test:node:coverage && npm run -s test:browser",
"browser-build": "node tools/browser-build.js test",
"build": "npm run build:browser && npm run build:node:production && npm run build:module",
"build:debug": "npm run build:browser:debug && npm run build:node:debug",
"build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps",
"build:node": "babel src -d dist --source-maps",
"build:node:debug": "cross-env BABEL_ENV=development npm run build:node",
"build:node:production": "cross-env BABEL_ENV=production npm run build:node",
"build:browser": "cross-env BABEL_ENV=production node tools/browser-build.js prepublish",
"build:browser:debug": "cross-env BABEL_ENV=development ENV=browser node tools/browser-build.js prepublish"
},
"keywords": [
"image",
"image processing",
"image manipulation",
"png",
"jpg",
"jpeg",
"bmp",
"resize",
"scale",
"crop"
],
"author": "Oliver Moran <oliver.moran@gmail.com>",
"license": "MIT",
"dependencies": {
"@babel/polyfill": "^7.0.0-rc.1",
"any-base": "^1.1.0",
"bmp-js": "0.1.0",
"buffer": "^5.2.0",
"exif-parser": "^0.1.12",
"file-type": "^9.0.0",
"jpeg-js": "^0.3.4",
"load-bmfont": "^1.3.0",
"mkdirp": "0.5.1",
"omggif": "^1.0.9",
"phin": "^2.9.1",
"pixelmatch": "^4.0.2",
"pngjs": "^3.3.3",
"tinycolor2": "^1.4.1",
"utif": "^2.0.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0-rc.1",
"@babel/core": "^7.0.0-rc.1",
"@babel/plugin-proposal-class-properties": "^7.0.0-rc.1",
"@babel/plugin-syntax-object-rest-spread": "^7.0.0-rc.1",
"@babel/preset-env": "^7.0.0-rc.1",
"@babel/register": "^7.0.0-rc.1",
"babel-eslint": "^8.2.6",
"babel-plugin-add-module-exports": "^0.3.2",
"babel-plugin-istanbul": "^4.1.6",
"babel-plugin-source-map-support": "^2.0.1",
"babel-plugin-transform-inline-environment-variables": "^0.4.3",
"babelify": "^9.0.0",
"browserify": "^16.2.2",
"cross-env": "^5.2.0",
"envify": "^4.1.0",
"express": "^4.16.3",
"husky": "^1.0.0-rc.13",
"karma": "^3.0.0",
"karma-browserify": "^5.3.0",
"karma-chrome-launcher": "^2.2.0",
"karma-firefox-launcher": "^1.1.0",
"karma-generic-preprocessor": "^1.1.0",
"karma-mocha": "^1.3.0",
"karma-mocha-reporter": "^2.2.5",
"lint-staged": "^7.2.0",
"mocha": "^5.2.0",
"nyc": "^12.0.2",
"prettier": "^1.14.2",
"should": "^13.2.3",
"source-map-support": "^0.5.8",
"tfilter": "^1.0.1",
"uglify-js": "^3.4.7",
"xo": "^0.22.0"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,css,md}": [
"prettier --write",
"git add"
]
},
"prettier": {
"singleQuote": true,
"tabWidth": 4
},
"xo": {
"parser": "babel-eslint",
"extends": [
"prettier"
],
"plugins": [
"prettier"
],
"env": [
"browser",
"node",
"jest"
],
"ignores": [
"omggif.js"
],
"rules": {
"capitalized-comments": 0,
"unicorn/number-literal-case": 0,
"no-control-regex": 1,
"prefer-rest-params": 1,
"no-new": 0,
"no-console": [
2,
{
"allow": [
"warn",
"error"
]
}
],
"max-params": [
1,
6
]
},
"overrides": [
{
"files": "**/test/*.js",
"esnext": false,
"rules": {
"max-nested-callbacks": 0
}
}
]
},
"nyc": {
"sourceMap": false,
"instrument": false,
"reporter": [
"text",
"text-summary",
"lcov",
"html"
],
"exclude": [
"src/modules/*.js",
"test/*.js"
]
}
}