Giter Site home page Giter Site logo

Comments (9)

chrisvfritz avatar chrisvfritz commented on May 23, 2024

Which internals do you need access to?

from nativescript-vue.

rigor789 avatar rigor789 commented on May 23, 2024

For example in https://github.com/rigor789/nativescript-vue/blob/master/nativescript-vue/platform/nativescript/runtime/patch.js I'm importing createPatchFunction from core. Or https://github.com/rigor789/nativescript-vue/blob/master/nativescript-vue/platform/nativescript/compiler.js exports directly from vue core. These things should be left unexported though. I think, it is very rare that someone would actually need to use these.

Only issue with this is that it requires me to set up a roll-up config that sets up the same aliases as vue, so when bundling I don't get errors of unknown modules due to aliases.

from nativescript-vue.

chrisvfritz avatar chrisvfritz commented on May 23, 2024

Understood. I agree and also don't see a better alternative, though granted, I have a very limited understanding of NativeScript.

from nativescript-vue.

jlooper avatar jlooper commented on May 23, 2024

I'm more familiar with how we do things in Angular + NativeScript, which is to use elements of Angular/core with NativeScript's bridge to Angular, as set up in package.json like this:

"dependencies": {
    "@angular/common": "4.1.1",
    "@angular/compiler": "4.1.1",
    "@angular/core": "4.1.1",
    "@angular/forms": "4.1.1",
    "@angular/http": "4.1.1",
    "@angular/platform-browser": "4.1.1",
    "@angular/platform-browser-dynamic": "4.1.1",
    "@angular/router": "4.1.1",
    "nativescript-angular": "3.0.0",
    "nativescript-ngx-fonticon": "~2.2.0",
    "reflect-metadata": "~0.1.10",
    "rxjs": "~5.3.1",
    "tns-core-modules": "3.0.0",
    "zone.js": "~0.8.10"
  },

--can we follow a similar strategy with Vue? @chrisvfritz ?

from nativescript-vue.

rigor789 avatar rigor789 commented on May 23, 2024

Unfortunately, vue doesn't utilize sub modules like angular does.

On one hand it really does make it harder to integrate, but on the other hand from a end user perspective I'd much rather have one dependency, than multiple that I have to keep track of.

from nativescript-vue.

chrisvfritz avatar chrisvfritz commented on May 23, 2024

Anything that ties into Vue internals and we expose as an independent package will be here. That includes a template compiler and server renderer.

The vue-loader package is a great place to look for an example of consuming the template compiler, parsing single-file components, etc.

from nativescript-vue.

rigor789 avatar rigor789 commented on May 23, 2024

One of the possible solutions to not having to bundle Vue is if there was an official package for creating custom renderers. I opened an thread in the vue repository to get the conversation going: vuejs/vue#7005

from nativescript-vue.

rigor789 avatar rigor789 commented on May 23, 2024

Closing because at this point we are not able to do this, will re-visit once Vue is broken up into smaller pieces according to plans.

from nativescript-vue.

nativescript-vue-bot avatar nativescript-vue-bot commented on May 23, 2024

We are locking this issue because it has been closed for more than 14 days.

If the issue comes up again please open a new issue with additional details.

from nativescript-vue.

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.