-
Notifications
You must be signed in to change notification settings - Fork 18
/
package.json
53 lines (53 loc) · 1.39 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
{
"name": "porreta",
"version": "1.8.0",
"description": "Get funny words in Brazilian Portuguese.",
"main": "index.js",
"scripts": {
"precommit": "npm run build",
"prepush": "npm run build",
"sort": "./bin/sort words.json > sorted.json && mv sorted.json words.json",
"lint": "jsonlint -q words.json",
"test": "npm run lint && tape test.js",
"total-words": "cat words.json | sed -n '/[[:alnum:]]/p' | wc -l | sed -e 's/[[:blank:]]//g'",
"readme": "WORDS=$(npm run total-words -s); cat README.template | sed -e 's/{total_words}/'\"$WORDS\"'/g' > README.md",
"validate": "npm ls",
"build": "npm run sort && npm run lint && npm run total-words && npm run readme"
},
"repository": {
"type": "git",
"url": "git+https://github.com/rafaelrinaldi/porreta.git"
},
"keywords": [
"word",
"words",
"list",
"array",
"random",
"brazil",
"brazilian",
"portuguese",
"funny"
],
"author": "Rafael Rinaldi",
"license": "MIT",
"bugs": {
"url": "https://github.com/rafaelrinaldi/porreta/issues"
},
"homepage": "https://github.com/rafaelrinaldi/porreta#readme",
"dependencies": {
"lodash": "^4.0.1"
},
"devDependencies": {
"husky": "^0.11.6",
"jsonlint": "^1.6.2",
"non-ascii": "^1.0.0",
"precommit-hook": "^3.0.0",
"tape": "^4.4.0"
},
"pre-commit": [
"sort",
"test",
"readme"
]
}