Skip to content

Commit

Permalink
Merge pull request #120 from bertdeblock/various-improvements
Browse files Browse the repository at this point in the history
Various minor improvements
  • Loading branch information
villander authored Jul 22, 2021
2 parents 10395bc + 643ad5d commit 3caa456
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 62 deletions.
34 changes: 12 additions & 22 deletions tests/dummy/app/templates/docs/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,31 @@ Before:
```js
export default class App extends Application {
// ...
constructor() {
super(...arguments);

this.engines = {
'super-blog': {
dependencies: {
services: [
'router',
]
}
engines = {
'super-blog': {
dependencies: {
services: [
'router'
]
}
}
}
}

```

After:

```js
export default class App extends Application {
// ...
constructor() {
super(...arguments);

this.engines = {
'super-blog': {
dependencies: {
services: [
{ 'host-router': 'router' }
]
}
engines = {
'super-blog': {
dependencies: {
services: [
{ 'host-router': 'router' }
]
}
}
}
}

```
16 changes: 6 additions & 10 deletions tests/dummy/app/templates/docs/links.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,12 @@ import Application from '@ember/application';

export default class App extends Application {
// ...
constructor() {
super(...arguments);

this.engines = {
'super-blog': {
dependencies: {
externalRoutes: {
home: 'home.index',
settings: 'settings.blog.index'
}
engines = {
'super-blog': {
dependencies: {
externalRoutes: {
home: 'home.index',
settings: 'settings.blog.index'
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions tests/dummy/app/templates/docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ Within your Engine's root directory, modify `index.js` so that your addon is con
```js
// index.js

/*jshint node:true*/
const { buildEngine } = require('ember-engines/lib/engine-addon');

module.exports = buildEngine({
Expand All @@ -152,7 +151,6 @@ Within your Engine's `config` directory, modify the `environment.js` file:
```js
// config/environment.js

/*jshint node:true*/
'use strict';

module.exports = function(environment) {
Expand Down
18 changes: 7 additions & 11 deletions tests/dummy/app/templates/docs/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,13 @@ This means that your Engine will expect the host application to provide both the
// dummy/app/app.js
export default class App extends Application {
// ...
constructor() {
super(...arguments);

this.engines = {
'super-blog': {
dependencies: {
services: [
'store',
{ 'session': 'user-session' }
]
}
engines = {
'super-blog': {
dependencies: {
services: [
'store',
{ 'session': 'user-session' }
]
}
}
}
Expand Down
28 changes: 12 additions & 16 deletions tests/dummy/app/templates/docs/testing-acceptance.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,12 @@ import Application from '@ember/application';

export default class App extends Application {
// ...
constructor() {
super(...arguments);

this.engines = {
'admin-engine': {
dependencies: {
services: ['location-service']
}
engines = {
'admin-engine': {
dependencies: {
services: [
'location-service'
]
}
}
}
Expand Down Expand Up @@ -132,14 +130,12 @@ import Application from '@ember/application';

export default class App extends Application {
// ...
constructor() {
super(...arguments);

this.engines = {
'admin-engine': {
dependencies: {
externalRoutes: ['home']
}
engines = {
'admin-engine': {
dependencies: {
externalRoutes: [
'home'
]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/templates/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<div class="docs-bg-white">
<div class="docs-container docs-md">
<section class="docs-max-w-md docs-mx-auto docs-pb-8">
<aside>Looking for the quickstart? {{#docs-link "docs.index"}}Click here{{/docs-link}}.</aside>
<aside>Looking for the quickstart? {{#docs-link "docs.quickstart"}}Click here{{/docs-link}}.</aside>

<h1 id="introduction">Introduction</h1>
<p>Welcome to the official guide for Ember Engines! This guide is intended to get you up and running with Engines as implemented in the <a href="https://www.npmjs.com/package/ember-engines"><code>ember-engines</code></a> addon and give you background on various concepts and ideas related to Engines. It is intended to be read from start to finish, but has been broken down in case you want to come back and re-read a specific topic.</p>
Expand Down

0 comments on commit 3caa456

Please sign in to comment.