title: JavaScript project type for Visual Studio?
body: <p>I have a tasks that involves creating a JavaScript library that will then be used by multiple projects in a Visual Studio solution. Ideally I would like to find a project type that would, for my JavaScript code, behave as if it was a C# class library, i.e.:</p>
  
  <ul>
  <li>It would "compile" (minify, check by Closure, ...) the JavaScript code into some output **.js* file</li>
  <li>This output could be "referenced" by other projects, e.g. by an ASP.NET MVC project</li>
  <li>I could specify a "build order" of my projects (standard VS feature)</li>
  </ul>
  
  <p>Is this possible with VS 2010 / 11 or do I need to write some BAT / PowerShell files and script it myself?</p>
  
  <p>Similar but slightly different question: <a href="https://stackoverflow.com/questions/544967/visual-studio-project-template-for-javascript-vbscript">Visual Studio Project Template for JavaScript/VBScript?</a></p>