forked from vicalejuri/iching
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (37 loc) · 1.27 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
PROJECT_PATH=$(PWD)
ADDRESS=14Cfnhat4wniiSAtk7vx6qKreo3qteBvEb
ZERO_PATH=/Users/frangossauro/workspace/Codes/ZeroNet
MOBILE_PROJECT_PATH=/Users/frangossauro/workspace/mobile_apps/xyz.frangossauro.iching/iching/www/
build:
gulp build
build_dist:
gulp build:dist;
cp src/assets/img/tarot/* dist/assets/img/tarot/;
sed -i -e 's/\/assets\///g' dist/assets/main.css
gh-publish: build_dist
echo "Done. Cloning into /tmp/react-iching"
cp -R dist/ /tmp/dist/ ;
git clone . /tmp/react-iching ; \
git remote add gh [email protected]:barrabinfc/react-iching.git ; \
echo "Branch gh-pages"; \
cd /tmp/react-iching ; git checkout gh-pages ; \
echo "Copying dist files"; \
cp -R /tmp/dist/* /tmp/react-iching/ ; \
git add * ; git commit -m 'Publishing' ; \
echo "Publishing"; \
git push origin gh-pages ; \
git push gh gh-pages ; \
echo "Done"
copy_files:
rsync -avz --exclude-from '.ignore' --progress $(PROJECT_PATH)/dist/ $(ZERO_PATH)/data/$(ADDRESS)
watch:
watchmedo shell-command --command="make copy_files" --patterns="*.html;*.js;*.coffee;*.css" --recursive $(PROJECT_PATH)/src
serve:
make watch & \
# zeronet --debug;
zero-sign:
zeronet siteSign $(ADDRESS);
zero-publish:
zeronet sitePublish $(ADDRESS);
zero-release: copy_files zero-sign zero-publish
@echo "all done"