ecstatic 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b809bd049469967e964cb0a297e30f4e91280dca
|
4
|
+
data.tar.gz: 09bb7953fb1ccd2f2df40d66f3ece78e3497db21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0899306cbace9f03fc8713e2dcdcfa377b59c8b793d962e68a29ab219b50510641d06fba955ce4ffa8a142cb09e6c3e129b3a3eada10b87dfeb298ce9a80894
|
7
|
+
data.tar.gz: a1f336edbb033a1c6f62cfb3644f15f8f140dc73fa93b284fd9278371141cf688a3bc229b5943e776bbf4c6b1c674c6a899405fbfc920d38a029434e075404df
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ecstatic
|
2
2
|
|
3
|
-
Ecstatic is a static site generator focused on simplicity. It uses just enough of the right tools, leaving as much power in your hands while still providing plenty of value. Ecstatic is opinionated in favor of [HAML](http://haml.info/), [SASS](http://sass-lang.com/), and
|
3
|
+
Ecstatic is a static site generator focused on simplicity. It uses just enough of the right tools, leaving as much power in your hands while still providing plenty of value. Ecstatic is opinionated in favor of [HAML](http://haml.info/), [SASS](http://sass-lang.com/), and [CoffeeScript](http://coffeescript.org/).
|
4
4
|
|
5
5
|
Ecstatic provides a straight-forward directory structure for your site<!-- and concatenates scripts and stylesheets-->. It also provides a mechanism to push either the `master` or `gh-pages` branch to GitHub.
|
6
6
|
|
@@ -42,17 +42,15 @@ After installation and initialization, you should have the following directory t
|
|
42
42
|
├── config.rb
|
43
43
|
├── gh-pages
|
44
44
|
└── site
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
└── pages
|
50
|
-
└── index.haml
|
45
|
+
├── assets
|
46
|
+
├── pages
|
47
|
+
├── scripts
|
48
|
+
└── stylesheets
|
51
49
|
```
|
52
50
|
|
53
51
|
When writing your website, you will focus almost exclusively on the `site` directory. While you're working on your site, you'll want to run `ecstatic server` and view its contents at [localhost:4567](http://localhost:4567).
|
54
52
|
|
55
|
-
Ecstatic will automatically compile HAML files in `site/pages/` and SCSS files in `site/assets/stylesheets`.
|
53
|
+
Ecstatic will automatically compile HAML files in `site/pages/` and SCSS files in `site/assets/stylesheets`. CoffeeScript and JavaScript files live in `site/assets/scripts` -- CoffeeScript will get compiled, while JavaScript files are merely copied into place.
|
56
54
|
|
57
55
|
## Deploying to GitHub Pages
|
58
56
|
|
data/lib/ecstatic/version.rb
CHANGED
data/lib/ecstatic/watcher.rb
CHANGED
@@ -4,13 +4,28 @@ module Ecstatic
|
|
4
4
|
class Watcher
|
5
5
|
def self.watch!
|
6
6
|
script = Watchr::Script.new
|
7
|
+
|
8
|
+
# haml
|
7
9
|
script.watch('site/pages/(.*)\.haml') do |m|
|
8
10
|
puts "Compiling page: #{m[0]}"
|
9
11
|
system("haml site/pages/#{m[1]}.haml gh-pages/#{m[1]}.html")
|
10
12
|
end
|
11
13
|
|
14
|
+
# scss
|
12
15
|
script.watch('site/assets/stylesheets/.*') { puts 'Compiling scss'; system('compass compile') }
|
13
16
|
|
17
|
+
# coffeescript
|
18
|
+
script.watch('site/assets/scripts/(.*)\.coffee') do |m|
|
19
|
+
puts "Compiling CoffeeScript file: #{m[0]}"
|
20
|
+
system("coffee -o gh-pages/javascripts -c #{m[0]}")
|
21
|
+
end
|
22
|
+
|
23
|
+
# javascript
|
24
|
+
script.watch('site/assets/scripts/(.*)\.js') do |m|
|
25
|
+
puts "Copying changed JavaScript: #{m[0]}"
|
26
|
+
system("cp #{m[0]} gh-pages/javascripts/#{m[1]}.js")
|
27
|
+
end
|
28
|
+
|
14
29
|
handler = Watchr.handler.new
|
15
30
|
|
16
31
|
controller = Watchr::Controller.new(script,handler)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecstatic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bradley Grzesiak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coffee-script
|
@@ -203,9 +203,9 @@ files:
|
|
203
203
|
- lib/ecstatic/templates/.gitignore
|
204
204
|
- lib/ecstatic/templates/site/.gitkeep
|
205
205
|
- lib/ecstatic/templates/site/assets/.gitkeep
|
206
|
+
- lib/ecstatic/templates/site/assets/scripts/.gitkeep
|
207
|
+
- lib/ecstatic/templates/site/assets/stylesheets/.gitkeep
|
206
208
|
- lib/ecstatic/templates/site/pages/.gitkeep
|
207
|
-
- lib/ecstatic/templates/site/scripts/.gitkeep
|
208
|
-
- lib/ecstatic/templates/site/stylesheets/.gitkeep
|
209
209
|
- lib/ecstatic/version.rb
|
210
210
|
- lib/ecstatic/watcher.rb
|
211
211
|
homepage: http://github.com/listrophy/ecstatic
|
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
229
|
rubyforge_project:
|
230
|
-
rubygems_version: 2.
|
230
|
+
rubygems_version: 2.1.11
|
231
231
|
signing_key:
|
232
232
|
specification_version: 4
|
233
233
|
summary: Ecstatic is a static site generator focused on simplicity. It uses just enough
|
File without changes
|
File without changes
|