Git Product home page Git Product logo

Comments (3)

NathanWalker avatar NathanWalker commented on May 15, 2024

@aaweb You're welcome, hope it's working out for you.

There's 2 things to keep in mind here.

  1. npm run start.ios actually copies contents of src directory into nativescript folder. Given this, when you make changes in src, livesync would not see them since livesync would only be watching the nativescript folder. We would need another watch task that would pick up changes in src, then copy the contents again to nativescript folder which would trigger livesync.
  2. I'm aware of some issues with livesync which is why I'm not using it in the npm run start.ios task.
    Once I hear it is solid, I will update the task here. If you have particular questions about tns livesync, you may want to post that question here (check out open issues around it at the moment):
    https://github.com/NativeScript/nativescript-cli/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+livesync

I'm hoping to find a solution that would allow livesync to work with NativeScript here so stay tuned but in meantime, npm run start.ios after making changes in src each time.

Let me know if you find any interesting workarounds to get livesync to work.

from angular-seed-advanced.

aaweb avatar aaweb commented on May 15, 2024

In another project I worked around it by adding a file in the before-watch folder which creates a symbolic link:

var path = require('path');
var shelljs = require('shelljs');

module.exports = function() {
    shelljs.ln('-sf', '../src/frameworks', 'app/frameworks');
}

Not sure what other implications that would have, but in your case removing spec files and such wouldn't work as done in 'npm prepare'.

Any example or advice on where and how to best add a watcher for that? That's my number one "annoyance" right now :) Thanks again for the great project. Love the ongoing progress!

from angular-seed-advanced.

aaweb avatar aaweb commented on May 15, 2024

Hm... I tried manually changing a component's html file under src/nativescript/app/components to try to see if I can "simulate" what a watch task should do. However, nothing is triggered if I change it there. It is triggered however when I change it in src/client/app/components.

Where would I need to hook into for that?

I'd really like to figure this out as iOS development like this is no joy :(

from angular-seed-advanced.

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.