fronton 0.1.0 → 0.2.0
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 +12 -10
- data/lib/fronton/assets_helpers.rb +1 -1
- data/lib/fronton/config.rb +6 -0
- data/lib/fronton/html_server.rb +7 -1
- data/lib/fronton/version.rb +1 -1
- data/template/fronton.yml +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a899c6d84ac29adb1f1df25728ddbc5e9b23ce32
|
|
4
|
+
data.tar.gz: 28e39dea1624fd43b541b514994645e5bc373acc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c536294cfe053beb81cbf6cbd99c03bac600a49fcd151612d5c2621a7f71ac9b6bdd11d9957412907e8222e9134a1e210103ab4182627f63f85a8e7a5bfe8722
|
|
7
|
+
data.tar.gz: f2cc92f27a3e6d6a47fc2a5671108a79845196377961c2f2d394e73fa5d2600edaa5be23f09e062ba8c76bb2efc3fc75b00102522f2d36fe7faf7cc1f8893e1f
|
data/README.md
CHANGED
|
@@ -62,6 +62,7 @@ compressors:
|
|
|
62
62
|
dependencies:
|
|
63
63
|
- rails-assets-jquery: 3.1.0
|
|
64
64
|
- slim: 3.0.7
|
|
65
|
+
fallback_page: index.slim
|
|
65
66
|
output: public
|
|
66
67
|
pages:
|
|
67
68
|
- index.slim: /
|
|
@@ -69,16 +70,17 @@ pages_paths:
|
|
|
69
70
|
- pages
|
|
70
71
|
```
|
|
71
72
|
|
|
72
|
-
| Attribute
|
|
73
|
-
|
|
|
74
|
-
| assets
|
|
75
|
-
| assets_paths
|
|
76
|
-
| assets_url
|
|
77
|
-
| compressors
|
|
78
|
-
| dependencies
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
73
|
+
| Attribute | Type | Description |
|
|
74
|
+
| ------------- | ------ | ---------------------------------------------------------- |
|
|
75
|
+
| assets | Array | List of assets to compile (only js and css files) |
|
|
76
|
+
| assets_paths | Array | List of directories where Sprockets find files for require |
|
|
77
|
+
| assets_url | String | URL for assets in production |
|
|
78
|
+
| compressors | Hash | Hash with selected compressors by type |
|
|
79
|
+
| dependencies | Array | List of gems to install and require |
|
|
80
|
+
| fallback_page | String | Fallback page (i.e HTML5 mode in frontend routers) |
|
|
81
|
+
| output | String | Path to a directory where compiled assets will be written |
|
|
82
|
+
| pages | Array | List of pages to compile |
|
|
83
|
+
| pages_paths | Array | List of directories where Fronton find html files |
|
|
82
84
|
|
|
83
85
|
### Gem sources
|
|
84
86
|
|
data/lib/fronton/config.rb
CHANGED
|
@@ -60,6 +60,12 @@ module Fronton
|
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
+
def fallback_page
|
|
64
|
+
if @config['fallback_page']
|
|
65
|
+
Page.new(@config['fallback_page'], '/', config: self)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
63
69
|
def pages
|
|
64
70
|
@pages ||= begin
|
|
65
71
|
pages = @config['pages'].is_a?(Array) ? @config['pages'] : []
|
data/lib/fronton/html_server.rb
CHANGED
data/lib/fronton/version.rb
CHANGED
data/template/fronton.yml
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fronton
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Javier Aranda
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-09-
|
|
11
|
+
date: 2016-09-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|