-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update npm and bower dependencies/update to latest ember-cli 2.2.0-be…
…ta.1 and run ember init/transition Brocfile.js to ember-cli-build.js
- Loading branch information
Showing
17 changed files
with
165 additions
and
131 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,3 +1,3 @@ | ||
{ | ||
"ignore_dirs": ["tmp"] | ||
"ignore_dirs": ["tmp", "dist"] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/*jshint node:true*/ | ||
module.exports = { | ||
scenarios: [ | ||
{ | ||
|
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/*jshint node:true*/ | ||
/* global require, module */ | ||
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); | ||
var merge = require('broccoli-merge-trees'); | ||
var babel = require('broccoli-babel-transpiler'); | ||
var stew = require('broccoli-stew'); | ||
var replace = require('broccoli-replace'); | ||
var concat = require('broccoli-concat'); | ||
var rename = stew.rename; | ||
var funnel = require('broccoli-funnel'); | ||
var babelOptions = require('./babel-options'); | ||
var fs = require('fs'); | ||
var es3 = require('broccoli-es3-safe-recast'); | ||
var license = fs.readFileSync('./lib/license.js').toString(); | ||
|
||
module.exports = function(defaults) { | ||
var 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 | ||
*/ | ||
|
||
var addon = funnel('addon'); | ||
var addonTree = merge(['addon', 'app']); | ||
|
||
var lib = babel('lib', babelOptions); | ||
|
||
var bower = funnel('bower_components/loader.js', {include: ['loader.js']}); | ||
var compiled = babel(addonTree, babelOptions); | ||
var moved = stew.mv(compiled, 'amd'); | ||
|
||
var combined = merge([moved, bower, lib]); | ||
|
||
var concatted = concat(combined, { | ||
inputFiles: [ | ||
'loader.js', | ||
'ember.js', | ||
'ember-data.js', | ||
'amd/**/*.js', | ||
'globals.js' | ||
], | ||
header: license + '\n(function() {\n', | ||
footer: '\n' + | ||
'require("globals");\n' + | ||
'})();\n', | ||
outputFile: '/active-model-adapter.js' | ||
}); | ||
|
||
var bower = stew.mv('config', '/'); | ||
var bower = stew.find(bower, 'bower.json'); | ||
|
||
concatted = merge([concatted, bower]); | ||
|
||
concatted = replace(concatted, { | ||
files: ['**/*.{js,json}'], | ||
patterns: [ | ||
{ | ||
match: /VERSION_STRING_PLACEHOLDER/g, | ||
replacement: require('./package').version | ||
}, | ||
{ | ||
match: /active\-model\-adapter\//g, | ||
replacement: '' | ||
} | ||
] | ||
}); | ||
|
||
return merge([app.toTree(), es3(concatted)]); | ||
}; |
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
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,3 @@ | ||
<h2 id="title">Welcome to Ember.js</h2> | ||
<h2 id="title">Welcome to Ember</h2> | ||
|
||
{{outlet}} |
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
Oops, something went wrong.