-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpackage.json
79 lines (79 loc) · 2.59 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
{
"name": "invert-color",
"version": "2.0.0",
"description": "Generates inverted (opposite) version of the given color.",
"repository": "onury/invert-color",
"author": "Onur Yildirim <[email protected]>",
"license": "MIT",
"main": "lib/invert.js",
"browser": "lib/invert.min.js",
"module": "lib/esm/invert.js",
"jsnext:main": "lib/esm/invert.js",
"types": "./lib/invert.d.ts",
"files": [
"lib",
"LICENSE"
],
"scripts": {
"clean": "rimraf ./lib",
"lint": "tslint ./src/**/*.ts",
"build:esm": "tsc --module es2015 --target es2015 --outDir lib/esm",
"build:cjs": "tsc --module commonjs --target es5 --outDir lib/cjs",
"build:es-for-umd": "tsc --module es2015 --target es5 --outDir lib",
"build:umd": "rollup lib/invert.js --format umd --name invert --exports default --sourcemap --banner '/*! @license https://github.com/onury/invert-color */' --file lib/invert.js",
"build:umd:min": "cd lib && uglifyjs --compress --mangle --source-map --comments -o invert.min.js -- invert.js",
"build": "npm run clean && npm run lint && npm run build:esm && npm run build:cjs && npm run build:es-for-umd && npm run build:umd && npm run build:umd:min",
"test": "jest --verbose --no-cache",
"cover": "jest --coverage --verbose --no-cache",
"coveralls": "cat test/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js -v"
},
"jest": {
"testEnvironment": "node",
"preset": "ts-jest",
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"roots": [
"<rootDir>/lib",
"<rootDir>/test"
],
"testPathIgnorePatterns": [
"/node_modules/",
"/backup/",
"/test/coverage/",
"/anim/"
],
"collectCoverageFrom": [
"src/invert.ts"
],
"coverageDirectory": "./test/coverage"
},
"keywords": [
"color",
"invert",
"convert",
"generate",
"opposite",
"hex",
"rgb"
],
"devDependencies": {
"@types/jest": "^23.3.9",
"@types/node": "^10.12.3",
"coveralls": "^3.0.2",
"fork-ts-checker-webpack-plugin": "^0.4.15",
"jest": "^23.6.0",
"jest-cli": "^23.6.0",
"rimraf": "^2.6.2",
"rollup": "^0.67.0",
"ts-jest": "^23.10.4",
"tslint": "^5.11.0",
"typescript": "^3.1.6",
"uglifyjs": "^2.4.11"
}
}