This repository has been archived by the owner on Oct 8, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d069da
commit acf9876
Showing
18 changed files
with
5,478 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
.editorconfig | ||
.ember-cli | ||
.gitignore | ||
.jshintrc | ||
.eslintrc.js | ||
.watchmanconfig | ||
.travis.yml | ||
bower.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,24 @@ | ||
/*jshint node:true*/ | ||
/* global require, module */ | ||
/* eslint-env node */ | ||
'use strict'; | ||
|
||
var Funnel = require('broccoli-funnel'); | ||
var mergeTrees = require('broccoli-merge-trees'); | ||
|
||
|
||
module.exports = { | ||
name: 'ember-vivus', | ||
|
||
included: function(app) { | ||
this._super.included.apply(this, arguments); | ||
|
||
// see: https://github.com/ember-cli/ember-cli/issues/3718 | ||
if (typeof app.import !== 'function' && app.app) { | ||
app = app.app; | ||
options: { | ||
nodeAssets: { | ||
vivus: { | ||
vendor: ['dist/vivus.js'] | ||
} | ||
} | ||
|
||
this.importDependencies(app); | ||
}, | ||
|
||
importDependencies: function(app) { | ||
if (arguments.length < 1) { | ||
throw new Error('Application instance must be passed to import'); | ||
} | ||
|
||
var vendor = this.treePaths.vendor; | ||
included: function() { | ||
this._super.included.apply(this, arguments); | ||
|
||
if (!process.env.EMBER_CLI_FASTBOOT) { | ||
if (app.env === "production") { | ||
app.import(app.bowerDirectory + '/vivus/dist/vivus.min.js', {prepend: true}); | ||
} else { | ||
app.import(app.bowerDirectory + '/vivus/dist/vivus.js', {prepend: true}); | ||
} | ||
this.import('vendor/vivus/dist/vivus.js', { | ||
using: [{ transformation: 'amd', as: 'vivus' }] | ||
}); | ||
} | ||
|
||
app.import(vendor + '/shims/vivus.js'); | ||
} | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module.exports = { | ||
env: { | ||
'embertest': true | ||
embertest: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { test } from 'qunit'; | ||
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance'; | ||
import vivus from 'vivus'; | ||
|
||
moduleForAcceptance('Acceptance | vivus shim'); | ||
|
||
test('testing shim import', function(assert) { | ||
assert.ok(vivus !== undefined && vivus !== null); | ||
assert.equal(vivus.toString().substr(0, 42), 'function Vivus(element, options, callback)'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* jshint node: true */ | ||
/* eslint-env node */ | ||
|
||
module.exports = function(environment) { | ||
var ENV = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* eslint-env node */ | ||
|
||
module.exports = { | ||
browsers: [ | ||
'ie 9', | ||
'last 1 Chrome versions', | ||
'last 1 Firefox versions', | ||
'last 1 Safari versions' | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
import Ember from 'ember'; | ||
import Application from '../../app'; | ||
import config from '../../config/environment'; | ||
import assign from 'ember-assign-polyfill'; | ||
const { run } = Ember; | ||
|
||
export default function startApp(attrs) { | ||
let application; | ||
let attributes = Ember.merge({}, config.APP); | ||
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override; | ||
|
||
// use defaults, but you can override | ||
let attributes = assign({}, config.APP, attrs); | ||
|
||
run(() => { | ||
application = Application.create(attributes); | ||
return Ember.run(() => { | ||
let application = Application.create(attributes); | ||
application.setupForTesting(); | ||
application.injectTestHelpers(); | ||
return application; | ||
}); | ||
|
||
return application; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.