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/features/scrolling",
"platform/forms", "platform/forms",
"platform/persistence/queue", "platform/persistence/queue",
-- "platform/persistence/elastic", - "platform/persistence/elastic",
"platform/policy", "platform/policy",
"example/generator" "example/generator"
@ -124,7 +124,7 @@ __bundles.json__
"platform/persistence/queue", "platform/persistence/queue",
"platform/policy", "platform/policy",
++ "example/persistence", + "example/persistence",
"example/generator" "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”, to this plugin as tutorials/todo as well.) We will start with an “empty bundle”,
one which exposes no extensions - which looks like: one which exposes no extensions - which looks like:
```diff
{ {
"name": "To-do Plugin", "name": "To-do Plugin",
"description": "Allows creating and editing to-do lists.", "description": "Allows creating and editing to-do lists.",
@ -191,7 +192,7 @@ one which exposes no extensions - which looks like:
} }
} }
```
__tutorials/todo/bundle.json__ __tutorials/todo/bundle.json__
We will also include this in our list of active bundles. 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__ __bundles.json__
#### After #### After
```diff
[ [
"platform/framework", "platform/framework",
"platform/core", "platform/core",
@ -244,9 +247,9 @@ __bundles.json__
"example/persistence", "example/persistence",
"example/generator", "example/generator",
++ "tutorials/todo" + "tutorials/todo"
] ]
```
__bundles.json__ __bundles.json__
At this point, we can reload Open MCT Web. We havent introduced any new 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 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 want users to be able to create and edit. So, we will add that as a new type in
our bundle definition: our bundle definition:
```diff
{ {
"name": "To-do Plugin", "name": "To-do Plugin",
"description": "Allows creating and editing to-do lists.", "description": "Allows creating and editing to-do lists.",
"extensions": { "extensions": {
++ "types": [ + "types": [
++ { + {
++ "key": "example.todo", + "key": "example.todo",
++ "name": "To-Do List", + "name": "To-Do List",
++ "glyph": "j", + "glyph": "j",
++ "description": "A list of things that need to be done.", + "description": "A list of things that need to be done.",
++ "features": ["creation"] + "features": ["creation"]
++ } + }
] ]
} }
} }
```
__tutorials/todo/bundle.json__ __tutorials/todo/bundle.json__
What have we done here? Weve stated that this bundle includes extensions of the What have we done here? Weve stated that this bundle includes extensions of the