runisland / meteor-ionic4

Meteor Atmosphere package that automatically imports Ionic4 Web Components into your Client templates
MIT License
14 stars 6 forks source link

Howto - Meteor 1.6.1.1 + Angular 6 + Ionic4 #1

Closed atao60 closed 6 years ago

atao60 commented 6 years ago

As I don't know where else to ask, I do it here.

I tried to merge abritopach/angular-ionic-master-detail with Meteor 1.6.1.1 using your package. I failed, see Meteor 1.6 + Angular 6 + ionic4.

I think I missed something obvious but I have no clue what it can be.

Any help would be welcome on how to set up a simple Meteor 1.6.1.1 + Ionic4 app, if possible with Angular 6.

ghybs commented 6 years ago

Hi,

Sorry I have not been using Meteor + Angular since a while now, but you can find documentation on https://angular-meteor.com/

From what I remember, the idea is either to:

If you want to use the 1st option (as you seem to have done), you should proceed incrementally, adding packages gradually to make sure you properly use and configure them, instead of trying to reproduce a full project at once, when it was not designed to be integrated with Meteor.

Otherwise you might have more luck using the 2nd option, which would probably be easier to integrate into a full Angular / Ionic project.

That being said, you can use Ionic4 without Angular, if you are not bound to Angular. You can use Blaze, Vue or React. Simply use Ionic's custom <ion-**> tags in your templates, this runisland:ionic4 package, and these custom tags will be automatically replaced by Ionic4 in your browser.

Good luck!

atao60 commented 6 years ago

Thank you for your quick answer.

Would you be interested in two enhancements:

ghybs commented 6 years ago

That sounds interesting, please could you provide more details? What usage would those propositions cover?

atao60 commented 6 years ago

About local override. I'm trying to use your package to import \@ ionic/angular as an atmosphere package in a Meteor project (when I import it as npm package, Meteor is no more able to get any npm package at runtime). To do it I used the instructions given by Overriding published packages with a local version. But it didn't work as in package.js, the path './dist' is not right in such a context.

About Windows. We're two developpers, me working under Linux :-D, but the other one under Windows. We had to change the npm scripts for him to be able to work on the Meteor project with the local copy of meteor-ionic4.

ghybs commented 6 years ago

I am not sure I fully understand your explanation (it sounds to me you are trying to setup your project with an inappropriate tool, but I may be wrong).

Feel free to submit some PR, I will happily review them!

atao60 commented 6 years ago

The key words here are: I'm trying ;-). It is very likely that you are right. But it was a good opportunity to learn more about Atmosphere packages.

I just push two PRs.