git - How to prevent editing of generated Javascript files in a TypeScript project? -


is possible in visual studio 2012 project enforce rule prevents developers trying directly edit (by accident/old habit) javascript files generated typescript files?

i have project lot of typescript files have in turn generated lot of javascript files have included in project. however, find myself selecting javascript files out of habit rather selecting typescript version of file editing. i'd prevent this. because these typescript/javascript files linked in elsewhere, can't seem nest them.

the project windows store app winjs. has 3 different windows store projects in , set of shared solution folders include bulk of typescript/javascript files linked projects using syntax below in project files:

<content include="..\shared\**\*.*">   <link>%(recursivedir)%(filename)%(extension)</link>   <copytooutputdirectory>preservenewest</copytooutputdirectory> </content> 

this allows me include files in shared directory , sub-directories automatically linked files. it's handy sharing linked files, mean can nest individual files because recursive file linking broken.

my source control git. suppose there might option prevent editing .js files in git? looking suggestions.

so suppose there might option prevent editing .js files in git?

we have .js files excluded repo using .gitignore. these js files built again part of build / deploy.

this similar manner wouldn't include *.exe / *.dll files in git repo.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -