Skip to content

Instantly share code, notes, and snippets.

@RyanThompson
Last active August 29, 2015 14:24
Show Gist options
  • Save RyanThompson/d82fe6e169dcf7c082ec to your computer and use it in GitHub Desktop.
Save RyanThompson/d82fe6e169dcf7c082ec to your computer and use it in GitHub Desktop.
This is the suggested addon structure for Streams Platform packages and addons.
src/
Foo/FooModel
Foo/FooCollection // Transformed collection for FooModel
Foo/FooPresenter // Transformed presenter for FooModel
Foo/FooObserver // Observers can not be transformed
Foo/Table/FooTableBuilder // Assumes Foo/FooModel for $model property
Foo/Table/FooTableColumns // Handler for FooTableBuilder->columns
Foo/Form/FooFormBuilder // Assumes Foo/FooModel for $model property
Foo/Form/FooFormSections // Handler for FooFormBuilder->sections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment