question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to ignore files from build and livesync

See original GitHub issue

Users should be able to setup the CLI to ignore particular files, usually ts, .d.ts, or other source files in a language that compiles to JS / CSS.

We can use the same rules, default rules and implementation code from AppBuilder CLI.

Things to consider:

  • We can move the rules into package.json, introduce a dedicated .tnsignore file, or use .abignore file - the latest option brings 100% interoperability with Telerik Platform
    • Implement interoperability with AppBuilder- i.e. appbuilder init from existing {N} project should consume existing {N} specific ignore rules.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:3
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
enchevcommented, May 25, 2016

In my opinion .tnsignore is better!

1reaction
ghostcommented, Jun 29, 2017

@pkoleva Not that I can think of right now. Sorry for the late response.

I am interested in a way to add a filter on which kinds of files to watch. Usually this can be expressed as a RegExp or by some simpler means (filename extension, but this isn’t enough in my case).

Emacs, when auto-saving, creates files with the format ‘.#<original filename>’, and sometimes ‘#<original filename>#’ also shows up, but I think that’s a different feature. And then we have some versions which save the file with a tilde in the end (<original filename>~). So the easiest way would be to allow a list of filters. For example --watch-ignore [“.#", "##”], where the strings will differ depending on the approach you take I suppose, RegExp or a simpler way of matching.

This was still a problem the last time I ran ‘tns run android’ (which I think is livesync, correct?) in my project. May have been fixed since this was before the big release. But is there a way to add the filter(s) manually?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to exclude files from Visual Studio compile?
Right click the file, select 'Exclude From Project' · Right click the file, select 'Properties' --> select 'Configuration Properties' --> select ...
Read more >
How do I exclude specific users from syncing during liveSync ...
You can specify users to sync during liveSync by defining the accountSynchronizationFilter in your LDAP provisioner config file (for example ...
Read more >
Ubuntu Manpage: clsync - live sync tool, written in GNU C
This allows the preservation of enough FS privileges to watch a file tree and execute the sync-handler with required uid and gid [see...
Read more >
Live Update Reference - Tilt
To put it another way: there's no way for those files to get into the container in the first place, because they would...
Read more >
Working with LiveSync and the PiXYZ Plugin - Unity Learn
In this tutorial you will learn how to work with LiveSync and the PiXYZ ... Unity's ability to detect changes in asset files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found