-
Notifications
You must be signed in to change notification settings - Fork 38
/
package.json
62 lines (62 loc) · 1.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
{
"name": "performant-array-to-tree",
"version": "1.11.0",
"description": "Converts an array of items with ids and parent ids to a nested tree in a performant `O(n)` way. Runs in browsers and node.",
"keywords": [
"array to tree",
"list to tree",
"unflatten",
"array-helper",
"array-manipulations",
"data-structures",
"datastructures",
"algorithms",
"tree-structure",
"array",
"list",
"collection",
"pointer",
"parent",
"children",
"child",
"tree",
"navigation",
"nested",
"util",
"traverse",
"descendants",
"ancestors"
],
"main": "build/arrayToTree.min.js",
"types": "build/arrayToTree.d.ts",
"author": "Philip Stanislaus <6912756+philipstanislaus@users.noreply.github.com>",
"repository": "philipstanislaus/performant-array-to-tree",
"license": "MIT",
"dependencies": {},
"devDependencies": {
"@types/chai": "^4.2.7",
"@types/mocha": "^9.1.0",
"chai": "^4.1.2",
"codecov": "^3.8.1",
"mocha": "^9.2.0",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"ts-mocha": "^9.0.2",
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0",
"typescript": "^4.1.3",
"uglify-js": "^3.7.5"
},
"scripts": {
"preversion": "yarn && npm run format && npm run lint-fix && npm run build && npm run test",
"version": "git add .",
"postversion": "git push && git push --tags",
"build": "rm -rf build && tsc && npm run uglify",
"format": "yarn prettier --write .",
"lint": "tslint --project tsconfig.json './src/**/*.ts'",
"lint-fix": "tslint --project tsconfig.json './src/**/*.ts' --fix",
"test": "ts-mocha src/**/*.spec.ts --timeout 10000",
"test-coverage": "nyc npm test && codecov",
"uglify": "uglifyjs build/arrayToTree.js --compress --mangle --output build/arrayToTree.min.js"
}
}