Title: Add an option for compile-on-save to trigger VS pre- and post-build events · Issue #2252 · microsoft/TypeScript · GitHub
Open Graph Title: Add an option for compile-on-save to trigger VS pre- and post-build events · Issue #2252 · microsoft/TypeScript
X Title: Add an option for compile-on-save to trigger VS pre- and post-build events · Issue #2252 · microsoft/TypeScript
Description: I have a TS project that's compiled to a single file, where I need to append some additional code to the resulting combined file. I added a VS post-build action to perform the processing every time I build the solution. It works fine whe...
Open Graph Description: I have a TS project that's compiled to a single file, where I need to append some additional code to the resulting combined file. I added a VS post-build action to perform the processing every time...
X Description: I have a TS project that's compiled to a single file, where I need to append some additional code to the resulting combined file. I added a VS post-build action to perform the processing every ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/2252
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add an option for compile-on-save to trigger VS pre- and post-build events","articleBody":"I have a TS project that's compiled to a single file, where I need to append some additional code to the resulting combined file. I added a VS post-build action to perform the processing every time I build the solution. It works fine when `Build -> Build Solution` (F6) or `Build -> Rebuild Solution` are used, but not following a compile-on-save, leading to the resulting .js file missing the expected additional code.\n\nMy current workaround is using a Grunt script that monitors the compiled .js file for changes and executes whenever it's modified. This might work fine for post-build actions in most cases (except perhaps in situations requiring tight VS synchronization with build start/completion) but doesn't support pre-build actions and generally isn't very elegant as it requires maintaining an additional background process.\n\nIt would be useful to have an option (which may or may not be enabled by default) to trigger the pre- and post-build events with this compilation method as well.\n\nThis (optional) behavior could be extended to other compiled-on-save languages such as LESS, SASS, Coffeescript etc. (though in these cases it's probably more of a Web Essentials suggestion).\n","author":{"url":"https://github.com/rotemdan","@type":"Person","name":"rotemdan"},"datePublished":"2015-03-07T13:05:58Z","url":"https://github.com/microsoft/TypeScript/issues/2252"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:17242644-19dc-77c6-e71e-e25be552df0b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8720:3AACE0:4E79C5:6C2681:6B047298 |
| html-safe-nonce | 6b9068645356c38c43144f5ca6f4de96e8a9b95fb8b11f02d85da0e46de32ab2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NzIwOjNBQUNFMDo0RTc5QzU6NkMyNjgxOjZCMDQ3Mjk4IiwidmlzaXRvcl9pZCI6IjQxNjM4NDA4MTIzNzcyMDc0NDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 487b2f2eeadd21430244b566b9a67d79dd38be0327f51edf0124d70293ef031f |
| hovercard-subject-tag | issue:60205539 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/2252/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b478824f3fabcca3c17c87f45634e4b97497bf7b3941d065654337aa7219e84d/microsoft/TypeScript/issues/2252 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b478824f3fabcca3c17c87f45634e4b97497bf7b3941d065654337aa7219e84d/microsoft/TypeScript/issues/2252 |
| og:image:alt | I have a TS project that's compiled to a single file, where I need to append some additional code to the resulting combined file. I added a VS post-build action to perform the processing every time... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rotemdan |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width