| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
This should probably have a name that ties it more close to 'fileNames'. i.e. 'excludedFileNames'. That way we know that this is supposed to complement that tsconfig property. |
Sorry, something went wrong.
|
The other property is called files, not fileNames. Since you can exclude both files and directories it would have to be excludedFilesAndDirectories which I think is over the top. I like the simple exclude. |
Sorry, something went wrong.
excludes perhaps? |
Sorry, something went wrong.
|
I like excludes as well. If you decide to change, please update the variable and parameter name |
Sorry, something went wrong.
|
Meh. Seems to completely ignore the community feedback about globs. |
Sorry, something went wrong.
Adding globbing support for matching might not be that hard if we can just copy in this battle tested code : https://github.com/isaacs/minimatch/blob/master/minimatch.js It is MIT https://github.com/isaacs/minimatch/blob/master/LICENSE |
Sorry, something went wrong.
|
I should have added more specifics. We keep all feature related code in the same directory. Unit tests are named *.spec.js Doing a build and excluding tests (or otherwise) doesn't work for us when files must be excluded by name and not by pattern. |
Sorry, something went wrong.
|
👍 |
Sorry, something went wrong.
|
Anders Hejlsberg (@ahejlsberg) We discussed this briefly, but I have an alternative approach that supports "glob"-style pattern matching with recursive directories in this pull request: #3232. |
Sorry, something went wrong.
|
I suspect tsconfig.json is destined for much broader use in the future. Using the simple key exclude could become ambiguous quickly. Consider a more specific key name. |
Sorry, something went wrong.
|
Pluralization ("excludes") would be better, but I'd too prefer a more specific name. |
Sorry, something went wrong.
Conflicts: src/compiler/sys.ts
Support "exclude" property in tsconfig.json
|
Does language service take exclude option into consideration? I happen to have the TS repo under node_modules/typescript and it takes a long time to autocomplete things. I'm on VSCode 0.3 on a Mac. And I'm using the current master branch. |
Sorry, something went wrong.
|
Tingan Ho (@tinganho) this has been checked in recently. The Language Service support should be in 1.6 by the time it ships. |
Sorry, something went wrong.
|
Ron Buckton (@rbuckton) I'd like to add support for this and completely remove atom-typescript's custom filesGlob support. Can you think of any use case where a glob is still needed if exclude is supported? Don't want to do a breaking change if I'll need to reimplement it 🌹 |
Sorry, something went wrong.
Quick use case: user needs to include source from only a few folders. So ignore my last query 😉 |
Sorry, something went wrong.
|
I use fileGlobs to order my ts files. "filesGlob": [
"./app/**/*.module.ts",
"./app/**/*.ts",
"!./node_modules/**/*.ts"
],
|
Sorry, something went wrong.
|
Miguel Couto (@Mig1st4ck) your filesGlob reference is from Atom correct? This is not (yet) a native tsconfig feature right? |
Sorry, something went wrong.
|
Maximilian Alexander (@mbalex99) yes. It is not native |
Sorry, something went wrong.
|
is this available in 1.5.3? Adding an exclude option to my tsconfig.json seems to have no effect when I run tsc |
Sorry, something went wrong.
|
I guess not as it works as expected with a nightly (1.6) build |
Sorry, something went wrong.
|
It would be great if the exclude property supported globs. I'm sure that's been said somewhere, but I'm trying to do something similar to Miguel Couto (@Mig1st4ck) and not having luck excluding files with the filesGlob property and the ! property (under the assumption that filesGlob handles the ! glob operator and excludes those files). EDIT: on second thought, maybe my issue is only exclusive to TypeStrong/atom-typescript#558... apologies for noise... |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Implements #3043. A tsconfig.json file that doesn't specify a files property (and therefore implicitly references all *.ts files in all subdirectories) can now contain an exclude property that specifies a list of files and/or directories to exclude from the compilation. The exclude property must be an array of strings that each specify a file or folder name relative to the location of the tsconfig.json file. For example:
The exclude list does not support wilcards. It must simply be a list of files and/or directories.