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 +4 -4
- data/README.md +3 -0
- data/lib/rugular/tasks/build.rb +19 -0
- data/lib/rugular/tasks/server/guards/rugular.rb +1 -1
- data/lib/rugular/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0011eed7d131530a0d82c8d8cd48e541d8b38290
|
4
|
+
data.tar.gz: 4bc37b6637b479f44a850908679a7fb5b70abe9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/rugular/tasks/build.rb
CHANGED
@@ -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
|
data/lib/rugular/version.rb
CHANGED