capucine 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. data/README.md +4 -27
  2. data/VERSION +1 -1
  3. data/capucine.gemspec +40 -2
  4. data/content/default.yaml +13 -10
  5. data/content/shared/capucine.yaml +10 -6
  6. data/content/templates/compass_config.erb +3 -0
  7. data/examples/with-all/.compass_config.rb +13 -0
  8. data/examples/with-all/capucine.yaml +30 -0
  9. data/examples/with-all/coffeescript/app.coffee +7 -0
  10. data/examples/with-all/public/css/import/YOUR_OLD_CSS +0 -0
  11. data/examples/with-all/public/css_generated/screen.css +105 -0
  12. data/examples/with-all/public/images/favicon/apple-touch-icon-114x114-precomposed.png +0 -0
  13. data/examples/with-all/public/images/favicon/apple-touch-icon-57x57-precomposed.png +0 -0
  14. data/examples/with-all/public/images/favicon/apple-touch-icon-72x72-precomposed.png +0 -0
  15. data/examples/with-all/public/images/favicon/apple-touch-icon-precomposed.png +0 -0
  16. data/examples/with-all/public/images/favicon/favicon.png +0 -0
  17. data/examples/with-all/public/js/app.js +11 -0
  18. data/examples/with-all/public/js_generated/app.js +8 -0
  19. data/examples/with-all/public/js_generated/app.min.js +1 -0
  20. data/examples/with-all/public/js_generated/modules/jquery.js +4 -0
  21. data/examples/with-all/public/js_generated/modules/jquery.min.js +1 -0
  22. data/examples/with-all/sass/_main.scss +22 -0
  23. data/examples/with-all/sass/_responsive.scss +20 -0
  24. data/examples/with-all/sass/screen.scss +8 -0
  25. data/examples/with-coffeescript/capucine.yaml +30 -0
  26. data/examples/with-coffeescript/coffeescript/app.coffee +7 -0
  27. data/examples/with-coffeescript/public/js_generated/app.js +8 -0
  28. data/examples/with-coffeescript/public/js_generated/app.min.js +1 -0
  29. data/examples/with-incloudr/.compass_config.rb +13 -0
  30. data/examples/with-incloudr/capucine.yaml +30 -0
  31. data/examples/with-incloudr/public/js_generated/modules/jquery.js +4 -0
  32. data/examples/with-incloudr/public/js_generated/modules/jquery.min.js +1 -0
  33. data/examples/with-sass-and-compass/.compass_config.rb +13 -0
  34. data/examples/with-sass-and-compass/capucine.yaml +30 -0
  35. data/examples/with-sass-and-compass/public/css/import/YOUR_OLD_CSS +0 -0
  36. data/examples/with-sass-and-compass/public/css_generated/screen.css +105 -0
  37. data/examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-114x114-precomposed.png +0 -0
  38. data/examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-57x57-precomposed.png +0 -0
  39. data/examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-72x72-precomposed.png +0 -0
  40. data/examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-precomposed.png +0 -0
  41. data/examples/with-sass-and-compass/public/images/favicon/favicon.png +0 -0
  42. data/examples/with-sass-and-compass/sass/_main.scss +22 -0
  43. data/examples/with-sass-and-compass/sass/_responsive.scss +20 -0
  44. data/examples/with-sass-and-compass/sass/screen.scss +8 -0
  45. data/lib/settings.rb +22 -1
  46. data/lib/tools.rb +3 -3
  47. data/spec/capucine/capucine_spec.rb +0 -42
  48. metadata +41 -3
data/README.md CHANGED
@@ -105,26 +105,6 @@ Once you have configured the `capucine.yaml` and write some Sass and/or CoffeeSc
105
105
  In developement, you might want to **launch the watcher**. This will compile everything once and compile files on changes (use and abuse it):
106
106
 
107
107
  capucine watch
108
-
109
- Maybe you have configured Sass + CoffeeScript in your `capucine.yaml` file but you just want to compile/watch the Sass or the CoffeeScript. You can specify them in this way :
110
-
111
- capucine compile:coffee
112
- capucine compile:sass
113
- capucine compile:incloudr
114
-
115
- This works too :
116
-
117
- capucine watch:sass
118
- capucine watch:coffee
119
-
120
-
121
- *Why there is no `capucine watch:incloudr` ?*
122
- The Incloudr tool will be explained.
123
-
124
- Default to :
125
-
126
- capucine compile:all
127
- capucine watch:all
128
108
 
129
109
 
130
110
  ## Let's recap
@@ -152,15 +132,10 @@ So, you can use **(simple recap)** :
152
132
  - Compile Once
153
133
 
154
134
  capucine compile
155
- capucine compile:sass
156
- capucine compile:coffee
157
- capucine compile:incloudr
158
135
 
159
136
  - Or Watch (Stop with Ctrl + C)
160
137
 
161
138
  capucine watch
162
- capucine watch:sass
163
- capucine watch:coffee
164
139
 
165
140
 
166
141
  # Incloudr
@@ -285,14 +260,16 @@ All directories are relative to the root project (the parent directory of the `c
285
260
 
286
261
  ### Sass :
287
262
 
263
+
264
+ - `sass_files_dir` : Directory where you place your `.scss / .sass` files.
265
+ - `sass_output_dir` : Where your Sass will be compiled.
266
+
288
267
  - `use_libsass` : For the future.
289
268
  - `sass_images_dir` : For Compass.
290
- - `sass_output_dir` : Where your Sass will be compiled.
291
269
  - `sass_line_comments` : Remove line comments for the output.
292
270
  - `sass_css_generated_style` : expanded (dev), compact, or compressed (prod).
293
271
  - `sass_options` : Raw Sass options. Will be passed to Compass configuration.
294
272
  - `compass_config` : Passed to Compass config.
295
-
296
273
  - `compass_plugins` : A list of plugins. `gem_name` or `plugin_name|gem_name`
297
274
  Ex : `- compass-capucine` or `- compass_twitter_bootstrap`.
298
275
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/capucine.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capucine"
8
- s.version = "0.2.3"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Damian Le Nouaille"]
12
- s.date = "2012-06-07"
12
+ s.date = "2012-06-10"
13
13
  s.description = "Improve your worlkflow"
14
14
  s.email = "dam@dln.name"
15
15
  s.executables = ["capucine"]
@@ -43,6 +43,44 @@ Gem::Specification.new do |s|
43
43
  "content/shared/sass/screen.scss",
44
44
  "content/templates/cmd_help.erb",
45
45
  "content/templates/compass_config.erb",
46
+ "examples/with-all/.compass_config.rb",
47
+ "examples/with-all/capucine.yaml",
48
+ "examples/with-all/coffeescript/app.coffee",
49
+ "examples/with-all/public/css/import/YOUR_OLD_CSS",
50
+ "examples/with-all/public/css_generated/screen.css",
51
+ "examples/with-all/public/images/favicon/apple-touch-icon-114x114-precomposed.png",
52
+ "examples/with-all/public/images/favicon/apple-touch-icon-57x57-precomposed.png",
53
+ "examples/with-all/public/images/favicon/apple-touch-icon-72x72-precomposed.png",
54
+ "examples/with-all/public/images/favicon/apple-touch-icon-precomposed.png",
55
+ "examples/with-all/public/images/favicon/favicon.png",
56
+ "examples/with-all/public/js/app.js",
57
+ "examples/with-all/public/js_generated/app.js",
58
+ "examples/with-all/public/js_generated/app.min.js",
59
+ "examples/with-all/public/js_generated/modules/jquery.js",
60
+ "examples/with-all/public/js_generated/modules/jquery.min.js",
61
+ "examples/with-all/sass/_main.scss",
62
+ "examples/with-all/sass/_responsive.scss",
63
+ "examples/with-all/sass/screen.scss",
64
+ "examples/with-coffeescript/capucine.yaml",
65
+ "examples/with-coffeescript/coffeescript/app.coffee",
66
+ "examples/with-coffeescript/public/js_generated/app.js",
67
+ "examples/with-coffeescript/public/js_generated/app.min.js",
68
+ "examples/with-incloudr/.compass_config.rb",
69
+ "examples/with-incloudr/capucine.yaml",
70
+ "examples/with-incloudr/public/js_generated/modules/jquery.js",
71
+ "examples/with-incloudr/public/js_generated/modules/jquery.min.js",
72
+ "examples/with-sass-and-compass/.compass_config.rb",
73
+ "examples/with-sass-and-compass/capucine.yaml",
74
+ "examples/with-sass-and-compass/public/css/import/YOUR_OLD_CSS",
75
+ "examples/with-sass-and-compass/public/css_generated/screen.css",
76
+ "examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-114x114-precomposed.png",
77
+ "examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-57x57-precomposed.png",
78
+ "examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-72x72-precomposed.png",
79
+ "examples/with-sass-and-compass/public/images/favicon/apple-touch-icon-precomposed.png",
80
+ "examples/with-sass-and-compass/public/images/favicon/favicon.png",
81
+ "examples/with-sass-and-compass/sass/_main.scss",
82
+ "examples/with-sass-and-compass/sass/_responsive.scss",
83
+ "examples/with-sass-and-compass/sass/screen.scss",
46
84
  "lib/capucine.rb",
47
85
  "lib/cdnjs.rb",
48
86
  "lib/coffeescript.rb",
data/content/default.yaml CHANGED
@@ -2,30 +2,33 @@ sass: false
2
2
  coffee: false
3
3
  incloudr: false
4
4
 
5
- # ----------------------------------------
6
- use_libsass: false
7
-
8
- sass_images_dir: public/images
5
+ # ---------------[ SASS ]------------------------
9
6
  sass_files_dir: sass
10
7
  sass_output_dir: public/css_generated
8
+
9
+ use_libsass: false
10
+ sass_images_dir: public/images
11
11
  sass_line_comments: false
12
- sass_css_generated_style: expanded
12
+ sass_css_generated_style: expanded # compact | expanded | compressed
13
13
  sass_options: '{:cache => false}'
14
14
 
15
- compass_config: {}
16
- compass_plugins:
17
- - compass-capucine
18
-
19
15
  sass_import_css: false
20
16
  sass_import_formats: css to sass
21
17
  sass_import_css_dir: public/css/import
22
18
  sass_import_output_dir: sass/converted
23
19
 
20
+ # ---------------[ COMPASS ]------------------------
21
+ compass_config: {}
22
+ compass_plugins:
23
+ - compass-capucine
24
+
25
+ # ---------------[ COFFEESCRIPT ]--------------------------
24
26
  coffeescript_bare: false
25
27
  coffeescript_files_dir: coffeescript
26
28
  coffeescript_output_dir: public/js_generated
27
29
 
30
+ # ---------------[ INCLOUDR ]------------------------
28
31
  incloudr_output_dir: public/js_generated/modules
29
32
  incloudr_libs: []
30
33
 
31
- # DOCUMENTATION : http://capucine.dln.name
34
+ # DOCUMENTATION : http:// capucine.dln.name
@@ -2,27 +2,31 @@ sass: true
2
2
  # coffee: true
3
3
  # incloudr: true
4
4
 
5
- # # ----------------------------------------
6
- # sass_images_dir: public/images
5
+ # # ---------------[ SASS ]------------------------
7
6
  # sass_files_dir: sass
8
7
  # sass_output_dir: public/css_generated
8
+
9
+ # sass_images_dir: public/images
9
10
  # sass_line_comments: false
10
11
  # sass_css_generated_style: expanded # compact | expanded | compressed
11
12
  # sass_options: '{:cache => false}'
12
13
 
13
- # compass_config: {}
14
- # compass_plugins:
15
- # - compass-capucine
16
-
17
14
  # sass_import_css: false
18
15
  # sass_import_formats: css to sass
19
16
  # sass_import_css_dir: public/css/import
20
17
  # sass_import_output_dir: sass/converted
21
18
 
19
+ # # ---------------[ COMPASS ]------------------------
20
+ # compass_config: {}
21
+ # compass_plugins:
22
+ # - compass-capucine
23
+
24
+ # # ---------------[ COFFEESCRIPT ]--------------------------
22
25
  # coffeescript_bare: false
23
26
  # coffeescript_files_dir: coffeescript
24
27
  # coffeescript_output_dir: public/js_generated
25
28
 
29
+ # # ---------------[ INCLOUDR ]------------------------
26
30
  # incloudr_output_dir: public/js_generated/modules
27
31
  # incloudr_libs:
28
32
  # - name: jquery
@@ -1,3 +1,6 @@
1
+ # !!!! NEVER EDIT THIS FILE !!!!
2
+ # ALWAYS EDIT : capucine.yaml
3
+
1
4
  <% if config["compass_plugins_list"] and config["compass_plugins_list"].length != 0 %>
2
5
  <% for plugin in config["compass_plugins_list"] %>
3
6
  require "<%= plugin %>"
@@ -0,0 +1,13 @@
1
+
2
+
3
+ require "compass-capucine"
4
+
5
+
6
+
7
+ images_dir = "public/images"
8
+ sass_dir = "sass"
9
+ css_dir = "public/css_generated"
10
+ line_comments = false
11
+ output_style = :expanded
12
+ sass_options = {:cache => false}
13
+
@@ -0,0 +1,30 @@
1
+ sass: true
2
+ coffee: true
3
+ incloudr: true
4
+
5
+ # # ----------------------------------------
6
+ # sass_images_dir: public/images
7
+ # sass_files_dir: sass
8
+ # sass_output_dir: public/css_generated
9
+ # sass_line_comments: false
10
+ # sass_css_generated_style: expanded # compact | expanded | compressed
11
+ # sass_options: '{:cache => false}'
12
+
13
+ # compass_config: {}
14
+ # compass_plugins:
15
+ # - compass-capucine
16
+
17
+ # sass_import_css: false
18
+ # sass_import_formats: css to sass
19
+ # sass_import_css_dir: public/css/import
20
+ # sass_import_output_dir: sass/converted
21
+
22
+ # coffeescript_bare: false
23
+ # coffeescript_files_dir: coffeescript
24
+ # coffeescript_output_dir: public/js_generated
25
+
26
+ # incloudr_output_dir: public/js_generated/modules
27
+ incloudr_libs:
28
+ - name: jquery
29
+
30
+ # DOCUMENTATION : http:// capucine.dln.name
@@ -0,0 +1,7 @@
1
+ AppCoffee =
2
+ initialize: ->
3
+
4
+
5
+ # AppCoffee.initialize()
6
+ # OR
7
+ # jQuery AppCoffee.initialize
File without changes
@@ -0,0 +1,105 @@
1
+ html, body, div, span, applet, object, iframe,
2
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
+ a, abbr, acronym, address, big, cite, code,
4
+ del, dfn, em, img, ins, kbd, q, s, samp,
5
+ small, strike, strong, sub, sup, tt, var,
6
+ b, u, i, center,
7
+ dl, dt, dd, ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td,
10
+ article, aside, canvas, details, embed,
11
+ figure, figcaption, footer, header, hgroup,
12
+ menu, nav, output, ruby, section, summary,
13
+ time, mark, audio, video {
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ font-size: 100%;
18
+ font: inherit;
19
+ vertical-align: baseline;
20
+ }
21
+
22
+ body {
23
+ line-height: 1;
24
+ }
25
+
26
+ ol, ul {
27
+ list-style: none;
28
+ }
29
+
30
+ table {
31
+ border-collapse: collapse;
32
+ border-spacing: 0;
33
+ }
34
+
35
+ caption, th, td {
36
+ text-align: left;
37
+ font-weight: normal;
38
+ vertical-align: middle;
39
+ }
40
+
41
+ q, blockquote {
42
+ quotes: none;
43
+ }
44
+ q:before, q:after, blockquote:before, blockquote:after {
45
+ content: "";
46
+ content: none;
47
+ }
48
+
49
+ a img {
50
+ border: none;
51
+ }
52
+
53
+ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
54
+ display: block;
55
+ }
56
+
57
+ /* */
58
+ .unselectable {
59
+ -moz-user-select: -moz-none;
60
+ -khtml-user-select: none;
61
+ -webkit-user-select: none;
62
+ user-select: none;
63
+ }
64
+
65
+ .cf {
66
+ clear: both;
67
+ display: block;
68
+ *zoom: 1;
69
+ }
70
+ .cf:before, .cf:after {
71
+ content: "\0020";
72
+ display: table;
73
+ }
74
+ .cf:after {
75
+ clear: both;
76
+ }
77
+
78
+ .scale {
79
+ max-width: 100%;
80
+ height: auto;
81
+ }
82
+
83
+ body {
84
+ font: normal 12px "Lucida Grande", "Tahoma", Arial, sans-serif;
85
+ color: #111111;
86
+ }
87
+
88
+ a:active, .pressed:active {
89
+ position: relative;
90
+ top: 1px;
91
+ }
92
+
93
+ p, b, strong, i, blockquote {
94
+ line-height: 1.5em;
95
+ }
96
+
97
+ .wrap {
98
+ margin: 0 auto;
99
+ text-align: left;
100
+ min-width: 320px;
101
+ width: auto !important;
102
+ width: 320px;
103
+ max-width: 960px;
104
+ width: expression(document.body.clientWidth > parseInt("960px") ? "960px" : "auto");
105
+ }
@@ -0,0 +1,11 @@
1
+ (function() {
2
+
3
+ var App = {
4
+ initialize: function() {
5
+ },
6
+ };
7
+
8
+ // App.initialize();
9
+ // OR
10
+ // jQuery(App.initialize);
11
+ }).call(this);
@@ -0,0 +1,8 @@
1
+ (function() {
2
+ var AppCoffee;
3
+
4
+ AppCoffee = {
5
+ initialize: function() {}
6
+ };
7
+
8
+ }).call(this);
@@ -0,0 +1 @@
1
+ (function(){var AppCoffee;AppCoffee={initialize:function(){}}}).call(this);