This repository has been archived by the owner on Jun 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
14 changed files
with
748 additions
and
17 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 |
---|---|---|
|
@@ -9,5 +9,8 @@ module.exports = { | |
browser: true | ||
}, | ||
rules: { | ||
}, | ||
globals: { | ||
FastBoot: 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
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 Ember from 'ember'; | ||
import md5 from 'ember-md5'; | ||
|
||
const { Helper } = Ember; | ||
|
||
export default Helper.extend({ | ||
compute: function([value, key, raw]) { | ||
return md5(value, key, raw); | ||
} | ||
}); |
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 @@ | ||
export { default } from 'blueimp-md5'; |
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 @@ | ||
export { default } from 'ember-md5/helpers/md5'; |
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,21 @@ | ||
/* eslint-env node */ | ||
// var RSVP = require('rsvp'); | ||
|
||
// For details on each option run `ember help release` | ||
module.exports = { | ||
// local: true, | ||
// remote: 'some_remote', | ||
// annotation: "Release %@", | ||
// message: "Bumped version to %@", | ||
// manifest: [ 'package.json', 'bower.json', 'someconfig.json' ], | ||
// publish: true, | ||
// strategy: 'date', | ||
// format: 'YYYY-MM-DD', | ||
// timezone: 'America/Los_Angeles', | ||
// | ||
// beforeCommit: function(project, versions) { | ||
// return new RSVP.Promise(function(resolve, reject) { | ||
// // Do custom things here... | ||
// }); | ||
// } | ||
}; |
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,6 +1,29 @@ | ||
/* eslint-env node */ | ||
'use strict'; | ||
|
||
const path = require('path'); | ||
const Funnel = require('broccoli-funnel'); | ||
const mergeTrees = require('broccoli-merge-trees'); | ||
|
||
module.exports = { | ||
name: 'ember-md5' | ||
name: 'ember-md5', | ||
|
||
included: function(app) { | ||
this._super.included(app); | ||
|
||
app.import('vendor/ember-md5/md5.js'); | ||
app.import('vendor/ember-md5/shims/md5-shim.js'); | ||
}, | ||
|
||
treeForVendor(tree) { | ||
let trees = [tree]; | ||
let md5Path = path.join(this.app.project.nodeModulesPath, 'blueimp-md5', 'js'); | ||
|
||
trees.push(new Funnel(md5Path, { | ||
destDir: 'ember-md5', | ||
files: ['md5.js'] | ||
})); | ||
|
||
return mergeTrees(trees); | ||
} | ||
}; |
Oops, something went wrong.