I currently have a CI Setup in TFS 2013 which does the following
- Pulls code down from Git on every commit to a branch
- Builds the Solution
- Runs N-Unit Tests Against the solution
- Runs Jasmine Front-end Tests against the javascript
- Deploys on success via WebDeploy to chosen server.
I have now managed to install Grunt and NodeJS on the server to do some manipulation of the Javascript between steps 5-6. Does anyone have any advice on how this might be done?
I've tried post-tests scripts to minify the javascript successfully on both the src and bin/_PublishedWebsites directory but this does not seem to persist over to the deployment server. And infact, the _PublishedWebsites route puts the build folder in an undeletable state due to maxmimum character limits on Windows files (argh).