generator-meteo

0.1.0 • Public • Published

generator-meteo (Version 0.1.0)

Yeoman generator for scaffolding Meteor web and mobile apps, views and collections in CoffeScript (based on generator-met).


Setup

Before you'll get any use out of this, you'll need to install Meteor and Yeoman

Here are the combined instructions at the time of this writing:

# Meteor
curl https://install.meteor.com | /bin/sh

# Yeoman
npm install -g yo

# This generator
npm install -g generator-meteo

Scaffolding

The following command will scaffold a new meteor app for you, including the iron-router, fastclick, jquery, coffeescript, and underscore packages by default and your CSS preprocessing of choice:

  • none: No CSS preprocessing.
  • stylus: Expressive, dynamic, robust CSS.
  • Less: The dynamic stylesheet language.
  • Twitter Bootstrap (twbs:bootstrap): Compiled CSS and JS version of Twitter Bootstrap.
  • Twitter Bootstrap (nemo64:bootstrap): Configurable Less version of Twitter Bootstrap.
mkdir my-app && cd my-app
yo meteo

After your app is scaffolded, you'll want to install dependencies and start your app with:

meteor

Structure

The generated app will have the following structure by default:

/
    .meteor/
        .gitignore
        packages
        release
    client/
        main.coffee
        router.coffee
        stylesheets/
        views/
            index.html
            index.coffee
            layout.html
            loading.html
    lib/
        collections/
    packages/
    public/
    server/
        main.coffee
        methods.coffee
        publications/
        security/
    .gitignore
    README.md
    index.html

Sub-Generators

We've also included a couple of Yeoman sub-generators to simplify common development tasks:

view

yo meteo:view <name>

Creates <name>.html and <name>.coffee

The location of these files depends on the template hierarchy set for the project:

  • Nested: Template files are created in a new folder named after the template, such as clients/views/<name>/
  • Flat (default): All template views are created in the same folder, clients/<name>/

package

yo meteo:package <name>

Scaffolds and installs a new package called "".

collection

yo meteo:collection <name>

Creates a new collection in lib/collections/<name>.coffee, publication in server/publications/<name>.coffee and security in server/security/<name>.coffee (if the security option was enabled on app generation).

Readme

Keywords

Package Sidebar

Install

npm i generator-meteo

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • cyborgsimon