-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
55 lines (37 loc) · 1.31 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
error:
echo "Available option: server, client"
server:
dotnet watch run --project src/Server
client:
dotnet fable watch --cwd src/Client -o output -s --run bunx vite
style:
bunx tailwindcss -i ./src/Client/input.css -o ./src/Client/output/output.css --watch
migrate_up:
dotnet migrondi up --dry-run false
build_fable:
dotnet fable --cwd src/Client -o output
build_style:
bunx tailwindcss -i ./src/Client/input.css -o ./src/Client/output/output.css --minify
build_client:
bunx vite build ./src/Client
publish_client: build_fable build_style build_client
publish_server:
dotnet publish src/Server -c Release -o publish
copy_client:
cp -R ./src/Client/dist publish/wwwroot
copy_email:
cp -R ./src/Server/Templates publish/Templates
publish_project: publish_client publish_server copy_client copy_email
test_e2e_setup:
docker compose -p rss-bookmarkr -f docker-compose.e2e.yaml up --build -d
test_e2e_migration_backup:
mv migrondi.json migrondi.bak.json ;\
mv migrondi.e2e.json migrondi.json
test_e2e_migration_restore:
mv migrondi.json migrondi.e2e.json ;\
mv migrondi.bak.json migrondi.json
test_e2e_migration: test_e2e_migration_backup migrate_up test_e2e_migration_restore
test_e2e_teardown:
docker compose -p rss-bookmarkr -f docker-compose.e2e.yaml down
test_unit_server:
dotnet run --project src/Server.Test