Comments (10)
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.
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.
@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.
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.
@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.
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 :-)
from meteor-roles.
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.
Working for my app!
from meteor-roles.
Looks good here as well. Thanks!
from meteor-roles.
Thanks for the help!
from meteor-roles.
Related Issues (20)
- API docs linked to old version of codes HOT 1
- getUsersInRole reactivity? HOT 1
- getScopesForUser is not in documentation HOT 1
- How to run migration script from V1 -> V3 HOT 3
- Exception on subscription: $in needs an array.
- Support new Meteor async API (Meteor 2.8+) HOT 2
- Defaut publication uses only user._id, but no index is created on that field only HOT 2
- cannot add data into role-assignment HOT 3
- Meteor.roleAssignment, error: Property 'roleAssignment' does not exist on type 'typeof Meteor'. HOT 5
- Weird issue with role-assignement.. HOT 2
- Upgrading from 3.4.0 to 3.5.0 introduces 6x node "UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined" warnings. HOT 1
- TypeError: Cannot set property 'isCalledFromAsync' of undefined ... HOT 4
- Improve community standards HOT 1
- Add code quality tools HOT 2
- Add selector to Roles.getUsersInRole HOT 2
- forwardMigrate2 tries to drop unset index HOT 1
- Add new function to change scope of existing role assignment HOT 1
- addRolesToParent -> Reset inheritance as unwanted roles may still be connected HOT 1
- Get a list of users with a scope HOT 13
- api docs still show v.3.4.0 in upper right corner HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meteor-roles.