Socket
Book a DemoInstallSign in
Socket

ember-gen

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-gen

Ember Generator Applications -----------

0.1.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Ember Gen

Features

  • prescribed file organization for sanity
  • scaffolding for a smaller learning curve
  • precompilation template for better performance
  • application of a single file to a better experience
  • generators for faster application development
  • commonjs (node) style modules for js community <3 and isolated testing
  • easily build semantic forms in ember and simple validators

Dependence

To install the ember-gen is required

NodeJs >= 0.8
npm

Installation

npm install -g ember-gen

Quickstart

ember new demo-app -t bootstrap
cd demo-app
ember generate -s contact title:string email:string age:number
ember build
open demo-app/index.html
# visit #/contacts

Usage

  Usage: ember [command] [options]

  Command-Specific Help

    ember [command] --help

  Commands:

    new [options]      creates a new ember application [dir]
    build|b [options]        compiles templates and builds the app
    generate|g [options]     generates application files
    precompile|p [options]   precompile templates from src dir to target dir

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
optionsobject namefile
--model, -m postPostmodels/post.js
--view, -v postPostViewviews/post_view
--controller, -c post/commentsPostCommentsControllercontrollers/post/comments.js
--template, -t post/commentsn/atemplates/post/comments.hbs
--helper, -h truncatehelpers/truncate.js
--route, -r post_commentPostCommentRouteroutes/post_comment.js
--mixin, -m postablePostablemixins/postable.js
-mvcrt postsPost
PostsView
PostsController
PostsRoute
models/post.js
views/posts_view
controllers/posts_controller.js
routes/post_route.js
templates/posts.hbs
--scaffold, -s postPost
PostsView
PostsController
PostsRoute
models/post.js
views/posts_view
controllers/posts_controller.js
routes/post_route.js
templates/posts.hbs

Notes:

  • Models will always be singular.

Build

For any change in the application files should run the following command to compiles templates and builds the app

ember build 

You can also use an observer to compile the templates and build the app every change made in the application files

ember build -w

Version Information

Current Version: 0.1.0

Package versions:

  • ember 1.0.0-RC.2
  • ember-data rev 12
  • handlebars 1.0.0-rc.3
  • jQuery 1.9.1
  • Underscore 1.4.4

MIT Style License

Copyright © 2013 Alex Ferreira

FAQs

Package last updated on 22 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.