-
Notifications
You must be signed in to change notification settings - Fork 6
/
makefile
61 lines (48 loc) · 2.09 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
HR = \n---------------------------------------------
HEADER = ---------------------------------------------\n _____ _ _ _ _____ _____ \n| __ \| | | | | / ____| /\ | __ \ \n| |__) | | | | | | (___ / \ | |__) | \n| ___/| | | | | \___ \ / /\ \ | _ / \n| | | |__| | |____ ____) / ____ \| | \ \ \n|_| \____/|______|_____/_/ \_\_| \_\ \n\n---------------------------------------------
CHECK=\033[32m✔\033[39m
SASSLINTVER = 0.44.0
BUILD := build
build:
@ echo "${HEADER}"
@ echo "Installing Composer and its dependencies...${HR}\n"
@ curl -sS https://getcomposer.org/installer | php -d detect_unicode=Off
@ php composer.phar install
@ echo "\n${CHECK} Done"
@ echo "${HR}\nInstalling Homebrew...${HR}\n"
/bin/bash -c "$$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
@ echo "\n${CHECK} Done"
@ echo "${HR}\nInstalling Ansible...${HR}\n"
@ -brew install ansible
@ echo "\n${CHECK} Done"
@ echo "${HR}\nInstalling Virtualbox...${HR}\n"
@ -brew cask install virtualbox
@ echo "\n${CHECK} Done"
@ echo "${HR}\nInstalling Ruby via rbenv...${HR}\n"
@ -brew install rbenv
@ -rbenv init
@ -rbenv install 2.3.0
@ -rbenv global 2.3.0
@ echo "\n${CHECK} Done"
@ echo "${HR}\nInstalling scss-lint...${HR}\n"
@ sudo gem install scss_lint -v ${SASSLINTVER} --no-user-install
@ echo "\n${CHECK} Done"
@ echo "${HR}\nInstalling Grunt and its libraries...${HR}\n"
@ npm install -g grunt-cli
@ npm install
@ echo "\n${CHECK} Done"
@ echo "${HR}\nInstalling Git hooks...${HR}"
@ cp hooks/* .git/hooks/
@ chmod -R u+x .git/hooks/*
@ echo "\n${CHECK} Done"
@ echo "${HR}\nCopy Proxima Nova (if available)...${HR}"
@ mkdir -p ./fonts
@ touch ./fonts/_config.fonts.scss
@ cp -r ../pulsar-fonts/src/* ./fonts 2>/dev/null || :
@ git update-index --skip-worktree fonts/_config.fonts.scss
@ echo "\n${CHECK} Done"
@ echo "${HR}\nCompiling the stylesheets...${HR}\n"
@ grunt sass:dev
@ echo "${CHECK} Done\n"
@ echo "Run 'npm start' to start the Pulsar development environment."
@ echo "Run 'grunt' to watch for Sass changes."