add-typescript-file-to-project
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

node-add-typescript-file-to-project

Source code for node module: add-typescript-file-to-project

This node module will add a reference to a given TypeScript file to your Visual Studio project file. (.csproj / .vbproj)

The project file will only be changed if the file is not already referenced, if changed Visual Studio will prompt you to reload your project file.

To use this node module at a reference to your project package.json dependencies.

{ "dependencies": { "add-typescript-file-to-project": "1.0.0" } }

The script requires one parameter, the virtual path to the TypeScript file you want to add.

So, to use the module in for instance a gulp task:

gulp.task('default', function (cb) { var addTypeScript = require('add-typescript-file-to-project');

addTypeScript.execute('/app/resources/some-file.ts');

});

Voilá, a reference to '/app/resources/some-file.ts' is added to your Visual Studio project.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1,196
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1,196
  • 1.0.0
    1

Package Sidebar

Install

npm i add-typescript-file-to-project

Weekly Downloads

1,197

Version

1.0.1

License

ISC

Last publish

Collaborators

  • mvdcorput