Code Monkey home page Code Monkey logo

Comments (10)

alanning avatar alanning commented on May 22, 2024

Hi Roman,

Hmm, not sure. Roles isn't compatible with the new package system yet so
you can't pull it down automatically.

I saw on the 0.9 meteor-core thread that locally installed packages will
work as normal so you can create a dummy meteor app with 0.8.3 and mrt add roles then copy over the packages/roles directory and manually add
roles to the .meteor/packages file. I think that should work.

Adrian Lanning
Co-Founder, CTO
Share911
P: 203-895-8830
https://share911.com/

On Sat, Aug 23, 2014 at 4:25 PM, roman [email protected] wrote:

hi alanning

How do I install the package under meteor 0.9 - without mrt ?

regards roman


Reply to this email directly or view it on GitHub
#52.

from meteor-roles.

benlavalley avatar benlavalley commented on May 22, 2024

I manually added it to my app.

Just ran a git clone on it (git clone https://github.com/alanning/meteor-roles.git, or you can just snag the ZIP), then moved the meteor-roles/roles subfolder into myappname/packages/roles.

I then added it to my app by running 'metoer add roles'.

For some other packages I used this method with, I had to modify package.js to recognize the new naming scheme for dependencies, e.g. modifying appname/collection2/package.js "api.use(['simple-schema'," ...." to "api.use(['aldeed:simple-schema' ....

I struggled a bit getting my app working with a migration from 0.8.x to 0.9.x. "A bit" is putting it very lightly. I decided to just build a new app, migrated my code, and purposefully didn't run mrt at all as I found that would just foul it up -- I grabbed entirely new packages manually with 'meteor add ....' and almost everything from Atmoshpere was supported natively in 0.9 with only a few packages needing the above manual work (namely houston, collection2, roles, and handlebar-helpers.).

from meteor-roles.

alanning avatar alanning commented on May 22, 2024

@nibbl Thanks for the info! Do you happen to know why roles may be incompatible with 0.9? The atmosphere folk did an automatic conversion but some packages didn't auto-convert successfully (like this one).

Also, based on what you know of modifying the package.js files, do you think its possible to support both pre-0.9 and 0.9 packaging system with the same repo? It would suck to have to try to keep a branch for older Meteor in-sync.

from meteor-roles.

alanning avatar alanning commented on May 22, 2024

FYI, Arunoda posted a timely hackpad regarding adding 0.9 support for existing packages:

https://hackpad.com/Add-Meteor-0.9-support-for-your-Existing-Packages-P0R7y1PiXlu

from meteor-roles.

aaronjudd avatar aaronjudd commented on May 22, 2024

@alanning you can do this to support both:

Package.on_use(function(api) {
  // Dependencies

  // 0.9.0+
  if (api.versionsFrom) {
    // common
   api.use....
  }
  // Pre-0.9.0
  else {
  api.use ....
}

from meteor-roles.

hellogerard avatar hellogerard commented on May 22, 2024

@alanning,

Now that 0.9.0 is out, you should be able to run

mrt migrate-package path/to/old/meteor-roles  path/to/new/alanning:roles

It will create that alanning:roles folder, and you can directly commit those changes. Bump the version in package.js, and run meteor publish, and BOOM, 0.9.0 compatible :-)

Source

from meteor-roles.

alanning avatar alanning commented on May 22, 2024

OK, I pushed a new version - v1.2.12 - and published to the new packaging servers and it seems to be working...

$ meteor create foo
$ cd foo
$ meteor add alanning:roles
$ meteor

...and nothing blows up. Please have a try and see if its working for you guys.

from meteor-roles.

benlavalley avatar benlavalley commented on May 22, 2024

Working for my app!

from meteor-roles.

aaronjudd avatar aaronjudd commented on May 22, 2024

Looks good here as well. Thanks!

from meteor-roles.

alanning avatar alanning commented on May 22, 2024

Thanks for the help!

from meteor-roles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.