forked from automaidan/judges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
36 lines (36 loc) · 1.75 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
{
"name": "judges",
"version": "0.1.0",
"description": "Simple webscrapper plus SPA site for visualisation public information about judges of Ukraine.",
"main": "index.js",
"scripts": {
"set-project's-node-version": "n $(head -n 1 .node-version);",
"onboarding": "(cd front-end && npm i) && (cd scraper && npm i)",
"postinstall": "npm run onboarding",
"import-declarations-in-local-mongodb": "cd ./declarations.com.ua; for f in *.json; do mongoimport --db judges --collection declarations --host 127.0.0.1 --port 27017 --jsonArray $f; done",
"erase": "./node_modules/.bin/rimraf dist && mkdir dist",
"build": "npm run erase && (cd front-end && npm run build) && (cd scraper && npm run scrap)",
"copy:static": "copyfiles .nojekyll 404.html CNAME robots.txt ./dist/ && echo 'Static files copied.'",
"copy:json": "copyfiles './source/*' './judges/*.json' ./dist/ && echo 'JSON files copied.'",
"copy:all": "npm run copy:static && npm run copy:json",
"push-to-gh-pages": "GIT_DEPLOY_DIR=dist GIT_DEPLOY_BRANCH=gh-pages GIT_DEPLOY_REPO=https://[email protected]/automaidan/judges.git ./deploy.sh",
"deploy:frontend": "npm run erase && (cd front-end && npm run build) && npm run copy:all && npm run push-to-gh-pages",
"deploy:all": "(cd scraper && npm run scrap) && git add . && git commit -m 'Rescrap' && git push origin master && npm run deploy:frontend && npm run push-to-gh-pages"
},
"repository": {
"type": "git",
"url": "https://github.com/automaidan/judges.git"
},
"keywords": [
"node.js"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/automaidan/judges/issues"
},
"homepage": "https://github.com/automaidan/judges",
"dependencies": {
"rimraf": "2.5.4"
}
}