anila 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -2
- data/lib/anila/cli/generator.rb +15 -15
- data/lib/anila/cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f9b54f859d47347a8873b95bcc63358f8d15072
|
4
|
+
data.tar.gz: edbd1ef2c6e335d945833a03f8cf21dc63bf997b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee1ba9a24a95fb63e587dcb46b7af0ea2af4d83477d975c090b04c77def58600f6f8dee08aaab7170f352b06e4341ebbf152e391c67ead47ea7ccb0a163481b6
|
7
|
+
data.tar.gz: f2fe4bb0bdd3d7dede679251d1db2c9ee186d7289808237ae718db4b57a7a293c34883a413e8094abf712f6b8e803a19a3893b93c17e5d0063477dd2bacf4a83
|
data/README.md
CHANGED
data/lib/anila/cli/generator.rb
CHANGED
@@ -103,7 +103,7 @@ Anila has been setup in your project.
|
|
103
103
|
|
104
104
|
Please update references to javascript files to look something like:
|
105
105
|
|
106
|
-
<script src="#{bower_directory}/js/
|
106
|
+
<script src="#{bower_directory}/js/app.min.js"></script>
|
107
107
|
|
108
108
|
To update Anila in the future, just run: anila update
|
109
109
|
|
@@ -111,12 +111,12 @@ To update Anila in the future, just run: anila update
|
|
111
111
|
end
|
112
112
|
|
113
113
|
desc "new", "create new project"
|
114
|
-
option :
|
114
|
+
option :grunt, type: :boolean, default: false
|
115
115
|
option :version, type: :string
|
116
116
|
def new(name)
|
117
|
-
if options[:
|
117
|
+
if options[:grunt]
|
118
118
|
install_dependencies(%w{git node bower grunt})
|
119
|
-
repo = "https://github.com/bravocado/anila-
|
119
|
+
repo = "https://github.com/bravocado/anila-grunt-template.git"
|
120
120
|
else
|
121
121
|
install_dependencies(%w{git node bower compass})
|
122
122
|
repo = "https://github.com/bravocado/anila-compass-template.git"
|
@@ -128,18 +128,13 @@ To update Anila in the future, just run: anila update
|
|
128
128
|
inside(name) do
|
129
129
|
say "Installing dependencies with bower..."
|
130
130
|
run("bower install", capture: true, verbose: false)
|
131
|
-
File.open("scss/style.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/style.scss") }
|
132
|
-
File.open("scss/noscript.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/noscript.scss") }
|
133
|
-
File.open("scss/
|
134
|
-
File.open("scss/
|
135
|
-
|
136
|
-
File.open("js/jquery.min.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/jquery/dist/jquery.min.js") }
|
137
|
-
File.open("js/legacy.min.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/js/legacy.min.js") }
|
138
|
-
File.open("js/iconfont-fallback.min.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/js/iconfont-fallback.min.js") }
|
139
|
-
run("git remote rm origin", capture: true, verbose: false)
|
140
|
-
if options[:libsass]
|
131
|
+
File.open("src/scss/style.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/style.scss") }
|
132
|
+
File.open("src/scss/noscript.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/noscript.scss") }
|
133
|
+
File.open("src/scss/_values.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/anila/_values.scss") }
|
134
|
+
File.open("src/scss/_conditional.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/anila/_conditional.scss") }
|
135
|
+
if options[:grunt]
|
141
136
|
run "npm install"
|
142
|
-
run "grunt build"
|
137
|
+
run "grunt build:dev"
|
143
138
|
else
|
144
139
|
if defined?(Bundler)
|
145
140
|
Bundler.with_clean_env do
|
@@ -147,6 +142,11 @@ To update Anila in the future, just run: anila update
|
|
147
142
|
end
|
148
143
|
end
|
149
144
|
end
|
145
|
+
File.open("dist/js/modernizr.min.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/js/modernizr.min.js") }
|
146
|
+
File.open("dist/js/jquery.min.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/jquery/dist/jquery.min.js") }
|
147
|
+
File.open("dist/js/legacy.min.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/js/legacy.min.js") }
|
148
|
+
File.open("dist/js/iconfont-fallback.min.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/js/iconfont-fallback.min.js") }
|
149
|
+
run("git remote rm origin", capture: true, verbose: false)
|
150
150
|
end
|
151
151
|
|
152
152
|
say "./#{name} was created"
|
data/lib/anila/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anila
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bravocado
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
version: '0'
|
91
91
|
requirements: []
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 2.
|
93
|
+
rubygems_version: 2.2.2
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Easy starting a project with Anila
|