-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meteor 1.2 - cross-package imports #106
Comments
Hi, yes, I just need to find the time to work out what's new and what needs re-coding. |
Okay, documentation is lacking in some areas, but I tried to hack together something minimal working based of the less and stylus packages. You can find it in this fork: https://github.com/sebakerckhof/meteor-scss What seems to work: What is not included: |
Btw, 'seems to work' means that I've tested it very quickly, with not to complex scenarios. |
Thanks, I've just turned it into a pull request, and will test it after work (approx 8-12 hours). |
Sounds amazing! Thanks so much for this |
I've merged it to master but have had problems running it on my projects – I've got a test repo here which it won't work with, it's related to scss partials and subdirectories. https://github.com/fourseven/meteor-scss-test the error:
|
Yeah, seems I forgot some use cases, I'll look at it tomorrow. |
No problem – I've added you as a collaborator, thanks for the work you've put in so far! |
Okay, I've got a fix ready, but I want to run some more tests to make sure I didn't forget about anything this time. I also need to do some work on better error messages. I've also created an autoprefix compiler, but there are some limitations with the current meteor build system, see: meteor/meteor#5219 which make it not really usable as of today. I hope to discuss this further with MDG soon. |
Thanks again for the work, sounds good. That's a pain about auto-prefixer, could you link that issue in the README.md for this package as part of the updated 1.2 SCSS complier commit/PR please? |
Okay, got some delay due to this meteor bug: meteor/meteor#5278 . Doesn't affect this package though. I rewrote some parts, every use case I could think of should now work, but please verify. Changes in absolute files are not tracked by Meteor though. I believe the official less and stylus packages don't allow absolute paths, but I should also verify this. I also removed the possibility to mark imports with *.import.scss as the SASS ways seems to be to prefix with an underscore, and one way is sufficient. |
I'm getting not found errors trying your fork. I'm using a package with |
That is correct, you need to add the file like this in your package.js definition: |
How can I use this right now? Saw that v3.3.3 has support for this but there is no such version. And how do I add this to meteor at the moment? I'm trying to add materialize to my app and need to modify and access their variables (without braking the first run of the app where no build folder is available). |
Hi @appinteractive - clone it down to your /packages subfolder should do it (without the .git extension) I've almost finished testing, things go well and 3.3.3 will be out soon |
still no luck with my tests of the cross package import... I've created a quick meteor app to help test. https://github.com/robomatic/scsstest |
Sorry, I was wrong, it does work. I didn't have the |
Any update on expected official release of 3.3.3? Thanks! |
Just published, thanks everyone! |
Hey @fourseven, what if I still encounter: Is it possible I have something wrong on my end? |
meteoric ionic should be updated for the Meteor 1.2 and cross-package imports. In the meantime you can use fourseven:[email protected] |
Yep, using fourseven:[email protected] with Cf. longer thread on meteoric/ionic-sass#16. |
Hello,
Meteor 1.2 has a new plugin interface, and the default less and stylus packages allow for cross-package imports using the {packagename}/file notation.
Are there plans to add support for this?
Regards,
Seba
The text was updated successfully, but these errors were encountered: