ember-cli-rails 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +18 -1
- data/lib/ember-cli/app.rb +7 -12
- data/lib/ember-cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02bdcb704d9cf103835f4d33f06a395b154e6f83
|
4
|
+
data.tar.gz: be0455d38e0af37abe4ce06880974c16fb2edbf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2f69ab85c0197d8581541bd4cd020f1e579ae34d40c27a5a16a8d5d9177cbb98550ac9687a712c917447cf3833deb15de3d9f25f479768b9f64be9c0204ed14
|
7
|
+
data.tar.gz: 22c0988bc923d89e60fd9ee0252ccb230a277e3fb38d5b37e9999fbf49f0a8e0494819e7f7c8ea9353b5b2b5d0f59e501263bf7744fd81549f82f14182face3d
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -64,7 +64,7 @@ Once you've updated your initializer to taste, you need to install the
|
|
64
64
|
For each of your EmberCLI applications install the addon with:
|
65
65
|
|
66
66
|
```sh
|
67
|
-
npm install --save-dev ember-cli-rails-addon@0.0.
|
67
|
+
npm install --save-dev ember-cli-rails-addon@0.0.8
|
68
68
|
```
|
69
69
|
|
70
70
|
And that's it!
|
@@ -145,6 +145,23 @@ polluting your git history. Note that for this to work, you must have
|
|
145
145
|
building Ember CLI will not be enabled.
|
146
146
|
|
147
147
|
|
148
|
+
#### Ember Depdencies
|
149
|
+
|
150
|
+
Ember has several dependencies. Some of these dependencies might already be
|
151
|
+
present in your asset list. For example jQuery is bundled in `jquery-rails` gem.
|
152
|
+
If you have the jQuery assets included on your page you may want to exclude them
|
153
|
+
from the Ember distribution. You can do so by setting the `exclude_ember_deps`
|
154
|
+
option like so:
|
155
|
+
|
156
|
+
```ruby
|
157
|
+
EmberCLI.configure do |c|
|
158
|
+
c.app :frontend, exclude_ember_deps: "jquery"
|
159
|
+
c.app :admin_panel, exclude_ember_deps: ["jquery", "handlebars"]
|
160
|
+
end
|
161
|
+
```
|
162
|
+
|
163
|
+
jQuery and Handlebars are the main use cases for this flag.
|
164
|
+
|
148
165
|
## Contributing
|
149
166
|
|
150
167
|
1. Fork it (https://github.com/rwz/ember-cli-rails/fork)
|
data/lib/ember-cli/app.rb
CHANGED
@@ -2,9 +2,8 @@ require "timeout"
|
|
2
2
|
|
3
3
|
module EmberCLI
|
4
4
|
class App
|
5
|
-
ADDON_VERSION = "0.0.
|
6
|
-
EMBER_CLI_VERSION = "~> 0.1.
|
7
|
-
JQUERY_VERSIONS = ["~> 1.7", "~> 2.1"].freeze
|
5
|
+
ADDON_VERSION = "0.0.8"
|
6
|
+
EMBER_CLI_VERSION = "~> 0.1.5"
|
8
7
|
|
9
8
|
attr_reader :name, :options, :pid
|
10
9
|
|
@@ -101,14 +100,6 @@ module EmberCLI
|
|
101
100
|
end
|
102
101
|
end
|
103
102
|
|
104
|
-
def suppress_jquery?
|
105
|
-
return false unless defined?(Jquery::Rails::JQUERY_VERSION)
|
106
|
-
|
107
|
-
JQUERY_VERSIONS.any? do |requirement|
|
108
|
-
match_version?(Jquery::Rails::JQUERY_VERSION, requirement)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
103
|
def check_ember_cli_version!
|
113
104
|
version = dev_dependencies.fetch("ember-cli").split("-").first
|
114
105
|
|
@@ -206,10 +197,14 @@ module EmberCLI
|
|
206
197
|
app_path.join("node_modules", "ember-cli-rails-addon", "package.json").exist?
|
207
198
|
end
|
208
199
|
|
200
|
+
def excluded_ember_deps
|
201
|
+
Array.wrap(options[:exclude_ember_deps]).join(",")
|
202
|
+
end
|
203
|
+
|
209
204
|
def env_hash
|
210
205
|
ENV.clone.tap do |vars|
|
211
206
|
vars.store "DISABLE_FINGERPRINTING", "true"
|
212
|
-
vars.store "
|
207
|
+
vars.store "EXCLUDE_EMBER_ASSETS", excluded_ember_deps
|
213
208
|
end
|
214
209
|
end
|
215
210
|
|
data/lib/ember-cli/version.rb
CHANGED