scss-boilerplate-rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (19) hide show
  1. data/.gitignore +1 -0
  2. data/README.md +77 -5
  3. data/lib/generators/scss_boilerplate/install/install_generator.rb +2 -6
  4. data/lib/generators/scss_boilerplate/install/templates/{base → application}/chromeframe.css.scss +0 -0
  5. data/lib/generators/scss_boilerplate/install/templates/{base → application}/collections.css.scss +0 -0
  6. data/lib/generators/scss_boilerplate/install/templates/{base → application}/common.css.scss +0 -0
  7. data/lib/generators/scss_boilerplate/install/templates/{base → application}/document.css.scss +0 -0
  8. data/lib/generators/scss_boilerplate/install/templates/{base → application}/footers.css.scss +0 -0
  9. data/lib/generators/scss_boilerplate/install/templates/{base → application}/forms.css.scss +0 -0
  10. data/lib/generators/scss_boilerplate/install/templates/{base → application}/headers.css.scss +0 -0
  11. data/lib/generators/scss_boilerplate/install/templates/{base → application}/helpers.css.scss +0 -0
  12. data/lib/generators/scss_boilerplate/install/templates/{base → application}/image_replaces.css.scss +0 -0
  13. data/lib/generators/scss_boilerplate/install/templates/{base → application}/media_queries.css.scss +0 -0
  14. data/lib/generators/scss_boilerplate/install/templates/{base → application}/typography.css.scss +0 -0
  15. data/lib/generators/scss_boilerplate/install/templates/{base → application}/variables.css.scss +0 -0
  16. data/lib/generators/scss_boilerplate/install/templates/application.css.scss +25 -0
  17. data/scss-boilerplate-rails.gemspec +1 -1
  18. metadata +14 -14
  19. data/lib/generators/scss_boilerplate/install/templates/base.css.scss +0 -24
data/.gitignore CHANGED
@@ -11,5 +11,6 @@
11
11
  /db/*.sqlite3
12
12
 
13
13
  # Ignore all logfiles and tempfiles.
14
+ *.gem
14
15
  /log/*.log
15
16
  /tmp
data/README.md CHANGED
@@ -1,11 +1,83 @@
1
- Rails generator ...
1
+ SCSS Boilerplate
2
+ =========================
2
3
 
4
+ SCSS Boilerplate for Rails projects is a generator for creating scss partials within a namespace.
3
5
 
4
- Base partials:
5
6
 
6
- rails g scss_boilerplate:install
7
+ Installation
8
+ =========================
7
9
 
10
+ ##### 1. In your Gemfile
8
11
 
9
- Namespaced partials:
12
+ ```ruby
13
+ group :assets do
14
+ gem 'sass-rails'
15
+ gem 'coffee-rails'
16
+ gem 'uglifier'
17
+ gem 'compass-rails'
18
+ gem 'compass-h5bp'
19
+ gem 'scss-boilerplate-rails'
20
+ end
21
+ ```
10
22
 
11
- rails g scss_boilerplate:namespace posts
23
+ ##### 2. Install your bundle
24
+
25
+ ```
26
+ $ bundle install
27
+ ```
28
+
29
+ ##### 3. Run the generator
30
+
31
+ ```
32
+ $ rails generate scss_boilerplate:install
33
+ ```
34
+
35
+ ##### (Here's what it does)
36
+
37
+ create config/compass.rb
38
+ create app/assets/stylesheets/base.css.scss
39
+ create app/assets/stylesheets/base
40
+ create app/assets/stylesheets/base/chromeframe.css.scss
41
+ create app/assets/stylesheets/base/collections.css.scss
42
+ create app/assets/stylesheets/base/common.css.scss
43
+ create app/assets/stylesheets/base/document.css.scss
44
+ create app/assets/stylesheets/base/footers.css.scss
45
+ create app/assets/stylesheets/base/forms.css.scss
46
+ create app/assets/stylesheets/base/headers.css.scss
47
+ create app/assets/stylesheets/base/helpers.css.scss
48
+ create app/assets/stylesheets/base/image_replaces.css.scss
49
+ create app/assets/stylesheets/base/media_queries.css.scss
50
+ create app/assets/stylesheets/base/typography.css.scss
51
+ create app/assets/stylesheets/base/variables.css.scss
52
+ append app/assets/stylesheets/application.css.scss
53
+
54
+
55
+ ##### 4. And you're done!
56
+
57
+ rails server
58
+
59
+
60
+ Other Generators
61
+ =========================
62
+
63
+ ```
64
+ $ rails generate scss_boilerplate:namespace posts
65
+ ```
66
+
67
+ #####
68
+
69
+ create app/assets/stylesheets/posts.css.scss
70
+ create app/assets/stylesheets/posts
71
+ create app/assets/stylesheets/posts/collections.css.scss
72
+ create app/assets/stylesheets/posts/common.css.scss
73
+ create app/assets/stylesheets/posts/containers.css.scss
74
+ create app/assets/stylesheets/posts/footers.css.scss
75
+ create app/assets/stylesheets/posts/forms.css.scss
76
+ create app/assets/stylesheets/posts/headers.css.scss
77
+ create app/assets/stylesheets/posts/helpers.css.scss
78
+ create app/assets/stylesheets/posts/image_replaces.css.scss
79
+ create app/assets/stylesheets/posts/typography.css.scss
80
+ create app/assets/stylesheets/posts/variables.css.scss
81
+ append app/assets/stylesheets/application.css.scss
82
+
83
+
@@ -5,12 +5,8 @@ module ScssBoilerplate
5
5
 
6
6
  def generate_scss_install
7
7
  template "config/compass.rb"
8
- copy_file "base.css.scss", "app/assets/stylesheets/base.css.scss"
9
- directory "base", "app/assets/stylesheets/base"
10
- # add import to manifest
11
- manifest = "app/assets/stylesheets/application.css.scss"
12
- create_file manifest unless File.exists? manifest
13
- append_to_file manifest, "\n@import \"base.css.scss\";"
8
+ copy_file "application.css.scss", "app/assets/stylesheets/application.css.scss"
9
+ directory "application", "app/assets/stylesheets/application"
14
10
  end
15
11
  end
16
12
  end
@@ -0,0 +1,25 @@
1
+ /* Variables */
2
+ @import "application/variables";
3
+
4
+ /* CSS3 Compass Helpers */
5
+ @import "compass/css3";
6
+
7
+ /* Reset & Helpers */
8
+ @import "h5bp";
9
+ @include h5bp-normalize;
10
+ @include h5bp-helpers;
11
+ @include h5bp-media;
12
+
13
+ /* Application */
14
+ @import "application/helpers";
15
+ @import "application/chromeframe";
16
+ @import "application/typography";
17
+ @import "application/image_replaces";
18
+ @import "application/collections";
19
+ @import "application/document";
20
+ @import "application/headers";
21
+ @import "application/footers";
22
+ @import "application/common";
23
+ @import "application/forms";
24
+ @import "application/media_queries";
25
+
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'scss-boilerplate-rails'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.date = '2012-04-02'
5
5
  s.summary = "Rails support for scss-boilerplate."
6
6
  s.description = "Generate scss partials with a namespace."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scss-boilerplate-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -23,19 +23,19 @@ files:
23
23
  - README.md
24
24
  - lib/generators/scss_boilerplate/install/USAGE
25
25
  - lib/generators/scss_boilerplate/install/install_generator.rb
26
- - lib/generators/scss_boilerplate/install/templates/base.css.scss
27
- - lib/generators/scss_boilerplate/install/templates/base/chromeframe.css.scss
28
- - lib/generators/scss_boilerplate/install/templates/base/collections.css.scss
29
- - lib/generators/scss_boilerplate/install/templates/base/common.css.scss
30
- - lib/generators/scss_boilerplate/install/templates/base/document.css.scss
31
- - lib/generators/scss_boilerplate/install/templates/base/footers.css.scss
32
- - lib/generators/scss_boilerplate/install/templates/base/forms.css.scss
33
- - lib/generators/scss_boilerplate/install/templates/base/headers.css.scss
34
- - lib/generators/scss_boilerplate/install/templates/base/helpers.css.scss
35
- - lib/generators/scss_boilerplate/install/templates/base/image_replaces.css.scss
36
- - lib/generators/scss_boilerplate/install/templates/base/media_queries.css.scss
37
- - lib/generators/scss_boilerplate/install/templates/base/typography.css.scss
38
- - lib/generators/scss_boilerplate/install/templates/base/variables.css.scss
26
+ - lib/generators/scss_boilerplate/install/templates/application.css.scss
27
+ - lib/generators/scss_boilerplate/install/templates/application/chromeframe.css.scss
28
+ - lib/generators/scss_boilerplate/install/templates/application/collections.css.scss
29
+ - lib/generators/scss_boilerplate/install/templates/application/common.css.scss
30
+ - lib/generators/scss_boilerplate/install/templates/application/document.css.scss
31
+ - lib/generators/scss_boilerplate/install/templates/application/footers.css.scss
32
+ - lib/generators/scss_boilerplate/install/templates/application/forms.css.scss
33
+ - lib/generators/scss_boilerplate/install/templates/application/headers.css.scss
34
+ - lib/generators/scss_boilerplate/install/templates/application/helpers.css.scss
35
+ - lib/generators/scss_boilerplate/install/templates/application/image_replaces.css.scss
36
+ - lib/generators/scss_boilerplate/install/templates/application/media_queries.css.scss
37
+ - lib/generators/scss_boilerplate/install/templates/application/typography.css.scss
38
+ - lib/generators/scss_boilerplate/install/templates/application/variables.css.scss
39
39
  - lib/generators/scss_boilerplate/install/templates/config/compass.rb
40
40
  - lib/generators/scss_boilerplate/namespace/USAGE
41
41
  - lib/generators/scss_boilerplate/namespace/namespace_generator.rb
@@ -1,24 +0,0 @@
1
- /* Variables */
2
- @import "base/variables";
3
-
4
- /* CSS3 Compass Helpers */
5
- @import "compass/css3";
6
-
7
- /* Reset & Helpers */
8
- @import "h5bp";
9
- @include h5bp-normalize;
10
- @include h5bp-helpers;
11
- @include h5bp-media;
12
-
13
- /* Base */
14
- @import "base/helpers";
15
- @import "base/chromeframe";
16
- @import "base/typography";
17
- @import "base/image_replaces";
18
- @import "base/collections";
19
- @import "base/document";
20
- @import "base/headers";
21
- @import "base/footers";
22
- @import "base/common";
23
- @import "base/forms";
24
- @import "base/media_queries";