-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test assets moved to test-vendor.js and test-vendor.css. #1288
Conversation
@@ -490,7 +486,7 @@ EmberApp.prototype.import = function(asset, options) { | |||
assetPath = asset; | |||
} | |||
|
|||
if (assetPath === null) { | |||
if (assetPath == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just if (assetPath)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that'd work
On Sun, Jul 6, 2014 at 10:17 AM, Robert Jackson notifications@github.com
wrote:
In lib/broccoli/ember-app.js:
@@ -490,7 +486,7 @@ EmberApp.prototype.import = function(asset, options) {
assetPath = asset;
}
- if (assetPath === null) {
- if (assetPath == null) {
Why not just if (assetPath)?
—
Reply to this email directly or view it on GitHub
https://github.com/stefanpenner/ember-cli/pull/1288/files#r14575652.
Thanks,
Jake Craige
Poetic Systems
675 Bering Dr. Suite 725
Houston, TX 77057
(281) 531-4060 - Office
Travis is failing because with this refactor we do not need |
Gotcha, good catch. |
Will definitely need a changelog entry. This also paves the way for using alternative testing frameworks (as you could just app.import them now. |
@@ -137,6 +136,14 @@ function EmberApp(options) { | |||
this.otherAssetTrees = []; | |||
this._importTrees = []; | |||
|
|||
this.legacyTestFilesToAppend = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be made to use the vendorFiles object from above? Then in populateLegacy files we would just call app.import and things would 'just work'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the lack of clarity, I mean couldn't we define these arrays as empty arrays, and use the populate legacy files function along with app.import to populate it.
…ption to import to specify which that it's a test asset
@rjackson looks good now |
@@ -7,7 +7,9 @@ | |||
* [ENHANCEMENT] When using `app.import` to import non-js/css assets, you can now specify the destination of the asset. [#1159](https://github.com/stefanpenner/ember-cli/pull/1159) | |||
* [BUGFIX] Fix issue with `ember build` failing if the public/ folder was deleted. [#1270](https://github.com/stefanpenner/ember-cli/issues/1270) | |||
* [BREAKING ENHANCEMENT] CoffeeScript support is now brought in by `ember-cli-coffeescript`. To use CoffeeScript with future versions run `npm install --save-dev ember-cli-coffeescript` (and `broccoli-coffee` is no longer needed as a direct dependency). [#1289](https://github.com/stefanpenner/ember-cli/pull/1289) | |||
<<<<<<< HEAD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge artifacts.
Test assets moved to test-vendor.js and test-vendor.css.
Thanks! |
@jakecraige out of curiosity why |
@jakecraige a little more background. I would like to use these trees for the testing add-ons I am writing. The name |
@bcardarella i just wanted them to be under a single name and vendor seemed good since there was already a vendor.js and the only difference with this was that they were test specific. I like just test.js though that sounds like it's the test files themselves which may be confusing |
@jakecraige maybe two trees then? A |
Currently we cannot build our tests to a different file than our app. This is mostly due to how the current and future concatenator's work. They require knowledge of all imports and exports, then transpile and concat them together. Today we output AMD, but we will be outputting a loader less bundled format fairly soon (hopefully). |
Does anyone care if this gets renamed |
I personally do not care too much what the filename is. Not sure 'tests.js' is good though. Perhaps 'test-support.js' (as you suggested earlier)... |
👍 🚲shed PR pending... |
I have no attachment to test-vendor so if the I there's agree, that's fine. I agree with @rjackson though that just tests.js is a bit misleading On Tuesday, July 8, 2014, Brian Cardarella notifications@github.com wrote:
|
Add type option to import to specify which that it's a test asset.
This PR moves the qunit assets into a test-vendor.css and test-vendor.js. This allows qunit and qunit-notifications to be moved into their own addons. It also allows people to import test only assets via their Brocfile.
I'm not entirely happy with the API and would love some feedback on what y'all think.