Skip to content

Commit

Permalink
Ember CLI 1.13 compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlehner committed Aug 26, 2015
1 parent 9b26e15 commit 2e791c3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
17 changes: 6 additions & 11 deletions lib/ember-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@ var manifest = require('./manifest');

module.exports = {
name: 'broccoli-manifest',

included: function (app) {
this.app = app;
this.initializeOptions();
},

initializeOptions: function () {
var options = this.app.options.manifest || {};

config: function (env, baseConfig) {
var options = baseConfig.manifest || {};

var defaultOptions = {
enabled: this.app.env === 'production',
enabled: env === 'production',
appcacheFile: "/manifest.appcache",
excludePaths: ['index.html', 'tests/'],
includePaths: [],
Expand All @@ -32,10 +27,10 @@ module.exports = {
}

this.manifestOptions = options;
},
},

postprocessTree: function (type, tree) {
var options = this.manifestOptions;
var options = this.manifestOptions;

if (type === 'all' && options.enabled) {
manifestTree = funnel(tree, {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "A broccoli plugin automating appcache manifest file creation",
"main": "lib/manifest.js",
"ember-addon": {
"main": "lib/ember-addon.js"
"main": "lib/ember-addon.js",
"after": "broccoli-asset-rev"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down

0 comments on commit 2e791c3

Please sign in to comment.