Skip to content

Commit

Permalink
Switch to NPM only
Browse files Browse the repository at this point in the history
* Switch to NPM only

* ember 2.7

* no dev stuff

* Suppress jshint warning
  • Loading branch information
broerse authored Nov 30, 2016
1 parent 18bd3d3 commit 6e0dc43
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 52 deletions.
6 changes: 0 additions & 6 deletions blueprints/.jshintrc

This file was deleted.

19 changes: 0 additions & 19 deletions blueprints/ember-cli-simple-auth-pouch/index.js

This file was deleted.

19 changes: 2 additions & 17 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,7 @@
{
"name": "ember-simple-auth-pouch",
"dependencies": {
"ember": "2.2.0",
"ember-cli-shims": "0.1.0",
"ember-cli-test-loader": "0.2.2",
"ember-load-initializers": "0.1.7",
"ember-qunit-notifications": "0.1.0",
"jquery": "^1.11.3",
"loader.js": "^3.5.0",
"qunit": "~1.20.0",
"pouchdb": "^3.5.0",
"relational-pouch": "^1.3.2",
"pretender": "~0.10.1",
"lodash": "~3.7.0",
"Faker": "~3.0.0",
"pouchdb-authentication": "^0.5.3"
},
"resolutions": {
"ember": "2.2.0"
"ember": "2.7.0",
"ember-cli-shims": "0.1.1"
}
}
24 changes: 20 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,28 @@
/* jshint node: true */
/* jshint node: true, -W030 */
'use strict';

var path = require('path');
var stew = require('broccoli-stew');

module.exports = {
name: 'ember-simple-auth-pouch',

included: function included(app) {
var bowerDir = app.bowerDirectory;
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.');}
},

treeForVendor: function() {
return stew.find(path.join(path.dirname(require.resolve('pouchdb-authentication')), '..', 'dist'), {
destDir: 'pouchdb',
files: ['pouchdb.authentication.js']
});
},

app.import(bowerDir + '/pouchdb-authentication/dist/pouchdb.authentication.js');
included(app) {
app.import('vendor/pouchdb/pouchdb.authentication.js');
}
};
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,33 @@
"devDependencies": {
"broccoli-asset-rev": "^2.2.0",
"ember-ajax": "0.7.1",
"ember-cli": "2.2.0-beta.3",
"ember-cli": "2.7.0",
"ember-cli-app-version": "^1.0.0",
"ember-cli-dependency-checker": "^1.2.0",
"ember-cli-htmlbars": "^1.0.1",
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
"ember-cli-inject-live-reload": "^1.3.1",
"ember-cli-qunit": "^1.1.0",
"ember-cli-release": "0.2.8",
"ember-cli-release": "^0.2.9",
"ember-cli-sri": "^1.2.0",
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.2.1",
"ember-data": "^2.7.0",
"ember-disable-prototype-extensions": "^1.0.0",
"ember-disable-proxy-controllers": "^1.0.1",
"ember-export-application-global": "^1.0.4",
"ember-pouch": "3.0.0",
"ember-resolver": "^2.0.3",
"ember-simple-auth": "1.1.0",
"ember-try": "~0.0.8"
},
"keywords": [
"ember-addon"
],
"dependencies": {
"broccoli-stew": "^1.3.1",
"ember-cli-babel": "^5.1.5",
"ember-simple-auth": "1.1.0",
"ember-pouch": "^3.0.0"
"pouchdb-authentication": "^0.5.3",
"ember-pouch": "^4.2.0",
"loader.js": "^4.0.1"
},
"ember-addon": {
"after": [
Expand Down

0 comments on commit 6e0dc43

Please sign in to comment.