-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmakefile
More file actions
71 lines (51 loc) · 1.81 KB
/
makefile
File metadata and controls
71 lines (51 loc) · 1.81 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -- GRUNTIFY -----------------------------------------------------------------------------------------
#
# Name : Bootstrap for Gruntify
# Descrition : simple program to start a bootstrap for Gruntify
# Version : 0.1.0
# Author : Vitor Britto <code@vitorbritto.com.br>
#
#
# -----------------------------------------------------------------------------------------------------
# -------------------------------------------------------------------------------------
# CONFIG
# -------------------------------------------------------------------------------------
# Main
DONE = \033[32m✔\033[32m
ERROR = \033[31m✖\033[31m
INFO = \033[36m→\033[36m
LINE = -----------------------------------------
# Scaffolding
APP = app/{scripts/{modules,requires},styles,images/icons,fonts,views,spec/{helpers,modules}}
PUBLIC = public/{scripts,styles,images/icons,fonts}
SCRIPT = app/scripts/main.js
STYLE = app/styles/style.styl
VIEW = app/index.html
# Global Tasks
global:
@echo " $(INFO) Installing Dependencies... please wait."
@npm install -q
@rm -rf makefile logo-gruntify.jpg README.md
# -------------------------------------------------------------------------------------
# NEW PROJECT
# -------------------------------------------------------------------------------------
new: init_new global
@echo ""
@echo " $(CHECK) Done!"
init_new:
@echo " $(INFO) Scaffolding"
@bash -c "mkdir -p $(APP)"
@bash -c "mkdir -p $(PUBLIC)"
@touch $(SCRIPT)
@touch $(STYLE)
@touch $(VIEW)
# -------------------------------------------------------------------------------------
# EXISTING PROJECT
# -------------------------------------------------------------------------------------
current: init_current global
@echo ""
@echo " $(CHECK) Done!"
init_current:
@echo " $(INFO) Scaffolding"
@mv * .[^.]* ..
@rm gruntify