Yeoman generator for MeteorJS application and package.

Usage no npm install needed!

<script type="module">
  import generatorMeteorjs from '';



npm: npm Maintenance npm

Yeoman generator for MeteorJS application and packages. This generator relies on meteor command line in order to generate application and package stubs.

Note: As this project is at development stage, please don't hesitate to use Issues section for any suggestion.


To install yeoman from npm, run:

$ npm install -g yo


To install generator-meteorjs from npm, run:

$ npm install -g generator-meteorjs

Initiate the generator:

$ yo meteorjs myblog --coffee --packages reader,writer,core

Finally, run Meteor:

$ cd myblog
$ meteor


Application generator (default)

Create a MeteorJS application from scratch based on command line options and answers to prompted questions.

yo meteorjs --help


  • name when specified, generate projet in a new sub-directory named as is.

Options are:

  • --coffee for CoffeeScript language support
  • --verbose to activate debug traces
  • --packages list,of,pkg to create empty packages inside the application
  • --styles <less|fourseven:scss|...> Use a specific styles generator
  • --router Enable FlowRouter support as routing middleware
  • --secure Remove default packages: "insecure" and "autopublish"
  • --help to display all generator options

Some options disable questions related to

Answers to questions are stored for next execution then you won't have my defaults a second time ^^

Generator sub-commands


Generates a new route with path registration and associated template.

Argument is route path and you can also specify --template <name> to generate and associate a custom template name.

Template name is auto-generated if not overriden by --template option. e.g.: for path /posts/:postId, a template named posts is generated.


When this script is called:

yo meteorjs myblog --router --packages reader,writer,core
yo meteorjs:route /posts --template postList

This structure is created ($ tree .):

├── client
│   ├── head.html
│   ├── index.js
│   ├── layout.html
│   ├── myblog.less
│   └── templates
│       ├── postList.html
│       └── postList.js
├── collections.js
├── packages
│   ├── core
│   │   ├──
│   │   ├── core-tests.js
│   │   ├── core.js
│   │   └── package.js
│   ├── reader
│   │   ├──
│   │   ├── package.js
│   │   ├── reader-tests.js
│   │   └── reader.js
│   └── writer
│       ├──
│       ├── package.js
│       ├── writer-tests.js
│       └── writer.js
└── router.js

File contents

User generated packages are, for instance, exactely the same those generated by command meteor create --package <package-name>.




Clone repository:

git clone

Tests are located in ./test folder and can be run using command npm test.

When feature added and tested, send your PR.


MIT License