tag:blogger.com,1999:blog-1528805174514452404.post3900178987384500503..comments2024-03-27T17:10:25.297-04:00Comments on Allen Conway: Git Ignore to Untrack TypeScript Auto Generated FilesAllen Conwayhttp://www.blogger.com/profile/07010967958393033081noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-1528805174514452404.post-24632239866156761522016-11-15T17:59:27.675-05:002016-11-15T17:59:27.675-05:00@Joel Dale - Yes in this case you would need the s...@Joel Dale - Yes in this case you would need the server (msbuild) to transpile the TypeScript files into .js files so they would be available for your app. This should be done by default using tsc.exe installed on the server reading the project's configured TS version in the .csproj file, or the highest version on the build server if not specified. See: http://www.typescriptlang.org/docs/handbook/compiler-options-in-msbuild.htmlAllen Conwayhttps://www.blogger.com/profile/07010967958393033081noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-21084965725405684132016-11-09T18:56:59.620-05:002016-11-09T18:56:59.620-05:00How do you handle doing a release if the generated...How do you handle doing a release if the generated .js code is not included? We are making a web project and we can simply point to a git repository and say "this is the released stuff".<br /><br />The problem is we'd need the .js files and yet it makes sense not to include them in the source but have the release be an artifact.Joel Dalehttps://www.blogger.com/profile/06954156866031509520noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-84141095827912943572016-03-17T20:51:13.601-04:002016-03-17T20:51:13.601-04:00If you want to ignore every .js and .js.map file i...If you want to ignore every .js and .js.map file in the /app folder AND any folder beneath that, you can do this:<br /><br />BowlingSPAWeb/BowlingSPA/app/**/*.js<br />BowlingSPAWeb/BowlingSPA/app/**/*.js.map<br /><br />If you need to exclude a specific file, you can add it to the .gitignore file with a "!" before it:<br /><br />!BowlingSPAWeb/BowlingSPA/app/controllers/bowlers.js<br /><br />For more info, you can check out this excellent documentation:<br />https://git-scm.com/docs/gitignoreErikhttps://www.blogger.com/profile/01843269479278440803noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-22378139237153597982016-02-24T02:11:02.268-05:002016-02-24T02:11:02.268-05:00Thank you for sharing a useful unique informative ...Thank you for sharing a useful unique informative blog with us. This is very useful in attaining the untrack typescript of auto generate files.Jeniliahttps://www.blogger.com/profile/07189645834055317557noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-68232920187169922222016-02-23T05:50:42.683-05:002016-02-23T05:50:42.683-05:00Now only i am seeing this concept it is nice.Now only i am seeing this concept it is nice.jayashreehttps://www.blogger.com/profile/01361549618140281492noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-37604317695835600622016-02-23T05:20:36.304-05:002016-02-23T05:20:36.304-05:00Sounds great, you shared very nice post, i read yo...Sounds great, you shared very nice post, i read you mostly posts, one is My new computer with 7.0 windows score is superb postWeb Designer in Delhihttp://www.premieritzone.comnoreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-47986774462713080252016-02-20T07:54:15.980-05:002016-02-20T07:54:15.980-05:00It seems with the java script and the files to wis...It seems with the java script and the files to wish to ignore already present in the index. by tracking the files<br />git m -- cached Typescript.Content/Script?*.js<br />git m -- cachednTypescriptTest.Content/Scripts/*.js.mapHarithahttps://www.blogger.com/profile/01254901432275147004noreply@blogger.comtag:blogger.com,1999:blog-1528805174514452404.post-28503605316309605792016-02-08T14:43:48.798-05:002016-02-08T14:43:48.798-05:00We are using TypeScript in some part of a big proj...We are using TypeScript in some part of a big project and we cannot ignore all of the js files.<br />Is there any way to change the name of generated js file, (for example to xxx.generated.js) so that we can ignore all *.generated.js files Anonymoushttps://www.blogger.com/profile/15511058501958091913noreply@blogger.com