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.
- data/.gitignore +1 -0
- data/README.md +77 -5
- data/lib/generators/scss_boilerplate/install/install_generator.rb +2 -6
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/chromeframe.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/collections.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/common.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/document.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/footers.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/forms.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/headers.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/helpers.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/image_replaces.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/media_queries.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/typography.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/{base → application}/variables.css.scss +0 -0
- data/lib/generators/scss_boilerplate/install/templates/application.css.scss +25 -0
- data/scss-boilerplate-rails.gemspec +1 -1
- metadata +14 -14
- data/lib/generators/scss_boilerplate/install/templates/base.css.scss +0 -24
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,83 @@
|
|
1
|
-
|
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
|
-
|
7
|
+
Installation
|
8
|
+
=========================
|
7
9
|
|
10
|
+
##### 1. In your Gemfile
|
8
11
|
|
9
|
-
|
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
|
-
|
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 "
|
9
|
-
directory "
|
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
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/chromeframe.css.scss
RENAMED
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/collections.css.scss
RENAMED
File without changes
|
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/document.css.scss
RENAMED
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/footers.css.scss
RENAMED
File without changes
|
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/headers.css.scss
RENAMED
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/helpers.css.scss
RENAMED
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/image_replaces.css.scss
RENAMED
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/media_queries.css.scss
RENAMED
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/typography.css.scss
RENAMED
File without changes
|
data/lib/generators/scss_boilerplate/install/templates/{base → application}/variables.css.scss
RENAMED
File without changes
|
@@ -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
|
+
|
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.
|
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/
|
27
|
-
- lib/generators/scss_boilerplate/install/templates/
|
28
|
-
- lib/generators/scss_boilerplate/install/templates/
|
29
|
-
- lib/generators/scss_boilerplate/install/templates/
|
30
|
-
- lib/generators/scss_boilerplate/install/templates/
|
31
|
-
- lib/generators/scss_boilerplate/install/templates/
|
32
|
-
- lib/generators/scss_boilerplate/install/templates/
|
33
|
-
- lib/generators/scss_boilerplate/install/templates/
|
34
|
-
- lib/generators/scss_boilerplate/install/templates/
|
35
|
-
- lib/generators/scss_boilerplate/install/templates/
|
36
|
-
- lib/generators/scss_boilerplate/install/templates/
|
37
|
-
- lib/generators/scss_boilerplate/install/templates/
|
38
|
-
- lib/generators/scss_boilerplate/install/templates/
|
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";
|