Migrating to 1.3 and api.imply - What should I do?

Hi everyone! :slight_smile:

I started my first meteor project a few month ago now, using Meteor 1.1, and I decided very early to adopt a packaged/modular strategy to keep things neat, clean, and sorted. I plan to upgrade to 1.3 (because the latest changes and improvements are awesome! :smiley:) and before I do, I would like to be sure of what I’ll be doing to be on the right rails.

First, a little explanation on my file architecture. Here what I have:

  • Applications
    – app1
    – app2
    – etc.
  • Packages
    – Package1
    – Package2
    – etc.

Applications (ie: app1) are just created the regular way with meteor create app1. Then, I just don’t do anything more than meteor add package1. Which means that app1 is actually… empty :laughing:, relying on my package “package1” to imply all what will be needed (both general, public packages AND my own specific packages in my ‘Packages’ folder too)

“Package1”, the first, “core”, package, looks like this:

  name: 'package1',
  version: '1.0.0',
  summary: 'Core package - "api.implies" all that is needed',
  git: '...',
  documentation: 'README.md'

Package.onUse(function(api) {

    // and so on...
    // now, my own, local packages:
    // and so on...

This works perfectly, and allows me to dedicate each package to a specific task/logic that I can reuse modularily in any app.

Now, as I want to upgrade to Meteor 1.3, I don’t really see how to reproduce this using the new (and awesome) module approach… What would this “api.imply” way of doing things become now?

Many thanks in advance for your help and advice!