Skip to content

Commit 9182b00

Browse files
authored
Merge pull request #367 from isleofcode/fix/global-package
fix(index): rm ember addon hooks, rename index package
2 parents 7a0866d + 54deb11 commit 9182b00

File tree

2 files changed

+1
-130
lines changed

2 files changed

+1
-130
lines changed

index.js

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,3 @@
1-
'use strict';
2-
3-
var commands = require('./lib/commands');
4-
var getNetworkIp = require('./lib/utils/get-network-ip');
5-
var cordovaPath = require('./lib/targets/cordova/utils/get-path');
6-
var cordovaAssets = require('./lib/targets/cordova/utils/cordova-assets');
7-
8-
var mergeTrees = require('broccoli-merge-trees');
9-
var Funnel = require('broccoli-funnel');
10-
111
module.exports = {
12-
name: 'ember-cordova',
13-
14-
contentFor: function(type) {
15-
if (this.project.targetIsCordova && type === 'body') {
16-
return '<script src="cordova.js"></script>';
17-
}
18-
},
19-
20-
includedCommands: function() {
21-
return commands;
22-
},
23-
24-
_mergeTrees: function(trees) {
25-
return mergeTrees(trees);
26-
},
27-
28-
//In Livereload scenarios, we need to manually include cordova assets
29-
cordovaAssetTree: function(tree) {
30-
var platform = this.project.CORDOVA_PLATFORM;
31-
var projectPath = cordovaPath(this.project);
32-
var assets = cordovaAssets.getPaths(platform, projectPath);
33-
34-
cordovaAssets.validatePaths(assets.assetsPath, projectPath);
35-
36-
var pluginsTree = new Funnel('ember-cordova/cordova', {
37-
srcDir: assets.assetsPath,
38-
include: assets.files
39-
});
40-
41-
return this._mergeTrees([tree, pluginsTree]);
42-
},
43-
44-
treeForPublic: function() {
45-
var tree = this._super.treeForPublic.apply(this, arguments);
46-
47-
if (this.project.targetIsCordovaLivereload) {
48-
return this.cordovaAssetTree(tree);
49-
}
50-
51-
return tree;
52-
}
2+
name: 'corber'
533
};

node-tests/unit/index-test.js

Lines changed: 0 additions & 79 deletions
This file was deleted.

0 commit comments

Comments
 (0)