pave 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile.lock +1 -1
- data/bin/pave +2 -1
- data/lib/pave/theme.rb +5 -4
- data/lib/pave/version.rb +1 -1
- metadata +2 -4
- data/.floo +0 -3
- data/.flooignore +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aa6d9f3f5753a826b0fd82bf27a385bf9c4ca9a
|
4
|
+
data.tar.gz: 9ea1ce191daf766aabc27136ed78c61c4669a031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d575b3350c7758339e8ac7dad825d6125ab03a48b32436f08d61570e9040f29cf2627f83721df1a21d61aed8ec84484583a051486a98136b8190fd1b25b50680
|
7
|
+
data.tar.gz: 0ee8107ee3a592f105d1001d7dd7c21540337d1f6ee37949ddeaf3e36742cbf73cd7fc9c681e575e22bf43a1c69343538f7fe235b982e8db9eec611c61c63847
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.1.2
|
data/Gemfile.lock
CHANGED
data/bin/pave
CHANGED
@@ -255,7 +255,8 @@ command :watch do |c|
|
|
255
255
|
c.description = "Watch for sass changes."
|
256
256
|
c.action do |args|
|
257
257
|
browser = args.first || "chrome"
|
258
|
-
|
258
|
+
name = args.last || "#{File.basename(Dir.pwd)}"
|
259
|
+
Pave::Theme.new(name).watch(browser)
|
259
260
|
end
|
260
261
|
end
|
261
262
|
|
data/lib/pave/theme.rb
CHANGED
@@ -8,9 +8,10 @@ module Pave
|
|
8
8
|
new(name).setup
|
9
9
|
end
|
10
10
|
|
11
|
-
def
|
12
|
-
system
|
13
|
-
system
|
11
|
+
def watch(browser)
|
12
|
+
system "pave livereload #{browser} &"
|
13
|
+
system "sass --watch ./themes/ --style compressed &"
|
14
|
+
system "coffee -wcj ./themes/#{name}/js/app.js ./themes/#{name}/js/"
|
14
15
|
end
|
15
16
|
|
16
17
|
def initialize(name)
|
@@ -47,7 +48,7 @@ module Pave
|
|
47
48
|
def create_project_css_folders
|
48
49
|
sh "cd themes/#{self.name}/css/ && mkdir -p #{self.name}/{components,layouts}"
|
49
50
|
sh "cd themes/#{self.name}/css/#{self.name} && touch ./components/_components.scss && touch ./layouts/_layouts.scss"
|
50
|
-
sh "cd themes/#{self.name}/css/ && echo \"@import 'components/components';\" >> ./styles.scss && echo \"@import 'layouts/layouts';\" >> ./styles.scss"
|
51
|
+
sh "cd themes/#{self.name}/css/ && echo \"@import '#{self.name}/components/components';\" >> ./styles.scss && echo \"@import '#{self.name}/layouts/layouts';\" >> ./styles.scss"
|
51
52
|
end
|
52
53
|
|
53
54
|
def setup
|
data/lib/pave/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pave
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamon Holmgren
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05-
|
12
|
+
date: 2014-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -90,8 +90,6 @@ executables:
|
|
90
90
|
extensions: []
|
91
91
|
extra_rdoc_files: []
|
92
92
|
files:
|
93
|
-
- ".floo"
|
94
|
-
- ".flooignore"
|
95
93
|
- ".gitignore"
|
96
94
|
- ".ruby-gemset"
|
97
95
|
- ".ruby-version"
|
data/.floo
DELETED
data/.flooignore
DELETED