-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
48 lines (35 loc) · 958 Bytes
/
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
all: sintaxis-js sintaxis-ruby bundler-audit brakeman rubocop
sintaxis-js:
for i in `find app/assets/javascripts/ -name "*js" -or -name "*es6"`; do \
node -c $$i; \
done
for i in `find app/assets/javascripts/ -name "*coffee"`; do \
coffee -o /tmp/ $$i; \
done
sintaxis-ruby:
find . -name "*\.rb" -exec ruby -w -W2 -c {} ';'
instala-gemas:
grep "([0-9]" Gemfile.lock | sed -e "s/^ */doas gem install /g;s/ (/ -v /g;s/)//g" > /tmp/i.sh
doas chmod +x /tmp/i.sh
doas /tmp/i.sh
erd: # Antes de esto instalar graphviz con doas pkg_add graphviz
(cd test/dummy; \
bundle exec erd)
mv test/dummy/erd.pdf doc/
pdftoppm doc/erd.pdf doc/erd
convert doc/erd-1.ppm doc/erd.png
rm doc/erd-1.ppm
doc/dependencias.png: doc/dependencias.dot
dot -Tpng doc/dependencias.dot > doc/dependencias.png
bundler-audit:
bin/bundler-audit
brakeman:
bin/brakeman
rubocop:
bin/rubocop
c_brakeman:
bin/brakeman -I
c_rubocop:
bin/rubocop -a
yard:
yard