Skip to content

Ability to ignore files from build and livesync #887

Closed

Description

@teobugslayer

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.

Activity

  1. modified the milestone: 1.4.0 on Sep 8, 2015
  2. dtopuzov commented on Nov 11, 2015

    @dtopuzov
    Contributor

    This is must have after we enabled transpilers.

  3. added this to the milestone on Nov 11, 2015
  4. rosen-vladimirov commented on Jan 26, 2016

    @rosen-vladimirov
    Contributor

    Let's use .abignore - this way the project will work like a charm inside AppBuilder :)

  5. modified the milestones: 1.7.0, 1.6.0 on Feb 3, 2016
  6. modified the milestones: 2.0, 1.7.0 on Feb 19, 2016
  7. removed this from the 2.0 milestone on Mar 31, 2016
  8. enchev commented on May 25, 2016

    @enchev
    Contributor

    In my opinion .tnsignore is better!

  9. changed the title [-]Ability to ignore files from build[/-] [+]Ability to ignore files from build and livesync[/+] on Jun 2, 2016
  10. enchev commented on Aug 1, 2016

    @enchev
    Contributor

    I'm closing this one since we need TypeScript files for debugging purposes (these files can be excluded with --release). Additionally every transpiler CLI hook can handle the logic per case internally.

  11. pkoleva commented on Jun 22, 2017

    @pkoleva
    Contributor

    Hi @casp-simberg,

    Indeed, you are right. We had an issue with the temporary files some IDEs create and we've fixed it, so now these files are not livesynced anymore. Do you think there is some other case you'd need to exclude files from livesyncing?

  12. dtopuzov commented on Aug 29, 2017

    @dtopuzov
    Contributor

    Another case when ignoring files will be useful:

    tns create TestApp --ng
    tns build android --path TestApp --release <and all the options hare>
    

    Result will be ~1200 .d.ts files at TestApp/platforms/android/src/main/assets/app/tns_modules

  13. added this to the 4.0.0 milestone on Jan 12, 2018
  14. removed this from the 4.0.0 milestone on Apr 5, 2018
  15. removed their assignment
    on Aug 4, 2018
  16. rosen-vladimirov commented on Jan 14, 2020

    @rosen-vladimirov
    Contributor

    As we are now using webpack to build the application, I think this issue can be closed. Webpack includes only files required and used in the application, so we no longer have problem with filtering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions