This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from rwjblue/make-ember-init-use-installed-ver…
…sion Allow usage of blueprint within a blueprinted project.
- Loading branch information
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
'use strict'; | ||
const path = require('path'); | ||
const MainBlueprint = require('../../../index'); | ||
|
||
/* | ||
Create an "addon blueprint" that simply defers to our | ||
top level entry point as the blueprint. | ||
This is basically just a work around for | ||
https://github.com/ember-cli/ember-cli/issues/6952. | ||
Once that issue is fixed and released we can remove: | ||
* ember-addon keyword in package.json | ||
* ember-addon key in package.json | ||
* ember-addon-main.js file | ||
* blueprints/ folder | ||
*/ | ||
module.exports = Object.assign({}, MainBlueprint, { | ||
init() { | ||
this._super.init.apply(this, arguments); | ||
|
||
this.path = path.join(__dirname, '..', '..', '..'); | ||
this.name = '@glimmer/blueprint'; | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
/* | ||
Create an "addon blueprint" that simply defers to our | ||
top level entry point as the blueprint. | ||
This is basically just a work around for | ||
https://github.com/ember-cli/ember-cli/issues/6952. | ||
Once that issue is fixed and released we can remove: | ||
* ember-addon keyword in package.json | ||
* ember-addon key in package.json | ||
* ember-addon-main.js file | ||
* blueprints/ folder | ||
*/ | ||
module.exports = { | ||
name: '@glimmer/blueprint' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters