/
package.json
118 lines (118 loc) · 3.82 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
115
116
117
118
{
"name": "@next-gen/typescript-lib-starter",
"version": "1.4.0",
"description": "TypeScript library setup for multiple compilation targets using tsc and webpack",
"main": "lib/index.js",
"module": "lib-esm/index.js",
"jsnext:main": "lib-esm/index.js",
"umd:main": "umd/typescript-lib-starter.min.js",
"typings": "typings/index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/Hotell/typescript-lib-starter"
},
"author": "Martin Hochel",
"license": "MIT",
"engines": {
"node": ">=6.9"
},
"scripts": {
"cleanup": "shx rm -rf umd lib lib-esm typings coverage docs",
"prebuild": "npm run cleanup && npm run verify",
"build": " tsc && tsc --module es2015 --target es2015 --outDir lib-esm && webpack",
"docs": "typedoc -p . --theme minimal --target 'es6' --excludeNotExported --excludePrivate --ignoreCompilerErrors --exclude \"**/src/**/__tests__/*.*\" --out docs src/",
"test": "jest",
"test:watch": "npm test -- --watch",
"test:coverage": "npm test -- --coverage",
"ts:lint": "tslint --project tsconfig.json --type-check \"src/**/*.{ts,tsx}\"",
"ts:lint:fix": "npm run ts:lint -- --fix",
"ts:format:base": "prettier --single-quote --print-width 120 --trailing-comma es5 --no-semi --parser typescript {src,__{tests,mocks}__}/**/*.{ts,tsx}",
"ts:format": "npm run ts:format:base -- --list-different",
"ts:format:fix": "npm run ts:format:base -- --write",
"ts:style": "npm run ts:format && npm run ts:lint",
"ts:style:fix": "npm run ts:format:fix && npm run ts:lint:fix",
"verify": "npm run ts:style && npm test",
"commit": "git-cz",
"precommit": "lint-staged",
"commitmsg": "validate-commit-msg",
"prepush": "npm run verify",
"prerelase": "npm run build",
"release": "standard-version",
"postrelease": "npm run release:github && npm run release:npm",
"release:github": "git push --no-verify --follow-tags origin master",
"release:npm": "npm publish",
"release:preflight": "irish-pub",
"release:preflight:package": "npm pack",
"size": "shx echo \"Gzipped Size:\" && cross-var strip-json-comments --no-whitespace $npm_package_umd_main | gzip-size"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"validate-commit-msg": {
"types": "conventional-commit-types",
"maxSubjectLength": 120
}
},
"lint-staged": {
"src/**/*.{ts,tsx}": [
"ts:style:fix",
"git add"
]
},
"jest": {
"roots": [
"<rootDir>/src"
],
"transform": {
"^.+\\.tsx?$": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"mapCoverage": true,
"coveragePathIgnorePatterns": [
"<rootDir>/node_modules/",
"<rootDir>/lib/",
"<rootDir>/lib-esm/",
"<rootDir>/umd/",
"<rootDir>/src/.*(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$"
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 85
}
}
},
"dependencies": {},
"devDependencies": {
"@types/jest": "19.2.4",
"awesome-typescript-loader": "3.1.3",
"commitizen": "2.9.6",
"cross-var": "1.0.3",
"cz-conventional-changelog": "2.0.0",
"gzip-size-cli": "2.0.0",
"husky": "0.13.4",
"irish-pub": "0.2.0",
"jest": "20.0.4",
"lint-staged": "3.6.0",
"prettier": "1.4.2",
"shx": "0.2.2",
"standard-version": "4.0.0",
"strip-json-comments-cli": "1.0.1",
"ts-jest": "20.0.5",
"tslint": "5.4.2",
"tslint-config-standard": "5.0.2",
"tslint-react": "3.0.0",
"typedoc": "0.7.1",
"typescript": "2.3.4",
"validate-commit-msg": "2.12.1",
"webpack": "2.6.1"
}
}