-
Notifications
You must be signed in to change notification settings - Fork 13
/
package.json
43 lines (43 loc) · 1.6 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
{
"name": "kabarvirus",
"version": "1.0.0",
"description": "KabarVirus.com",
"main": "src/server.js",
"scripts": {
"start": "node src/server.js",
"build": "npm run grab-stats && npm run grab-hospitals && npm run grab-news && npm run grab-hoaxes && npm run generate",
"grab-stats": "npm run grab-stats-data && npm run grab-stats-timestamp",
"grab-stats-data": "curl -L -s -o stats.json dekontaminasi.com/api/id/covid19/stats",
"grab-stats-timestamp": "curl -L -s -o update.timestamp dekontaminasi.com/api/id/covid19/stats.timestamp",
"grab-hospitals": "curl -L -s -o hospitals.json dekontaminasi.com/api/id/covid19/hospitals",
"grab-news": "curl -L -s -o news.json dekontaminasi.com/api/id/covid19/news",
"grab-hoaxes": "curl -L -s -o hoaxes.json dekontaminasi.com/api/id/covid19/hoaxes",
"generate": "node src/generate.js",
"test": "npm run validate && npm run check-format",
"validate": "html-validate --rule no-deprecated-attr:1 \"public/**/*.html\"",
"check-format": "prettier --check \"**/*.js\"",
"format-code": "prettier --write \"**/*.js\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/ariya/kabarvirus.git"
},
"author": "Ariya Hidayat",
"license": "MIT",
"devDependencies": {
"alive-server": "^1.2.9",
"chokidar": "^3.5.3",
"clean-css": "^4.2.3",
"html-validate": "^7.10.0",
"mustache": "^4.0.1",
"prettier": "^2.0.2",
"uglify-js": "^3.8.1"
},
"prettier": {
"tabWidth": 4,
"printWidth": 120,
"singleQuote": true,
"quoteProps": "consistent",
"trailingComma": "none"
}
}