0.0.7 • Published 8 years ago
ember-console v0.0.7
ember-console
get a console (REPL) to you fastboot capable ember-app
WARNING: still experimental, but ideas/help is wanted!
Installation
yarn add ember-consoleor
npm install ember-consoleUsage
- ensure your app has
ember-cli-fastboot>=1.0.0-rc.1installed and working - build your app
ember build - run
ember consoleand your app indist/is started in fastboot, and a repl to it is opened.
Available repl commands:
.helpfor repl specific commandsappcurrentURLroutesrootElementlookup(fullName): enables looking up singletons, for examplelookup('router:mian')reload()reloads the app, if a new bulid has occured this can be used to reload new code.visit(path)the fastbootvisithelper, allowing you to manually navigate your appinstancethe fastboot instancesandboxthe sandboxed global: for exampleObject.keys(sandbox.require.entries)will give you all the modules your app uses
Bonus
It is also possible to connect the console to a pre-built application (as long as it was built with fastboot)
ember build --output-path my-other-dist`
ember console --output-path my-pther-distDevelopment
Installation
git clone <repository-url>this repositorycd ember-consolenpm install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.

