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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40bbe5f01e1358dc53e0cf38bc499666042010ad
4
- data.tar.gz: beb2bd443e81e80cd96ffe395dafe7d0928f3901
3
+ metadata.gz: 2f9b54f859d47347a8873b95bcc63358f8d15072
4
+ data.tar.gz: edbd1ef2c6e335d945833a03f8cf21dc63bf997b
5
5
  SHA512:
6
- metadata.gz: 3e979bc27654c68cecd3c2fbd20bd054abdc053768b394675ddb293b9ad73aa5c0198dcf299911aba781d6945ce5cc7c3a06f89a82a6f5e878c6e2f39803862f
7
- data.tar.gz: 89ade788efe92b3e2b0f69f680823266a174646246e5973e81e91a0efac0a339c877b5349ec50c949f1b0689782e24b638e78f47633653a46a6da44016df4e34
6
+ metadata.gz: ee1ba9a24a95fb63e587dcb46b7af0ea2af4d83477d975c090b04c77def58600f6f8dee08aaab7170f352b06e4341ebbf152e391c67ead47ea7ccb0a163481b6
7
+ data.tar.gz: f2fe4bb0bdd3d7dede679251d1db2c9ee186d7289808237ae718db4b57a7a293c34883a413e8094abf712f6b8e803a19a3893b93c17e5d0063477dd2bacf4a83
data/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # Anila::Cli
2
2
 
3
- This is just a modification from [foundation-cli](https://github.com/mhayes/foundation-cli) Thanks to him.
4
-
5
3
  ## Installation
6
4
 
7
5
  Add this line to your application's Gemfile:
@@ -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/anila.min.js"></script>
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 :libsass, type: :boolean, default: false
114
+ option :grunt, type: :boolean, default: false
115
115
  option :version, type: :string
116
116
  def new(name)
117
- if options[:libsass]
117
+ if options[:grunt]
118
118
  install_dependencies(%w{git node bower grunt})
119
- repo = "https://github.com/bravocado/anila-libsass-template.git"
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/values.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/anila/_values.scss") }
134
- File.open("scss/conditional.scss", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/scss/anila/_conditional.scss") }
135
- File.open("js/modernizr.js", "w") {|f| f.puts File.read("#{destination_root}/bower_components/anila/js/vendor/modernizr.js") }
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"
@@ -1,5 +1,5 @@
1
1
  module Anila
2
2
  module CLI
3
- VERSION = "1.0.5"
3
+ VERSION = "1.0.6"
4
4
  end
5
5
  end
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.5
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-02-28 00:00:00.000000000 Z
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.1.11
93
+ rubygems_version: 2.2.2
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Easy starting a project with Anila