Skip to content

Commit

Permalink
Merge pull request #20 from mvdwg/remove-engine
Browse files Browse the repository at this point in the history
Remove engine
  • Loading branch information
san650 authored Dec 13, 2016
2 parents f44f0d9 + 6386852 commit bae615c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 64 deletions.
49 changes: 2 additions & 47 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,64 +14,19 @@ This addon retrieves the list of acceptance tests as features and allows you to

## Usage

### With ember-engines

```
$ ember install ember-engines@0.3.0
$ ember install telling-stories
```

Change the resolver of your application to use ember-engines ([link](https://github.com/dgeb/ember-engines/blob/8be97d771a64c289eed033feeea2c21566623277/README.md#customizing-the-resolver)).

Edit app/router.js to mount the new engine

```js
Router.map(function() {
this.mount('telling-stories-dashboard');
...
});
```

Access http://localhost:4200/telling-stories-dashboard

### Without ember-engines

```
$ ember install telling-stories
$ ember serve
```

Access http://localhost:4200/tests

You should see a new QUnit "Tell me the story" option on the top nav. By enabling this, your tests will run in player mode.

### Mirage

If you're using mirage you need to add a passthrough rule for `/telling-stories.json` route.

`mirage/config.js`

```js
export default function() {
this.passthrough('/telling-stories.json');
...
});
```
__Note that we are registering the passthrough rule before any `this.namespace` call`__
Access http://localhost:4200/tests and you should see a new QUnit "Tell me the story" option on the top nav. By enabling this, your tests will run in player mode.

## Development

### Installation

```
$ ember install telling-stories
```

### Running

```
$ ember serve
```

Building the app with logger enabled

```
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@
"ember-cli-uglify": "^1.2.0",
"ember-data": "^2.8.0",
"ember-disable-prototype-extensions": "^1.1.0",
"ember-engines": "^0.3.0",
"ember-export-application-global": "^1.0.5",
"ember-load-initializers": "^0.5.1",
"ember-resolver": "^2.0.3",
"telling-stories-dashboard": "1.0.0-alpha.3",
"loader.js": "^4.0.1"
},
"keywords": [
Expand Down
12 changes: 0 additions & 12 deletions tests/acceptance/stories-test.js

This file was deleted.

2 changes: 1 addition & 1 deletion tests/dummy/app/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Ember from 'ember';
import Resolver from 'ember-engines/resolver';
import Resolver from './resolver';
import loadInitializers from 'ember-load-initializers';
import config from './config/environment';

Expand Down
2 changes: 0 additions & 2 deletions tests/dummy/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ const Router = Ember.Router.extend({
});

Router.map(function() {
this.mount('telling-stories-dashboard', { path: 'stories' });

this.route('playground');
});

Expand Down

0 comments on commit bae615c

Please sign in to comment.