cordova-rake 0.4.3 → 0.5.0

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: f9aab2bf1ee1f37dd51d019893e17420fe161970
4
- data.tar.gz: fcedac6d2d0286f30c41bd2674eb8ff3d3313ad7
3
+ metadata.gz: 71f5663bc43d51c8be19665787b7ffaa9bc00e42
4
+ data.tar.gz: f77e48e5e09f69a17e1bd7aaeb7ccd189e895d00
5
5
  SHA512:
6
- metadata.gz: e13a5195f7f02b6cd40f01007337115e04526d3376efbc0c918a2e40523c630f9bca22c0009c282aac8123ce0536dcb22aed81f1ba366c32969286222def911c
7
- data.tar.gz: 836915e56626832735c0b80b59a878adc9523f415fd0885164c280f4d2ce2dc962c39b67c7ce954dc69339886ab9530a6ca6a27ad25e2a9296cad95556a4bd45
6
+ metadata.gz: 65016c943d1360d07baeb4e2e36a51f4a04aff89e695658a28d1629eca01bf71b03a9433d287be94fb277ab1bdfa09b0bd704e43cea328c071c8d1601f1850c1
7
+ data.tar.gz: 5deea5aac4d8221963862007bd028c43c2ea7f18658f671b72669356f29b0b96687541508778701b805e625674fbfbf8a0b472de902f0c9e7b87079a79e24b18
data/README.md CHANGED
@@ -27,7 +27,7 @@ If you don't have one
27
27
  ```
28
28
  rake compile # Compiles all resources
29
29
  rake compile:css # Compiles SASS -> CSS
30
- rake compile:html # Compiles HAML -> HTML
30
+ rake compile:html # Compiles HAML/SLIM -> HTML
31
31
  rake compile:js # Compiles Coffee -> JS
32
32
  rake compile:vars # Postcompile ENV variables
33
33
  rake emulate:android # Run on Android emulator
@@ -47,7 +47,7 @@ rake setup # Setup env for development
47
47
 
48
48
  Just run `guard`. Or directly `rake`.
49
49
  ```
50
- HAML -> HTML
50
+ HAML/SLIM -> HTML
51
51
  SASS -> CSS
52
52
  COFFEE -> JS
53
53
  ```
@@ -74,9 +74,10 @@ Will render `file.js` in production:
74
74
 
75
75
  apiURL = 'http://site.com'
76
76
 
77
- ### HAML
77
+ ### HAML/SLIM
78
78
 
79
- You may use ERB tags anywhere in haml.
79
+ Choose and uncomment the line on your `Gemfile`.
80
+ Also: You may use ERB tags anywhere in haml/slim.
80
81
  You may also use ERB logic if wanted.
81
82
 
82
83
  Tip: to precompile more than once the same ERB tag: `<%%= value %>`.
@@ -156,6 +157,26 @@ https://github.com/KrauseFx/fastlane
156
157
 
157
158
  ### Android
158
159
 
160
+ #### Install
161
+
162
+
163
+ yaourt -S android-sdk android-sdk-platform-tools android-udev
164
+
165
+ Latest:
166
+
167
+ yaourt -S android-platform android-sdk-build-tools
168
+
169
+ Version:
170
+
171
+ yaourt -S android-platform-XX android-sdk-build-tools-XX
172
+
173
+ Add M2:
174
+
175
+ android update sdk --no-ui --all --filter "extra-android-m2repository"
176
+
177
+
178
+ #### Deploy
179
+
159
180
  Capkin integration:
160
181
 
161
182
  https://github.com/fireho/capkin
@@ -1,6 +1,6 @@
1
1
  module Cordova
2
2
  # cordova-rake version
3
3
  module Rake
4
- VERSION = '0.4.3'.freeze
4
+ VERSION = '0.5.0'.freeze
5
5
  end
6
6
  end
@@ -28,6 +28,9 @@ namespace :compile do
28
28
  desc 'Compiles HAML -> HTML'
29
29
  task html: get_sources(:haml).ext('.html')
30
30
 
31
+ desc 'Compiles SLIM -> HTML'
32
+ task html: get_sources(:slim).ext('.html')
33
+
31
34
  desc 'Postcompile ENV variables'
32
35
  task :vars do
33
36
  next unless File.exist?(CONFIG_YML)
@@ -61,4 +64,15 @@ namespace :compile do
61
64
  end
62
65
  STDOUT.puts "haml #{t.source} -> #{t.name}"
63
66
  end
67
+
68
+ rule '.html' => '.slim' do |t|
69
+ next if t.name =~ /layout/
70
+ template = Tilt.new(t.source)
71
+ # => #<Tilt::HAMLTemplate @file="path/to/file.haml" ...>
72
+
73
+ File.open(t.name.gsub(%r{app/}, 'www/'), 'w') do |f|
74
+ f.puts layout.render { template.render }
75
+ end
76
+ STDOUT.puts "slim #{t.source} -> #{t.name}"
77
+ end
64
78
  end
@@ -1,6 +1,7 @@
1
1
  # Cordova Rake Gemfile
2
2
  gem 'cordova-rake'
3
- gem 'haml'
3
+ # gem 'haml'
4
+ # gem 'slim'
4
5
  gem 'sass'
5
6
  # Media
6
7
  gem 'yamg'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cordova-rake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcos Piccinini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-10 00:00:00.000000000 Z
11
+ date: 2017-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tilt
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project:
99
- rubygems_version: 2.6.6
99
+ rubygems_version: 2.6.8
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Rake tasks to help cordova development