0.2.8 • Published 11 years ago

ember-tools v0.2.8

Weekly downloads
56
License
-
Repository
-
Last release
11 years ago

Ember Tools

demo

Installation

npm install ember-tools

What's in the bag?

Features

  • prescribed file organization for sanity
  • template precompilation for performance
  • single file application build for convenience
  • generators for faster application development
  • commonjs (node) style modules for js community <3 and isolated testing

Commands

  • ember create [appDir]
  • ember build
  • ember-generate [options] [resource]
  • ember-precompile --directory [directory] --file [file]

Current Library Versions

  • ember 1.0.0.pre4
  • ember-data rev 11
  • handlebars 1.0.rc.2
  • jQuery 1.9.0

ember create [dir]

Creates the directory at dir and shoves a boilerplate ember app into it. Also creates an .ember file in the current directory so ember build knows what directory to build.

IMPORTANT: Your app must be a sub-directory of the app you create it from. I anticipate more information to be stored in the .ember file like CoffeeScript and AMD support, etc.

Example:

ember create client

ember build

Builds your app, handing you a fresh-from-the-oven application.js with everything inside.

Example:

ember build

ember generate [options] [resource]

Generates boilerplate application modules.

Examples:

optionsobject namefile
--model, -m burritoBurritomodels/burrito.js
--view, -v burritoBurritoViewviews/burrito.js
--controller, -c post/commentsPostCommentsControllercontrollers/post/comments.js
--template, -t post/commentsn/atemplates/post/comments.handlebars
--route, -r taco_cartTacoCartRouteroutes/taco_cart.js
-mvcrt tacosTaco TacosView TacosController TacosRoutemodels/taco.js views/tacos_view controllers/tacos_controller.js routes/taco_route.js templates/tacos.handlebars

Notes:

  • Models will always be singular.
  • Sub-directories will be created for you if they don't exist.
  • Files will be overwritten without warning.

ember precompile --directory [dir] --file [file]

Precompiles templates found in dir into file.

Examples

ember-precompile --directory app/templates --file app/templates.js ember-precompile -d app/templates -f app/templates.js

Roadmap

  • create CONTRIBUTING file
  • moar tests
  • travis-ci
  • warn before overwriting a file
  • scaffolding (functional CRUD in one command)
  • baked in testing
  • generated tests
  • support for custom application namespace (instead of just App)
  • consolidate all bin script usage into ember (get rid of ember-generate, etc.)
  • emblem.js templates
  • coffeescript generators
  • AMD generators/build (maybe)
  • coffeescript + AMD generators! (maybe-er)
  • ES6 module generators/build EVEN THOUGH E'RBODY UP IN THEIR GRILL (maybeist)
  • refactor some of the ugly parts of the code

License and Copyright

MIT Style License

Copyright © 2013 Ryan Florence

Contributing

Run tests with

mocha test

0.2.8

11 years ago

0.2.7

11 years ago

0.2.6

11 years ago

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago