-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
103 lines (103 loc) · 2.96 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
{
"name": "simplr-logger",
"version": "1.0.1",
"description": "Simple JavaScript logger written in TypeScript that can be used in browser or node application.",
"main": "./dist/simplr-logger.js",
"directories": {
"lib": "./dist"
},
"types": "@types/index.d.ts",
"scripts": {
"test": "tsc -p . --noEmit && npm run tslint && jest",
"jest": "jest",
"coveralls": "coveralls < coverage/lcov.info",
"tslint": "tslint --project . --config ./tslint.json",
"build": "webpack",
"postbuild": "uglifyjs ./dist/simplr-logger.js -o ./dist/simplr-logger.min.js --compress --mangle",
"build-handlers": "webpack --config webpack.handlers-config.js",
"postbuild-handlers": "uglifyjs ./dist/simplr-logger-handlers.js -o ./dist/simplr-logger-handlers.min.js --compress --mangle",
"precopy-handlers": "rimraf ./handlers.js && rimraf ./handlers.d.ts && cd scripts/copy-handlers && npm i",
"copy-handlers": "rimraf @types && tsc -p . --outDir _dist_temp && cd scripts/copy-handlers && npm run copy",
"watch": "webpack --watch",
"prerelease": "npm run clear",
"release": "npm run build && npm run build-handlers && npm run copy-handlers",
"preversion": "npm run release",
"prepublishOnly": "npm run release",
"clear": "rimraf @types & rimraf dist"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SimplrJS/simplr-logger.git"
},
"files": [
"dist",
"@types",
"*.MD",
"*.js",
"*.d.ts",
"!*config.js"
],
"keywords": [
"typescript",
"javascript",
"logger",
"simplr",
"console",
"node",
"file-system"
],
"author": "SimplrJS <[email protected]> (https://github.com/SimplrJS)",
"contributors": [
"Giedrius Grabauskas <[email protected]> (https://github.com/GiedriusGrabauskas)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/SimplrJS/simplr-logger/issues"
},
"homepage": "https://github.com/SimplrJS/simplr-logger#readme",
"devDependencies": {
"@types/jest": "^21.1.8",
"@types/node": "^8.0.53",
"coveralls": "^3.0.0",
"jest": "^21.2.1",
"rimraf": "^2.6.2",
"simplr-tslint": "0.0.1",
"ts-jest": "^21.2.3",
"ts-loader": "^3.1.1",
"tslint": "^5.8.0",
"typescript": "^2.6.1",
"uglify-js": "^3.2.0",
"webpack": "^3.8.1"
},
"dependencies": {
"tslib": "^1.8.0"
},
"jest": {
"collectCoverage": true,
"mapCoverage": true,
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"globals": {
"ts-jest": {
"skipBabel": true,
"tsConfigFile": "./tsconfig.json"
}
},
"testRegex": "__tests__/.*\\.(test|spec).(ts|tsx|js)$",
"moduleNameMapper": {
"simplr-logger": "<rootDir>/src/index"
},
"collectCoverageFrom": [
"src/**/*.{ts,tsx}",
"!src/handlers/**/*",
"!*",
"!**/__tests__/**/*"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
]
}
}