-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (39 loc) · 1.76 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
.PHONY: help
help:
@echo "\n\nComandos disponíveis:\n"
@echo "run: sobe o servidor de aplicação local.\n"
@echo "upgrade: atualiza dependências do projeto (iterativamente).\n"
@echo "build-release: gera build de produção.\n"
@echo "open-repo: abre página principal do repositório git do projeto\n"
@echo "build-deploy: compila versão de produção e faz deploy no firebase\n"
@echo "copy-edudu-flutter-build-web-to-resources: copia build web do edudu-flutter para _resources/edudu\n\n"
run:
rm -rf ./_site
elmstatic build
find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/<meta charset="utf-8">/<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">/g'
echo "Copiando feedrss"
cp _site/rss.xml _site/feedrss.xml
echo "Build finalizada"
http-server _site
copy-edudu-flutter-build-web-to-resources:
rm -rf _resources/edudu && mkdir _resources/edudu && cp -r ../edudu/build/web/* _resources/edudu/
@echo "\n\nCopiado build web do edudu-flutter para _resources/edudu\n\n"
upgrade:
elm-json upgrade
build-release:
rm -rf ./_site
elmstatic build
find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/<meta charset="utf-8">/<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">/g'
echo "Copiando feedrss"
cp _site/rss.xml _site/feedrss.xml
echo "Build finalizada"
open-repo:
open https://github.com/marciofrayze/segunda.tech-elmstatic
build-deploy:
rm -rf ./_site
elmstatic build
find . -type f -name "*.html" -print0 | xargs -0 sed -i -e 's/<meta charset="utf-8">/<meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">/g'
echo "Copiando feedrss"
cp _site/rss.xml _site/feedrss.xml
echo "Build finalizada"
cd _site && firebase deploy