Skip to content

Commit

Permalink
Add auto-installation of prismic-javascript and prismic-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuget committed Jan 3, 2018
1 parent d943acb commit a81eb26
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 11 additions & 0 deletions blueprints/ember-cli-prismic/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-env node */
module.exports = {
description: 'Addon installation',

afterInstall(options) {
return this.addPackagesToProject([
{ name: 'prismic-javascript' },
{ name: 'prismic-dom' }
]);
}
};
5 changes: 1 addition & 4 deletions tests/dummy/app/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ export default Route.extend({
.getApi()
.then(api => api.query(
Prismic.Predicates.at('document.type', 'book'), { orderings: '[document.last_publication_date desc]' })
).then(response => {
console.log(response);
return response;
});
);
}
});

0 comments on commit a81eb26

Please sign in to comment.