forked from vim-awesome/vim-awesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (48 loc) · 1.58 KB
/
Makefile
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
SHELL=/bin/bash
.PHONY: local deploy seed_data aggregate_tags test review_submissions clean
local:
tools/local_server.sh
deploy:
@if [ `whoami` = 'vim' ]; then \
tools/deploy.sh; \
else \
cat tools/deploy.sh | ssh [email protected] DEPLOYER=`whoami` sh; \
fi
init_db:
PYTHONPATH=. python db/init_db.py
# TODO(david): This probably no longer works and needs to be updated.
seed_data:
@echo "*** Warning! This has not been updated in a while and is not guaranteed to work. ***"
@echo
@echo
@echo "Creating tables with some example data"
PYTHONPATH=. python db/seed.py
@echo "Scraping 100 plugins from vim.org."
PYTHONPATH=. python tools/scrape/scrape.py -s vim.org 100
@echo "Extracting GitHub repo URLs from descriptions."
PYTHONPATH=. python tools/scrape/build_github_index.py -s vim.org
@echo "Scraping discovered GitHub repos."
PYTHONPATH=. python tools/scrape/scrape.py -s github 30
aggregate_tags:
PYTHONPATH=. python tools/aggregate.py
build_github_index:
PYTHONPATH=. python tools/scrape/build_github_index.py
test:
tox
npm run test
npm run lint
upgrade_deps:
pip-compile --upgrade requirements.in --output-file requirements.txt
dump:
rethinkdb dump -e vim_awesome -f rethinkdb_dump.tar.gz
restore:
scp [email protected]:~/vim-awesome/rethinkdb_dump.tar.gz \
rethinkdb_dump_remote.tar.gz
rethinkdb restore rethinkdb_dump_remote.tar.gz --force
auto_categorize:
PYTHONPATH=. python tools/auto_categorize.py
review_submissions:
PYTHONPATH=. python tools/review_submitted_plugins.py
clean:
find . -name '*.pyc' -delete
bundle exec compass clean --config conf/compass.rb