Skip to content

Commit

Permalink
[BUGFIX release] Add blueprints to ember-data package.
Browse files Browse the repository at this point in the history
In 3.11 ember-data migrated its blueprints to belong to the specific
packages that they operate on. Unfortunately, ember-cli (at least as of
3.12) only supports discovering blueprints from addons that are direct
dependencies or devDependencies of the project.

This adds re-exports for each of the blueprints from the top level
`ember-data` package in order to make `ember g model` (and friends) work
properly when the project depends on `ember-data` and not the individual
`@ember-data/*` packages themselves.
  • Loading branch information
rwjblue committed Jul 11, 2019
1 parent 0e3a496 commit 262724b
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/adapter-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/adapter/blueprints/adapter-test');
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/adapter/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/adapter/blueprints/adapter');
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/model-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/model/blueprints/model-test');
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/model/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/model/blueprints/model');
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/serializer-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/serializer/blueprints/serializer-test');
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/serializer/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/serializer/blueprints/serializer');
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/transform-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/serializer/blueprints/transform-test');
4 changes: 4 additions & 0 deletions packages/-ember-data/blueprints/transform/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Re-exporting the blueprints from the top level `ember-data` package
// because blueprint discovery in ember-cli (as of 3.12) is only done
// for top level packages.
module.exports = require('@ember-data/serializer/blueprints/transform');

0 comments on commit 262724b

Please sign in to comment.