1 | {
|
2 | "name": "chinese-whispers",
|
3 | "version": "0.3.9",
|
4 | "description": "Chinese Whispers Algorithm",
|
5 | "main": "bundles/chinese-whispers.umd.js",
|
6 | "types": "dist/src/index.d.ts",
|
7 | "scripts": {
|
8 | "build": "tsc --module es6 --skipLibCheck",
|
9 | "clean": "shx rm -fr dist/*",
|
10 | "dist": "npm run clean && npm run build && npm run rollup && npm run dist:es6to5",
|
11 | "dist:es6to5": "tsc --out ./bundles/chinese-whispers.umd.js --target es5 --allowJs bundles/chinese-whispers.es6.umd.js --lib es6,dom",
|
12 | "demo": "npm run example:demo",
|
13 | "example:demo": "ts-node examples/demo",
|
14 | "lint": "npm run lint:es && npm run lint:ts",
|
15 | "lint:ts": "tsc --noEmit",
|
16 | "pack": "npm pack",
|
17 | "rollup": "rollup -c",
|
18 | "test": "npm run lint && npm run test:unit",
|
19 | "test:unit": "tap \"src/**/*.spec.ts\" \"tests/**/*.spec.ts\"",
|
20 | "test:pack": "bash -x scripts/npm-pack-testing.sh",
|
21 | "lint:es": "eslint --ignore-pattern fixtures/ 'src/**/*.ts' 'tests/**/*.ts' 'examples/**/*.ts'"
|
22 | },
|
23 | "repository": {
|
24 | "type": "git",
|
25 | "url": "git+https://github.com/huan/chinese-whispers.git"
|
26 | },
|
27 | "keywords": [
|
28 | "chinese",
|
29 | "whispers",
|
30 | "algorithm",
|
31 | "cluster",
|
32 | "knn"
|
33 | ],
|
34 | "author": "Huan LI <zixia@zixia.net>",
|
35 | "license": "Apache-2.0",
|
36 | "bugs": {
|
37 | "url": "https://github.com/huan/chinese-whispers/issues"
|
38 | },
|
39 | "homepage": "https://github.com/huan/chinese-whispers#readme",
|
40 | "dependencies": {
|
41 | "jsnetworkx": "^0.3.4",
|
42 | "knuth-shuffle": "^1.0.1",
|
43 | "numjs": "^0.16.0"
|
44 | },
|
45 | "devDependencies": {
|
46 | "@chatie/eslint-config": "^0.6.18",
|
47 | "@chatie/git-scripts": "^0.2.5",
|
48 | "@chatie/semver": "^0.4.7",
|
49 | "@chatie/tsconfig": "^0.6.1",
|
50 | "@types/numjs": "^0.14.2",
|
51 | "pkg-jq": "^0.2.4",
|
52 | "rollup": "^1.16.0",
|
53 | "shx": "^0.3.2",
|
54 | "tap": "^14.2.2",
|
55 | "tstest": "^0.4.2"
|
56 | },
|
57 | "files": [
|
58 | "package.json",
|
59 | "README.md",
|
60 | "CHANGELOG.md",
|
61 | "LICENSE",
|
62 | "bundles/",
|
63 | "src/",
|
64 | "dist/"
|
65 | ],
|
66 | "git": {
|
67 | "scripts": {
|
68 | "pre-push": "npx git-scripts-pre-push"
|
69 | }
|
70 | },
|
71 | "publishConfig": {
|
72 | "tag": "next"
|
73 | }
|
74 | } |
\ | No newline at end of file |