Ember Rails and the Yeoman generate sets up the application.js file like this:
App = Ember.Application.create({});
The the application.js file without the window.App namespace will be migrated to this.
import Ember from 'ember';
Pos = Ember.Application.create({
});
export default undefined;
Once you create the ember-cli app by runing ember init after the migration the application.js file is no longer needed. Here is the workflow I suggest for migrating their apps.
run find javascripts -name '.gitkeep' -delete to delete any .gitkeep files
run the ember-cli-migrator over your global ember app
run ember init in the folder containing the app folder
move/delete any js files that might be out of place in your app.
The last step would include deleting the application.js file.
At some point we could move all .js files not recognized by the migrator to an unknown-javascripts folder during the processing phase.
This fixes #56
in the test current
application.js
test uses:Ember Rails and the Yeoman generate sets up the
application.js
file like this:The the application.js file without the
window.App
namespace will be migrated to this.Once you create the ember-cli app by runing
ember init
after the migration theapplication.js
file is no longer needed. Here is the workflow I suggest for migrating their apps.find javascripts -name '.gitkeep' -delete
to delete any .gitkeep filesember-cli-migrator
over your global ember appember init
in the folder containing theapp
folderjs
files that might be out of place in your app.The last step would include deleting the
application.js
file.At some point we could move all
.js
files not recognized by the migrator to anunknown-javascripts
folder during the processing phase.I would love to hear you feedback.