-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: .gitignore README.md bourbon/layout.scss bower.json compass/_vars.scss compass/base.scss demo/demo-20.html demo/demo.html demo/index.html demo/javascripts/jquery.js demo/sass/_functions.scss demo/sass/_mixins.scss demo/sass/_vars.scss demo/sass/base.scss demo/sass/layout.scss demo/sass/skeleton-fluid.scss demo/sass/skeleton-twelve.scss demo/sass/skeleton-twenty.scss demo/sass/skeleton.scss demo/stylesheets/base.css demo/stylesheets/layout.css demo/stylesheets/skeleton-fluid.css demo/stylesheets/skeleton-twelve.css demo/stylesheets/skeleton-twenty.css demo/stylesheets/skeleton.css sass/_vars.scss sass/base.scss sass/layout.scss sass/scss/base.scss skeleton/themes/sphenoid/_base.scss
- Loading branch information
Showing
145 changed files
with
1,705 additions
and
10,300 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
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
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
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,22 @@ | ||
// This file stores all of your global project configuration options | ||
// and will not be wiped out by upgrading skeleton sass. Run the | ||
// setup.sh script from command line or follow the steps below | ||
// to manually configure: | ||
// | ||
// MANUAL CONFIGURATON | ||
// 1. Rename _MYconfig.scss to _[projectname].config.scss | ||
// 2. Rename skeleton_template.scss to skeleton.scss | ||
// 3. Navigate to core and edit _config.scss using your favorite | ||
// text editor. Add the following to the end of _config.scss: | ||
// @import " _[projectname].config.scss"; | ||
// | ||
// HOW TO RUN AUTOMATED SETUP | ||
// 1. Open terminal and issue the following command: | ||
// bin/setup.sh | ||
// 2. Follow prompts from script | ||
|
||
// GLOBAL VARIABLES - include your variables here or alter the predefined vars | ||
// See skeleton file for copyright info | ||
|
||
// MY VARIABLES | ||
// $foo: "bar"; |
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,62 @@ | ||
module Helper | ||
|
||
def isValidName(name) | ||
if name !~ /[-a-zA-Z0-9_]+/i | ||
return false | ||
end | ||
|
||
return true | ||
end | ||
|
||
def yesno(question) | ||
puts question | ||
answer = gets.chomp | ||
while answer !~ /y(es)?|n(o)?/i do | ||
puts "Invalid input. #{question} [y/n]" | ||
answer = gets.chomp | ||
yesno(question) | ||
end | ||
|
||
if answer =~ /y(es)/i | ||
return true | ||
end | ||
|
||
return false | ||
end | ||
|
||
def nfqr(question, regex, errorMsg = "Invalid input. #{question}", isValid = nil) | ||
puts isValid != 0 ? question : errorMsg | ||
reply = gets.chomp | ||
|
||
if reply =~ regex | ||
return nfqr(question, regex, errorMsg, 0) | ||
end | ||
|
||
return reply | ||
end | ||
|
||
def cp(file, destination) | ||
if !File.exists?(file) # fail quickly if not found | ||
raise SystemCallError, "#{file} was not found or does not exist" | ||
end | ||
|
||
dest = File.open(destination, "w") | ||
|
||
File.open(file, "r") do |f| | ||
f.each_line do |line| | ||
dest.puts(line) | ||
end | ||
end | ||
|
||
dest.close | ||
end | ||
|
||
def gem_available?(name) | ||
Gem::Specification.find_by_name(name) | ||
rescue Gem::LoadError | ||
return false | ||
rescue | ||
return Gem.available?(name) | ||
end | ||
|
||
end |
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,35 @@ | ||
#!/usr/bin/env ruby -w | ||
|
||
require_relative("assets/helper") | ||
|
||
BEGIN { | ||
if Dir.pwd =~ /bin$/i | ||
Dir.chdir("../") | ||
end | ||
puts "Setup utility working..." | ||
} | ||
|
||
include Helper | ||
|
||
STDOUT.flush | ||
name = Helper.nfqr("Please enter in the name of your project with no spaces or special characters other than - or _ and press [ENTER]", /[^\w\-]/, "Project name invalid, please try again and press [ENTER]") | ||
|
||
puts "Project name is #{name}" | ||
puts "Renaming _MYconfig.scss to _#{name}.config.scss" | ||
File.rename("_MYconfig.scss", "_#{name}.config.scss") | ||
|
||
puts "Renaming skeleton_template to skeleton" | ||
if File.exists?("skeleton_template.scss") | ||
File.rename("skeleton_template.scss", "skeleton.scss") | ||
else | ||
puts "skeleton_template.scss does not exist. Skipping..." | ||
end | ||
|
||
puts "Adding user override to core/_config.scss" | ||
file = File.open("skeleton/core/_config.scss", "a") | ||
file.puts "@import \"../../_#{name}.config.scss\"" | ||
file.close | ||
|
||
END { | ||
puts "Setup utility is complete!" | ||
} |
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,40 @@ | ||
#!/usr/bin/env ruby -w | ||
|
||
require_relative("assets/helper") | ||
|
||
BEGIN { | ||
if Dir.pwd =~ /bin$/i | ||
Dir.chdir("../") | ||
end | ||
puts "Theme setup utility working..." | ||
} | ||
|
||
include Helper | ||
|
||
STDOUT.flush | ||
name = Helper.nfqr("Please enter in the name of your theme with no spaces or special characters other than - or _ and press [ENTER]", /[^\w\-]/, "Theme name invalid, please try again and press [ENTER]") | ||
puts "Theme name is #{name}" | ||
|
||
if !Dir.exists?("skeleton/themes/#{name}") | ||
Dir.mkdir("skeleton/themes/#{name}") | ||
end | ||
|
||
# create files and folders | ||
puts "Creating required files and folders..." | ||
file = File.open("skeleton/themes/_loader.scss", "w") | ||
file.puts("// #{name} theme created with love using Skeleton Sass theme setup script!") | ||
file.puts("\n@import \"#{name}/vars\";") | ||
file.puts("@import \"#{name}/base\";") | ||
file.puts("@import \"sphenoid/skeleton\"; // Override manually if you wish to create your own grid") | ||
puts "skeleton/themes/_loader.scss has been updated... moving on" | ||
|
||
if !Dir.exists?("skeleton/themes/#{name}/marrow") | ||
Dir.mkdir("skeleton/themes/#{name}/marrow") | ||
end | ||
|
||
Helper.cp("skeleton/themes/demo/_base.scss", "skeleton/themes/#{name}/_base.scss") | ||
Helper.cp("skeleton/themes/demo/_vars.scss", "skeleton/themes/#{name}/_vars.scss") | ||
|
||
END { | ||
puts "Theme setup complete!" | ||
} |
Oops, something went wrong.