zoltu / buildtools.typescript.fromreferences Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Build step For Multi-TypeScript Project Solutions.
License: Creative Commons Zero v1.0 Universal
Visual Studio Build step For Multi-TypeScript Project Solutions.
License: Creative Commons Zero v1.0 Universal
The Visual Studio TypeScript compiler can optionally compile TypeScript files (.d.ts, .js.map, .js) to a directory other than the originating typescript file. When the user sets that up, this build task should look for the files there.
For first pass, assume that TypeScriptOutDir
is the same for all configurations. Adding configuration detection/support is likely to prove difficult.
Make sure this works with .ts files that are in a folder rather than in the root of the project.
Are all of the generated files truly necessary? Is it acceptable to continue the build even if say the .js.map file is missing? It seems like for some files there is no reason to break the build on them being missing.
If I use DefinitelyTyped librairies that only bring *.d.ts files in my project, the task fails since it looks for *.d.d.ts files.
*.d.ts files should be skipped by the task.
As an exemple, add the Nuget package jquery.TypeScript.DefinitelyTyped to a project and try referencing this project from an other and use the Zolto.BuildTools.TypeScript.FromReferences package on this project. It fails saying that the jquery.d.d.ts file is not found.
Currently, the build task will always copy to $(ProjectDir)libraries
. This may not match the users desired build structure.
The task should provide an easy way for users to customize the target directory of the copied files.
When using MSBuilds to deploy projects the build fails because it cannot find the required typings file.
packages\Zoltu.BuildTools.TypeScript.FromReferencesTask.2.0.5.0\build\Zoltu.BuildTools.TypeScript.FromReferencesTask.targets (9, 3)
Could not find file 'D:\VNextAgent\_work\4\s\Logistics Portal\Common Projects\Jdn.LogisticsPortal.Utilities\Scripts\utils.d.ts'.
Process 'msbuild.exe' exited with code '1'.
This is because the file is not added to source control (TFS in this case). However when adding the file to source control, visual studio fails to compile because there are duplicate declarations (once in your .ts and once in your .d.ts files).
I setup the project and was succesfully able to generate .ts.source and update the .map respectively.
The problem is that import tsmodels = require("models/commonModels"); doesnt work. It doesnt recognize models/commonModels.ts.source. When i create a models/CommonModels.ts manually, it compiles.
Note that I am using TypeScript 1.4
When the project is cleaned, the copied libraries should be removed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.