-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from kurisubrooks/dev
Caramel 1.4 - Check CHANGELOG.md
- Loading branch information
Showing
37 changed files
with
565 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
.sass-cache | ||
*.css.map | ||
*.scssc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Caramel — Sass Compiling Script | ||
# Created by toma678, kurisubrooks & joshhartigan | ||
|
||
puts ("[*] Caramel Sass Compiler") | ||
puts ("[*] Syntax: 'ruby path/to/compile.rb path/to/caramel.scss'") | ||
puts ("") | ||
|
||
file = ARGV[0] | ||
|
||
begin | ||
if File.extname(file)==".scss" | ||
|
||
else | ||
puts ("[!] ERROR: Incorrect File Format, must be .scss!") | ||
abort ("[-] Usage: 'ruby path/to/compile.rb path/to/caramel.scss'") | ||
end | ||
|
||
rescue TypeError | ||
puts ("[!] ERROR: File Missing. You didn't include a file!") | ||
puts ("[-] Please enter the file path:") | ||
file = gets.chomp | ||
puts ("") | ||
if File.extname(file)==".scss" | ||
|
||
else | ||
puts ("[!] ERROR: Incorrect File Format, must be .scss!") | ||
puts ("[-] Make sure there's no space after 'file.scss'") | ||
abort ("[-] Usage: 'ruby path/to/compile.rb path/to/caramel.scss'") | ||
end | ||
end | ||
|
||
out = file.split(".").first | ||
sass1 = "sass --sourcemap=none --cache=/tmp/sass "+file.to_s+" "+out.to_s+".css" | ||
sass2 = "sass --sourcemap=none --cache=/tmp/sass "+file.to_s+" "+out.to_s+".min.css --style compressed" | ||
|
||
puts ("[*] Compiling > .css") | ||
system sass1 | ||
|
||
puts ("[*] Minifying > .min.css") | ||
system sass2 | ||
|
||
puts ("[*] Done! Press Return to end the script.") | ||
ending = gets |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.