-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
52 lines (41 loc) · 1.07 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
watch = mimosa watch
build = mimosa build
.PHONY : start startd build build-opt buildo clean pack package dist distribute
start:
@echo "[x] Building assets and starting development server..."
@$(watch) -s
startd:
@echo "[x] Cleaning compiled directory, building assets and starting development server.."
@$(watch) -sd
build:
@echo "[x] Building assets..."
@$(build)
build-opt:
@echo "[x] Building and optimizing assets..."
@$(build) -o
buildo:
@echo "[x] Building and optimizing assets..."
@$(build) -o
clean:
@echo "[x] Removing compiled files..."
@mimosa clean
pack:
@echo "[x] Building and packaging application..."
@$(build) -omp
package:
@echo "[x] Building and packaging application..."
@$(build) -omp
dist:
@echo "[x] Building and distributing application..."
@mimosa clean --force
@$(build) -om
rm -Rf dist
cp -R public dist
cp views/index-optimize.html dist/index.html
distribute:
@echo "[x] Building and distributing application..."
@mimosa clean --force
@$(build) -om
rm -Rf dist
cp -R public dist
cp views/index-optimize.html dist/index.html