-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackage.json
120 lines (120 loc) · 4.8 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
119
120
{
"name": "typedeck",
"version": "1.5.2",
"description": "A TypeScript library for playing cards",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"browser": "build/browser/index.js",
"repository": "https://github.com/mitch-b/typedeck",
"author": "Mitchell Barry <[email protected]>",
"license": "MIT",
"scripts": {
"info": "npm-scripts-info",
"build": "trash build && npm run-s build:main && npm run-s build:module && npm run-s build:browser-deps && npm run-s build:browser && npm run-s build:browser-cjs && npm run-s build:resolve-sourcemaps",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p config/exports/tsconfig.module.json",
"build:browser-deps": "mkdirp build/temp && browserify node_modules/hash.js/lib/hash.js --standalone hash -o build/temp/hash.js",
"build:browser": "rollup -c config/exports/rollup.config.js -f es -o build/browser/index.js",
"build:browser-cjs": "rollup -c config/exports/rollup.config.js -f cjs -o build/browser/index.cjs.js",
"build:resolve-sourcemaps": "sorcery -i build/browser/index.js && sorcery -i build/browser/index.cjs.js",
"build:tests": "trash test && node config/exports/build-tests.js",
"lint": "tslint --project . src/**/*.ts",
"unit": "npm run-s build && npm run-s build:tests && nyc ava",
"check-coverage": "nyc check-coverage --lines 100 --functions 100 --branches 100",
"test": "npm run-s lint && npm run-s unit && npm run-s check-coverage",
"watch": "npm run-s build && npm run-s build:tests -- --no-browser && concurrently -r --kill-others \"npm run --silent build:main -- -w\" \"npm run --silent build:tests -- -w --no-browser\" \"sleepms 2000 && ava --watch\"",
"cov": "npm run-s unit && npm run-s html-coverage && opn coverage/index.html",
"html-coverage": "nyc report --reporter=html",
"send-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"docs": "npm run-s docs:html && opn build/docs/index.html",
"docs:html": "typedoc src/index.ts --exclude **/*.spec.ts --excludePrivate --mode file --theme default --out build/docs",
"docs:json": "typedoc --mode file --json build/docs/typedoc.json src/index.ts",
"docs:publish": "npm run-s docs:html && gh-pages -d build/docs",
"changelog": "standard-version",
"release": "npm run-s reset && npm run-s build && npm run-s test && npm run-s changelog",
"reset": "git clean -dfx && git reset --hard"
},
"scripts-info": {
"info": "Display information about the scripts",
"build": "(Trash and re)build the library",
"lint": "Lint all typescript source files",
"unit": "Build the library and run unit tests",
"test": "Lint, build, and test the library",
"watch": "Watch source files, rebuild library on changes, rerun relevant tests",
"cov": "Run tests, generate the HTML coverage report, and open it in a browser",
"docs": "Generate HTML API documentation and open it in a browser",
"docs:publish": "Generate HTML API documentation and push it to GitHub Pages",
"docs:json": "Generate API documentation in typedoc JSON format",
"changelog": "Bump package.json version, update CHANGELOG.md, tag a release",
"reset": "Delete all untracked files and reset the repo to the last commit",
"release": "Clean, build, test, publish docs, and prepare release (a one-step publish process)"
},
"engines": {
"node": ">=4.5"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/node": "^13.13.5",
"ava": "^3.8.1",
"browserify": "^16.2.3",
"codecov": "^3.1.0",
"concurrently": "^5.2.0",
"cpx": "^1.5.0",
"gh-pages": "^2.0.1",
"mkdirp": "^0.5.1",
"npm-scripts-info": "^0.3.9",
"nyc": "^15.0.1",
"opn-cli": "^3.1.0",
"rollup": "^0.66.6",
"rollup-plugin-alias": "^1.4.0",
"rollup-plugin-commonjs": "^9.2.0",
"rollup-plugin-node-resolve": "^3.4.0",
"rollup-watch": "^4.3.1",
"sleep-ms": "^2.0.1",
"sorcery": "^0.10.0",
"standard-version": "^8.0.0",
"trash-cli": "^1.4.0",
"ts-node": "^8.10.1",
"tsconfig-paths": "^3.9.0",
"tslint": "^5.11.0",
"tslint-config-standard": "^8.0.1",
"typedoc": "^0.17.6",
"typescript": "^3.8.3"
},
"keywords": [
"card",
"playing cards",
"casino",
"library",
"poker",
"poker chips",
"node",
"typescript"
],
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"include": [
"src/**/*.ts"
],
"exclude": [
"**/*.spec.ts",
"**/*.spec.js",
"**/errors/**"
]
},
"ava": {
"failFast": true,
"files": [
"build/main/**/*.spec.js",
"!build/**/errors/**"
],
"require": [
"ts-node/register",
"tsconfig-paths/register"
]
},
"dependencies": {
"tslib": "^1.9.3"
}
}