-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (39 loc) · 1.05 KB
/
Makefile
File metadata and controls
50 lines (39 loc) · 1.05 KB
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
.PHONY: test lookbook install docs lint-fix start release check_clean
install:
bundle install
npm install
cd lookbook && bundle install
docs:
cd lookbook
bin/dev
start:
rm -rf app/assets/vendor/lightning_ui_kit.*
overmind start -f Procfile.dev
lint-fix:
bundle exec standardrb --fix
test:
bundle exec rake test
check_clean:
@if [ -n "$$(git status --porcelain)" ]; then \
echo "❌ Uncommitted changes found. Please commit or stash them first."; \
exit 1; \
fi
kamal:
env $$(cat .env | xargs) kamal $(filter-out $@,$(MAKECMDGOALS))
deploy:
env $$(cat .env | xargs) kamal deploy
build:
sh -c 'rm -rf app/assets/vendor/lightning_ui_kit.*'
@echo "Building assets..."
@NODE_ENV=production npm run prod:build:js
@NODE_ENV=production npm run prod:build:css
release: check_clean
sh -c 'rm -rf app/assets/vendor/lightning_ui_kit.*'
NODE_ENV=production npm run prod:build:js
NODE_ENV=production npm run prod:build:css
git add .
git commit -am "Build new release assets"
gem bump -t -v $(filter-out $@,$(MAKECMDGOALS))
gem release -p -g
%:
@: