rugular 0.4.0 → 0.4.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9895febe3588522340a989787667333c945a16df
4
- data.tar.gz: 6d883bbad76d22d0771a96cd3b1050e986899275
3
+ metadata.gz: 0011eed7d131530a0d82c8d8cd48e541d8b38290
4
+ data.tar.gz: 4bc37b6637b479f44a850908679a7fb5b70abe9a
5
5
  SHA512:
6
- metadata.gz: 148ce01ce2a52f86e052d2ddba88a9a7e2242022a3e9b9416091e0d790c2c8eba47c47d7785b649d64a0bfc0a86270309feddc82af9700761bac6125bb3b82b2
7
- data.tar.gz: dfc3206be59c680da3de8cb714ff5401973ec4dfd8b765b4f6b7df96e7ee99eedac2de52b9de6c6a89942a3be2999b435b28546b17f90a34432463afe2bb37cc
6
+ metadata.gz: 00f0646f79b95a47083fa21ee64543f3d7b922dd08a0a54f1e5427f7a2ceca4fc28be4d942027eccbc20911f531542963f0aa0b0384f1265027412c5c204ebc4
7
+ data.tar.gz: 5e67b5a9191480697ba47295a992b76eaf7204b0555ef93be98e6bb229e29401e7bdac6f2e0e3a35016cf2241122ddfbf989af0f1cd3d444dfb71f34d56c1348
data/README.md CHANGED
@@ -43,6 +43,8 @@ A new Rugular project contains the following folders:
43
43
  │ ├── favico.ico
44
44
  │ ├── fonts/
45
45
  │ ├── images/
46
+ │ ├── images/
47
+ │ ├── vendor_and_bower_components.yaml
46
48
  ├── vendor/
47
49
  </pre>
48
50
 
@@ -58,6 +60,7 @@ A new Rugular project contains the following folders:
58
60
  | package.json | A list of packages to be installed by npm |
59
61
  | src | A folder containing the source code unique to a rugular application. Rugular apps are written in Haml, Coffeescript and Sass and designed to follow [Google's Best Practices for an Angular App Structure](https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub). |
60
62
  | src/fonts and src/images | Folders to place fonts and images respectively, in a rugular application they are referenced by their relative filename, e.g. ``src/images/logo.png`` can be linked as ``<img src='images/logo.png'></img>``
63
+ | src/vendor_and_bower_components.yaml | A file to declare what third party files in the bower_components and vendor folder you would like to include.
61
64
  | vendor | 3rd-party javascript, coffeescript, css, and sass files that do not come with bower management. All of these files are included before any code in src. |
62
65
 
63
66
  ### Rugular Generators
@@ -58,10 +58,25 @@ module Rugular
58
58
  end
59
59
  end
60
60
 
61
+ def add_template_application_sass_file
62
+ FileUtils.cp(
63
+ "#{lib_directory}/templates/server/application.sass",
64
+ "#{destination_root}/.application.sass"
65
+ )
66
+ end
67
+
61
68
  def create_application_css_file
62
69
  `sass .application.sass dist/application.css -r sass-globbing`
63
70
  end
64
71
 
72
+ def copy_images
73
+ FileUtils.cp_r('src/images', 'dist')
74
+ end
75
+
76
+ def copy_fonts
77
+ FileUtils.cp_r('src/fonts', 'dist')
78
+ end
79
+
65
80
  private
66
81
 
67
82
  def bower_and_vendor_javascript
@@ -104,5 +119,9 @@ module Rugular
104
119
  def bower_yaml
105
120
  YAML.load(File.read('src/vendor_and_bower_components.yaml'))
106
121
  end
122
+
123
+ def lib_directory
124
+ __dir__.chomp('tasks')
125
+ end
107
126
  end
108
127
  end
@@ -13,7 +13,7 @@ module Guard
13
13
  end
14
14
 
15
15
  def start
16
- ::RugularHaml.compile('src/index.haml')
16
+ run_on_changes('src/index.haml')
17
17
  end
18
18
 
19
19
  def stop; true end
@@ -1,3 +1,3 @@
1
1
  module Rugular
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rugular
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicholas Shook