forked from InvoiceShelf/InvoiceShelf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
73 lines (65 loc) · 2.58 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
.PHONY: dist-gen dist-clean dist clean test
composer:
rm -r vendor 2> /dev/null || true
composer install --prefer-dist --no-dev
npm-build:
rm -r public/build 2> /dev/null || true
rm -r node_modules 2> /dev/null || true
npm install
npm run build
dist-gen: clean composer npm-build
@echo "packaging..."
@mkdir InvoiceShelf
@mkdir InvoiceShelf/public
@cp -r app InvoiceShelf
@cp -r bootstrap InvoiceShelf
@cp -r config InvoiceShelf
@cp -r database InvoiceShelf
@cp -r public/build InvoiceShelf/public
@cp -r public/favicons InvoiceShelf/public
@cp -r public/.htaccess InvoiceShelf/public
@cp -r public/index.php InvoiceShelf/public
@cp -r public/robots.txt InvoiceShelf/public
@cp -r public/web.config InvoiceShelf/public
@cp -r resources InvoiceShelf
@cp -r lang InvoiceShelf
@cp -r routes InvoiceShelf
@cp -r storage InvoiceShelf
@cp -r vendor InvoiceShelf 2> /dev/null || true
@cp -r version.md InvoiceShelf
@cp -r .env.example InvoiceShelf
@cp -r artisan InvoiceShelf
@cp -r composer.json InvoiceShelf
@cp -r composer.lock InvoiceShelf
@cp -r LICENSE InvoiceShelf
@cp -r readme.md InvoiceShelf
@cp -r SECURITY.md InvoiceShelf
@cp -r server.php InvoiceShelf
@touch InvoiceShelf/storage/logs/laravel.log
dist-clean: dist-gen
find InvoiceShelf -wholename '*/[Tt]ests/*' -delete
find InvoiceShelf -wholename '*/[Tt]est/*' -delete
@rm -r InvoiceShelf/storage/framework/cache/data/* 2> /dev/null || true
@rm InvoiceShelf/storage/framework/sessions/* 2> /dev/null || true
@rm InvoiceShelf/storage/framework/views/* 2> /dev/null || true
@rm InvoiceShelf/storage/logs/* 2> /dev/null || true
dist: dist-clean
@zip -r InvoiceShelf.zip InvoiceShelf
clean:
@rm build/* 2> /dev/null || true
@rm -r InvoiceShelf 2> /dev/null || true
@rm -r public/build 2> /dev/null || true
@rm -r node_modules 2> /dev/null || true
@rm -r vendor 2> /dev/null || true
install: composer npm-build
php artisan migrate
test:
@if [ -x "vendor/bin/pest" ]; then \
./vendor/bin/pest --stop-on-failure; \
else \
echo ""; \
echo "Please install pest:"; \
echo ""; \
echo " composer install"; \
echo ""; \
fi