-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from notmessenger/Issue152
Closes #152
- Loading branch information
Showing
16 changed files
with
150 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
bower_components/ | ||
tests/ | ||
tmp/ | ||
dist/ | ||
|
||
/bower_components | ||
/config/ember-try.js | ||
/dist | ||
/tests | ||
/tmp | ||
**/.gitkeep | ||
.bowerrc | ||
.editorconfig | ||
.ember-cli | ||
.gitignore | ||
.jshintrc | ||
.watchmanconfig | ||
.travis.yml | ||
.npmignore | ||
**/.gitkeep | ||
bower.json | ||
ember-cli-build.js | ||
Brocfile.js | ||
testem.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"ignore_dirs": ["tmp"] | ||
"ignore_dirs": ["tmp", "dist"] | ||
} |
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,3 +1,4 @@ | ||
/*jshint node:true*/ | ||
'use strict'; | ||
|
||
module.exports = function(/* environment, appConfig */) { | ||
|
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,44 +1,47 @@ | ||
/* jshint node:true*/ | ||
/* global require, module */ | ||
const EmberApp = require( 'ember-cli/lib/broccoli/ember-addon' ); | ||
const EmberAddon = require( 'ember-cli/lib/broccoli/ember-addon' ); | ||
const packageConfig = require( './package.json' ); | ||
const replace = require( 'broccoli-string-replace' ); | ||
|
||
module.exports = function( defaults ) { | ||
const app = new EmberApp( defaults, { | ||
// Add options here | ||
}); | ||
const app = new EmberAddon( defaults, { | ||
// Add options here | ||
}); | ||
|
||
/* | ||
This build file specifes the options for the dummy test app of this | ||
addon, located in `/tests/dummy` | ||
This build file does *not* influence how the addon or the app using it | ||
behave. You most likely want to be modifying `./index.js` or app's build file | ||
*/ | ||
/* | ||
This build file specifies the options for the dummy test app of this | ||
addon, located in `/tests/dummy` | ||
This build file does *not* influence how the addon or the app using it | ||
behave. You most likely want to be modifying `./index.js` or app's build file | ||
*/ | ||
|
||
app.import( app.bowerDirectory + '/ember/ember-template-compiler.js', { | ||
type: 'test' | ||
}); | ||
app.import( app.bowerDirectory + '/ember/ember-template-compiler.js', { | ||
type: 'test' | ||
}); | ||
|
||
const tree = replace( app.toTree(), { | ||
files: [ | ||
'index.html', | ||
'assets/dummy.js' | ||
], | ||
const tree = replace( app.toTree(), { | ||
files: [ | ||
'index.html', | ||
'assets/dummy.js' | ||
], | ||
|
||
patterns: [ | ||
{ | ||
match: /REPLACE_META_DESCRIPTION/g, | ||
replacement: packageConfig[ 'description' ] | ||
}, { | ||
match: /REPLACE_META_KEYWORDS/g, | ||
replacement: packageConfig[ 'keywords' ].join( ', ' ) + | ||
', ember, ember cli' | ||
}, { | ||
match: /REPLACE_APPLICATION_VERSION/g, | ||
replacement: packageConfig[ 'version' ] | ||
} | ||
] | ||
}); | ||
patterns: [ | ||
{ | ||
match: /REPLACE_META_DESCRIPTION/g, | ||
replacement: packageConfig[ 'description' ] | ||
}, | ||
{ | ||
match: /REPLACE_META_KEYWORDS/g, | ||
replacement: packageConfig[ 'keywords' ].join( ', ' ) + | ||
', ember, ember cli' | ||
}, | ||
{ | ||
match: /REPLACE_APPLICATION_VERSION/g, | ||
replacement: packageConfig[ 'version' ] | ||
} | ||
] | ||
}); | ||
|
||
return tree; | ||
return tree; | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Resolver from 'ember-resolver'; | ||
|
||
export default Resolver; |
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,5 @@ | ||
import Ember from 'ember'; | ||
|
||
export default function destroyApp( application ) { | ||
Ember.run( application, 'destroy' ); | ||
} |
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,23 @@ | ||
import { module } from 'qunit'; | ||
import startApp from '../helpers/start-app'; | ||
import destroyApp from '../helpers/destroy-app'; | ||
|
||
export default function( name, options = {} ) { | ||
module( name, { | ||
beforeEach() { | ||
this.application = startApp(); | ||
|
||
if ( options.beforeEach ) { | ||
options.beforeEach.apply( this, arguments ); | ||
} | ||
}, | ||
|
||
afterEach() { | ||
destroyApp( this.application ); | ||
|
||
if ( options.afterEach ) { | ||
options.afterEach.apply( this, arguments ); | ||
} | ||
} | ||
}); | ||
} |
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