forked from hexlet-basics/hexlet-basics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
make-app.mk
85 lines (60 loc) · 1.45 KB
/
make-app.mk
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
test:
bin/rails test -d
RAILS_LOCALE=ru bin/rails test -d
check: test lint vulnerability-check
vulnerability-check:
bundle exec brakeman
ci-check: lint
bin/rails db:create
#ls -la public/packs-test
DISABLE_SPRING=1 bin/rails test
language-load:
bin/rails exercises:load[${L}]
fixtures-load:
bin/rails db:fixtures:load
frontend:
npx nodemon -L --watch webpack.config.js --exec npm run build:watch
setup:
bin/setup
yarn install
db-reset:
bin/rails db:drop
bin/rails db:create
bin/rails db:migrate
start:
rm -rf tmp/pids/server.pid
bundle exec rails s -p 3000 -b '0.0.0.0'
start-production:
bin/rails db:migrate
bin/rails server -e production
clean:
bin/rails db:drop
precompile-assets:
bundle exec rails assets:precompile
lint: lint-eslint lint-rubocop lint-slim
lint-fix: lint-eslint-fix lint-rubocop-fix
lint-style:
npx stylelint "app/assets/stylesheets/*.scss"
lint-style-fix:
npx stylelint --fix "app/assets/stylesheets/*.scss"
lint-rubocop:
bundle exec rubocop
lint-rubocop-fix:
bundle exec rubocop -A
lint-eslint:
npx eslint app/javascript --ext .js,.jsx
lint-eslint-fix:
npx eslint app/javascript --ext .js,.jsx --fix
lint-slim:
bundle exec slim-lint app/views/
js-routes:
bundle exec rails js_routes:generate
db-prepare:
bin/rails db:drop || true
bin/rails db:create || true
bin/rails db:schema:load || true
bin/rails db:migrate || true
bin/rails db:fixtures:load || true
webpacker:
bin/webpacker-dev-server
.PHONY: test