Comments (3)
@aaweb You're welcome, hope it's working out for you.
There's 2 things to keep in mind here.
npm run start.ios
actually copies contents ofsrc
directory intonativescript
folder. Given this, when you make changes insrc
,livesync
would not see them sincelivesync
would only be watching thenativescript
folder. We would need anotherwatch
task that would pick up changes insrc
, then copy the contents again tonativescript
folder which would triggerlivesync
.- I'm aware of some issues with
livesync
which is why I'm not using it in thenpm run start.ios
task.
Once I hear it is solid, I will update the task here. If you have particular questions abouttns 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.
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.
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)
- Angular Seed as the engine for an app builder (WYSIWYG app creator) HOT 2
- Upgrade to @ngrx v4 HOT 1
- Recommendations on multi-platform dev HOT 8
- deploying to heroku HOT 1
- Integrate material2 design into angular-seed-advanced HOT 7
- refactor: rename shared > modules [ update README ]
- Angular 5.1.x update missing @angular/service-worker/build/gulp HOT 4
- @angular/cli Oriented Electron Seed HOT 1
- Devdependencies not updated
- [android, device] Application entry point file not found. HOT 11
- css precompile not work while run android HOT 3
- Is there a simple example that mimics communication between sibling components?
- "@angular/compiler-cli/index"' has no exported member 'CodeGenerator' HOT 1
- Bundling adds and than removes files.
- Error: com.tns.NativeScriptException: Failed to find module: "./app/modules/core/index", relative to: app/ HOT 1
- use native UI
- The dev/prod build of angluar seed app is throwing Uncaught SyntaxError: Unexpected token < exception HOT 3
- JS error HOT 1
- NativeScript `tns preview`
- Unable to run on iOS emulator using `npm run start.ios` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-seed-advanced.