ember-console
v0.0.7
Published
The default blueprint for ember-cli addons.
Downloads
9
Readme
ember-console
get a console (REPL) to you fastboot capable ember-app
WARNING: still experimental, but ideas/help is wanted!
Installation
yarn add ember-console
or
npm install ember-console
Usage
- ensure your app has
ember-cli-fastboot
>=1.0.0-rc.1
installed and working - build your app
ember build
- run
ember console
and your app indist/
is started in fastboot, and a repl to it is opened.
Available repl commands:
.help
for repl specific commandsapp
currentURL
routes
rootElement
lookup(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 fastbootvisit
helper, allowing you to manually navigate your appinstance
the fastboot instancesandbox
the 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-dist
Development
Installation
git clone <repository-url>
this repositorycd ember-console
npm install
Running
ember serve
- Visit your app at http://localhost:4200.
Running Tests
npm test
(Runsember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.