aurelia / framework

The Aurelia 1 framework entry point, bringing together all the required sub-modules of Aurelia.
MIT License
11.75k stars 625 forks source link

Nativescript integration #774

Open jasoncarreira opened 7 years ago

jasoncarreira commented 7 years ago

I'm submitting a feature request

Current behavior:

Nativescript has a Typescript / Angular2 integration to allow for building mobile apps with Angular2, but no integration with Aurelia. The Nativescript / Angular2 integration is discussed here: https://www.nativescript.org/nativescript-is-how-you-build-native-mobile-apps-with-angular

Expected/desired behavior:

Implement an equivalent integration with Nativescript for Aurelia (either Typescript or ES6)

There's currently no good way to build mobile apps with Aurelia as Cordova is often too slow to be useful. This would provide a good semi-native framework for building mobile apps using Aurelia.

arjendeblok commented 7 years ago

I really would like this too. I really do want to use Aurelia over Angular2. With Angular2 you have 2 very good choices for mobile: Ionic and NativeScript. Aurelia UX could be an alternative for Ionic if it is used with Cordova, but I think NativeScript is a better option.

I would like to help, but do not know where to start. The first issue is how to use the Aurelia templating syntax not for the DOM but use it in an XML syntax, so it can be used in NativeScript views. It would also be very nice if the same ViewModel could be used for a HTML view for the web and an XML view for NativeScript. So we could have a home.js, home.html and home.xml.

arjendeblok commented 7 years ago

Discussion on NativeScript site. https://github.com/NativeScript/NativeScript/issues/536

jasoncarreira commented 7 years ago

I would also be interested in helping on this, but also have no idea where to start and no familiarity with Aurelia internals

AshleyGrant commented 7 years ago

We have spoken to the NativeScript team about this from time to time, and the constant response we get from them is "Nobody is asking us to implement Aurelia support."

Basically, until the community badgers the team over at Telerik enought that they realize we have a great developer community, if a bit quiet, that would greatly appreciate them supporting Aurelia, it isn't likely to happen.

So @jasoncarreira, @arjendeblok push for this. Get out and ask other community members to push for it. Call Telerik at the numbers on the NativeScript home page. Tweet to @jbristowe (that's his GitHub name, he's @johnbristowe on Twitter), @toddanglin, @burkeholland and others at Telerk/Progress letting them know you want this and that you'll pay for NativeScript if they implement it.

We on the team are quite willing to work with Telerik/Progress to help them however necessary. But they need to be interested in implementing this.

jlooper commented 7 years ago

So the way to go about doing this has been modeled here by a community dev who decided to build a Vue plugin for NativeScript. We are making good progress - and I'd be happy to have you join an Aurelia channel on the NativeScript Community Slack to get a port going! Here's the repo: https://github.com/rigor789/nativescript-vue

AshleyGrant commented 7 years ago

Thanks @jlooper for the info. @jasoncarreira @arjendeblok have a look!

andrewransom commented 7 years ago

I'll throw in a +1 for this!

Lichtjaeger commented 7 years ago

You can also upvote for this implementation on the NativeScript page.

eriklieben commented 6 years ago

This is probably related to this thread:

https://discourse.aurelia.io/t/aurelia-2018-roadmap/589/10 https://github.com/bigopon/aurelia-nativescript

weoreference commented 4 years ago

I am wondering if anyone has made progress with this? Thank you

bigopon commented 4 years ago

I've made good progress on v2, for v6+. You can have a try with the example here https://github.com/aurelia/aurelia/tree/nativescript/examples/au-ns in v2 repo. Though at the moment, I'm preparing for alpha and have put it on hold a bit.

weoreference commented 4 years ago

@bigopon That is awesome, thank you, you are always so nice :)

I will try your demo

PrasanKumar93 commented 3 years ago

@bigopon , Does Aurelia v2 supports native script officially ? Can you share any integration docs which can be helpful !