Repository navigation
Closed
Description
🔼 Part of [QUEST] Module Unification: Final Cut
This issue is part of the Module Unification Quest and will serve as a list of remaining tasks to land blueprint support for module unification apps.
Interested in helping?
Great! Comment on the issue to take on one of these blueprints. They are mostly pretty straightforward, see the service blueprint for example. Anything without a 🔒 is up for grabs.
If you have any questions, you can ask them in the #st-module-unification channel on the Ember community slack or you can ask me directly @gavinjoyce.
Creating a new module unification app
Install Ember CLI master:
npm install -g https://github.com/ember-cli/ember-cli.git
Generate a new app with the module unification env variables:
MODULE_UNIFICATION=true EMBER_CLI_MODULE_UNIFICATION=true ember new my-mu-app
Generate a component:
EMBER_CLI_MODULE_UNIFICATION=true ember g component x-button
Run the app:
EMBER_CLI_MODULE_UNIFICATION=true ember serve
ember-cli/ember-cli (blueprints):
(not applicable)addon-import-
MODULE_UNIFICATION=true ember addon my-addon -
MODULE_UNIFICATION=true ember new my-app (not applicable)ember generate blueprint(not applicable)ember generate http-mock(not applicable)ember generate http-proxy-
ember generate in-repo-addon- remove
.jshintrcand.eslintrc(see discussion)
- remove
ember generate lib(not applicable)ember generate server(not applicable)ember generate vendor-shim
emberjs/ember.js (blueprints):
-
ember generate acceptance-test -
ember generate component -
ember generate controller🍻 @dexturr @kevinansfield -
ember generate helper🆓 this incomplete PR might help -
ember generate initializer🔒@sduquej -
ember generate instance-initializer🆓 this incomplete PR might help -
ember generate mixin🍻@jackbeegan -
ember generate route🍻 @kevinansfield -
ember generate service -
ember generate template🍻@Willibaur @pablobm -
ember generate util🍻@daibhin
running emberjs blueprint tests
yarn run test:blueprints
emberjs/data (blueprints):
-
ember generate adapter🔒 @kevinansfield -
ember generate model🔒@dcyriller -
ember generate serializer🔒@dcyriller -
ember generate transform🔒@dcyriller
other items
- replace {{welcome-page}} addon with component example
- remove bower and user ember canary in package.json (Drop bower usage in module-unification-app blueprint. #7533)
- support init command (and any other commands which MU affects)
- reduce the duplication between classic and MU blueprints @ro0gr (WIP Test "new" and "addon" commands output against fixtures #7595)
- create a mini module unification blueprint quest issue (once we've migrated a few)
- document new blueprint usage
- don't use
ember-resolver/resolvers/fallbackresolver by default - fix travis-ci build failure on app output (
config/environment.js:51:37 error Empty block statement no-empty) - allow MU app/addon to be created using
ember-cli-blueprint-test-helpersandemberNew(we currently just create an emptysrcdirectory, which means we have to do things like this) 🔒@dcyriller - ...
Reacted by Hyungtae Kim, Ryan Scott, Danilo Vaz, Aurelien 'Sol' Pieropan, Yana Agun Siswanto, Cyrille David and Ilya Radchenko
Metadata
Metadata
Assignees
Labels
No labels
Activity
rwjblue commentedon Jan 2, 2018
I submitted #7533 to tackle:
alexander-alvarez commentedon Jan 4, 2018
Should we have a
ember-new-module-unification-outputrepo also?ro0gr commentedon Jan 14, 2018
I've started working on
I think the first necessary step is to improve testing of the
newandaddoncommand output #7557beegan commentedon Apr 11, 2018
Hey! I'll take the mixin blueprint!
[-]Module Unification Blueprints To-Do List[/-][+][QUEST] Module Unification Blueprints[/+][-][QUEST] Module Unification Blueprints[/-][+][QUEST] Module Unification: Blueprints[/+]kevinansfield commentedon May 19, 2018
I'm taking a stab at the routes blueprint :)
kevinansfield commentedon May 23, 2018
I've made a start on the Ember Data adapter blueprint, I'll try and get that finished off tonight
dcyriller commentedon Jun 14, 2018
Hello! I just did the model blueprint warp-drive-data/warp-drive#5491 (based on @kevinansfield 's warp-drive-data/warp-drive#5476)
dcyriller commentedon Jun 16, 2018
@GavinJoyce acceptance blueprint should remain unchanged according to MU RFC or am I wrong?
GavinJoyce commentedon Jun 18, 2018
@dcyriller hey, sorry I haven't had time to look into your PR yet. I have little time this week to work on OS, if no one else has reviewed your PR or answered your question by then I'll get to it early next week when I have more time.
I don't have the answer of the top of my head, perhaps you could ask in the #st-module-unification slack channel?
runspired commentedon Jun 21, 2018
@thoov and I discovered today that there is poor testing interop between old world and new world blueprints due to the inability to configure the state of the
EMBER_CLI_MODULE_UNIFICATIONfeature flag for the test. We had to skip theadaptertests for MU due to this. We propose something like the following being possible:cc @GavinJoyce @rwjblue
dcyriller commentedon Jul 26, 2018
@GavinJoyce may you update the emberjs/data part with a 🔒?
Also some work is in progress on ember-cli test helpers ember-cli/ember-cli-blueprint-test-helpers#153
GavinJoyce commentedon Jul 26, 2018
@dcyriller sure, what needs to be updated? (I've been busy on other projects so haven't been following MU progress)
dcyriller commentedon Jul 26, 2018
Thanks :)
A 🔒 should be added on ember-data blueprints. @NullVoxPopuli do you agree we should keep the PRs warp-drive-data/warp-drive#5491, warp-drive-data/warp-drive#5494, warp-drive-data/warp-drive#5542 (as they contain tests)?
The last item
allow MU app/addon to be created using ember-cli-blueprint-test-helpers and emberNew (we currently just create an empty src directory, which means we have to do things like this)is also in progress (ember-cli/ember-cli-blueprint-test-helpers#153).6 remaining items
GavinJoyce commentedon Oct 6, 2018
@abhilashlr I seem to recall that @locks was proposing that we implement a
welcome-pagecomponent in the blueprint, possibly so that there is an example component in the app. @locks, perhaps you recall and can confirm?gossi commentedon Oct 8, 2018
Can we have two blueprints instead? One for beginners, that has two routes and a component on one of them and one for people that are already familiar with ember, they receive a blank ember setup to get started right away? I can put a screenshot from ember-cli-create later that gives makes this one more understandable from a consumers pov.
locks commentedon Oct 8, 2018
@gossi
ember new my-project --no-welcomeis already that, is it not?@GavinJoyce Confirm! Due to isolated nature of pods, I think it is a better experience to have a folder that you can inspect the code of and tweak and see, than a "magic"
welcome-pagecomponent that is injected.gossi commentedon Oct 8, 2018
@locks true but I think we can do better by offering two blueprints instead:
ember new my-project -b beginner-app(with route and component) andember new my-project -b regular-app(blank app) I made passing the blueprint explicit in this scenario. Should be handled by cli instead, like I do inember-cli-create. Can provide a screenshot in the evening.abhilashlr commentedon Oct 17, 2018
@GavinJoyce @Turbo87 @locks Here it is for removal of
ember-welcome-pageand using in app component generation: #8139ppcano commentedon Nov 9, 2018
remove .jshintrc and .eslintrc-> #8179Next, I will try to complete the
helperandinstance-initializergenerators.ppcano commentedon Nov 15, 2018
acceptance-test-> emberjs/ember.js#17209ppcano commentedon Nov 15, 2018
#8194 stops adding
tests/{unit,integration}folders on theember newblueprint (#7488)ppcano commentedon Nov 15, 2018
#8195 adds tests for the
--no-welcomeoption of thenew MU appblueprint.I think,
replace {{welcome-page}} addon with component examplecan be removed from the list. Read the #8139 discussion.ppcano commentedon Nov 15, 2018
ember generate helper-> emberjs/ember.js#17211ppcano commentedon Nov 27, 2018
@GavinJoyce Please, could you update the task list status.
ember-cli/ember-cli
MODULE_UNIFICATION=true ember new my-app
tests/acceptancefolderremove .jshintrc and .eslintrc
emberjs
other items
replace {{welcome-page}} addon with component example. It may be removed based on the Removes ember-welcome-page addon and adds it as part of app folder #8139 discussion.adds tests for the --no-welcome option of the new MU app
[-][QUEST] Module Unification: Blueprints[/-][+]Module Unification: Blueprints[/+]Turbo87 commentedon Dec 1, 2019
closing due to https://blog.emberjs.com/2019/03/11/update-on-module-unification-and-octane.html