-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 loc) · 2.34 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
{
"name": "hsk-words",
"version": "1.0.0",
"description": "Get information about HSK words.",
"keywords": [
"chinese",
"hanzi",
"hsk",
"mandarin",
"pinyin"
],
"homepage": "https://github.com/pepebecker/hsk-words#readme",
"bugs": {
"url": "https://github.com/pepebecker/hsk-words/issues"
},
"license": "MIT",
"author": "Pepe Becker <[email protected]> (http://pepebecker.com)",
"files": [
"data"
],
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/pepebecker/hsk-words.git"
},
"scripts": {
"b1": "node build/build.js build/HSK1.txt > data/hsk1.json",
"b2": "node build/build.js build/HSK2.txt > data/hsk2.json",
"b3": "node build/build.js build/HSK3.txt > data/hsk3.json",
"b4": "node build/build.js build/HSK4.txt > data/hsk4.json",
"b5": "node build/build.js build/HSK5.txt > data/hsk5.json",
"b6": "node build/build.js build/HSK6.txt > data/hsk6.json",
"build": "npm run setup && npm run buildAll && npm run cleanup",
"buildAll": "npm run b1 && npm run b2 && npm run b3 && npm run b4 && npm run b5 && npm run b6",
"cleanup": "rm -rf build/HSK*.txt",
"cover": "istanbul cover _mocha",
"coveralls": "npm run cover -- --report lcovonly && cat ./coverage/lcov.info | coveralls",
"dl1": "curl -sL http://data.hskhsk.com/lists/HSK%20Official%20With%20Definitions%202012%20L1.txt > build/HSK1.txt",
"dl2": "curl -sL http://data.hskhsk.com/lists/HSK%20Official%20With%20Definitions%202012%20L2.txt > build/HSK2.txt",
"dl3": "curl -sL http://data.hskhsk.com/lists/HSK%20Official%20With%20Definitions%202012%20L3.txt > build/HSK3.txt",
"dl4": "curl -sL http://data.hskhsk.com/lists/HSK%20Official%20With%20Definitions%202012%20L4.txt > build/HSK4.txt",
"dl5": "curl -sL http://data.hskhsk.com/lists/HSK%20Official%20With%20Definitions%202012%20L5.txt > build/HSK5.txt",
"dl6": "curl -sL http://data.hskhsk.com/lists/HSK%20Official%20With%20Definitions%202012%20L6.txt > build/HSK6.txt",
"download": "npm run dl1 && npm run dl2 && npm run dl3 && npm run dl4 && npm run dl5 && npm run dl6",
"setup": "npm run download && mkdir -p data",
"test": "mocha"
},
"devDependencies": {
"coveralls": "^3.0.1",
"istanbul": "^0.4.5",
"mocha": "^5.1.1",
"mocha-lcov-reporter": "^1.3.0",
"should": "^13.2.1"
}
}