This commit is contained in:
Henry 2015-11-09 11:21:58 -08:00
parent bf39aa1b1d
commit 05f8739952
2 changed files with 97 additions and 93 deletions

View File

@ -95,7 +95,7 @@ example/persistence.
"platform/features/scrolling",
"platform/forms",
"platform/persistence/queue",
-- "platform/persistence/elastic",
- "platform/persistence/elastic",
"platform/policy",
"example/generator"
@ -124,7 +124,7 @@ __bundles.json__
"platform/persistence/queue",
"platform/policy",
++ "example/persistence",
+ "example/persistence",
"example/generator"
]
```
@ -184,6 +184,7 @@ We will create this file in the directory tutorials/todo (we can hereafter refer
to this plugin as tutorials/todo as well.) We will start with an “empty bundle”,
one which exposes no extensions - which looks like:
```diff
{
"name": "To-do Plugin",
"description": "Allows creating and editing to-do lists.",
@ -191,7 +192,7 @@ one which exposes no extensions - which looks like:
}
}
```
__tutorials/todo/bundle.json__
We will also include this in our list of active bundles.
@ -222,6 +223,8 @@ We will also include this in our list of active bundles.
__bundles.json__
#### After
```diff
[
"platform/framework",
"platform/core",
@ -244,9 +247,9 @@ __bundles.json__
"example/persistence",
"example/generator",
++ "tutorials/todo"
+ "tutorials/todo"
]
```
__bundles.json__
At this point, we can reload Open MCT Web. We havent introduced any new
@ -269,22 +272,23 @@ deeper explanation of domain objects, see the Open MCT Web Developer Guide.)
In the case of our to-do list feature, the to-do list itself is the thing well
want users to be able to create and edit. So, we will add that as a new type in
our bundle definition:
```diff
{
"name": "To-do Plugin",
"description": "Allows creating and editing to-do lists.",
"extensions": {
++ "types": [
++ {
++ "key": "example.todo",
++ "name": "To-Do List",
++ "glyph": "j",
++ "description": "A list of things that need to be done.",
++ "features": ["creation"]
++ }
+ "types": [
+ {
+ "key": "example.todo",
+ "name": "To-Do List",
+ "glyph": "j",
+ "description": "A list of things that need to be done.",
+ "features": ["creation"]
+ }
]
}
}
```
__tutorials/todo/bundle.json__
What have we done here? Weve stated that this bundle includes extensions of the