Skip to content

Commit

Permalink
working on blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesdaniels committed Oct 8, 2019
1 parent aa9a8d0 commit db079a6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 11 deletions.
15 changes: 4 additions & 11 deletions blueprints/emberfire/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@
const RSVP = require('rsvp');

module.exports = {
description: '',

// locals(options) {
// // Return custom template variables here.
// return {
// foo: options.entity.options.foo
// };
// }

normalizeEntityName() {},
description: 'Add emberfire dependencies',
afterInstall(options) {
return RSVP.all([
this.addPackageToProject('firebase', '^6.0.3'),
this.addAddonToProject('ember-auto-import', '^1.0.0')
this.addPackageToProject('firebase', '^7.0.0'),
this.addAddonToProject('ember-auto-import', '^1.5.2')
]);
}
};
3 changes: 3 additions & 0 deletions blueprints/firestore-adapter/files/app/adapters/__name__.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import FirestoreAdapter from 'emberfire/adapters/firestore';

export default FirestoreAdapter.extend({
// Uncomment the following lines to enable offline persistence and multi-tab support
// enablePersistence: true,
// persistenceSettings: { synchronizeTabs: true }
});
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import RealtimeDatabaseAdapter from 'emberfire/adapters/realtime-database';

export default RealtimeDatabaseAdapter.extend({

});

0 comments on commit db079a6

Please sign in to comment.