forked from mattmarcum/ember-simple-auth-pouch
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.js
36 lines (29 loc) · 945 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict';
module.exports = {
name: require('./package').name,
testPeerDependency(module) {
try {
//TODO: test version
require(module);
} catch (e) {
throw new Error(
"'" +
module +
"' is not found, but required as a peerDependency. Please install it with `npm install --save-dev " +
module +
'`'
);
}
},
init: function () {
this._super.init && this._super.init.apply(this, arguments);
// var bowerDeps = this.project.bowerDependencies();
//if (bowerDeps['pouchdb-authentication']) {this.ui.writeWarnLine('Please remove `pouchdb-authentication` from `bower.json`. For ember-simple-auth-pouch only the NPM package is needed.');}
this.testPeerDependency('ember-pouch');
this.testPeerDependency('ember-simple-auth');
this.testPeerDependency('pouchdb-authentication');
},
isDevelopingAddon() {
return true;
},
};