Questions tagged [tsify]

Browserify plugin for compiling TypeScript

tsify is a node.js Browserify plugin for compiling TypeScript. Here you can find the official GitHub and npm pages.

37 questions
9
votes
1 answer

Performance issues with Browserify + Watchify + Tsify + Gulp

I have a "medium" Typescript application (as in, not trivial, but not enterprise-level either, many thousands of lines) with dependencies on jQuery, React and SocketIO - among other smaller libraries. My current gulpfile is this: var gulp =…
user19302
6
votes
1 answer

Why doesn't this problemMatcher in VS code work?

Why doesnt my problemMatcher work? I'm pretty sure about the regex, but it doesn't report any problems, even there are some on stdout... // the matcher "problemMatcher": { "owner": "typescript", "fileLocation": ["relative",…
santa
  • 983
  • 9
  • 30
5
votes
1 answer

Bundle a typescript library to one .js file and one .d.ts

I'm developing a library to use in the webbrowser using TypeScript. I'm writing separate typescript files as modules using "system" as --module, for example this is the main file: /// ///
Javier Ros
  • 3,511
  • 2
  • 21
  • 41
4
votes
1 answer

How do you load typescript modules from node_modules using browserify?

When I run tsc, everything runs perfectly fine. However, I cannot understand how you are meant to import other typescript modules from node modules. This is the important part of my gulp file: gulp.task('compile-ts', ['clean'], function(){ var…
David
  • 15,652
  • 26
  • 115
  • 156
4
votes
1 answer

TSify ignores transforms during Browserify

In my gulp-based workflow, I am trying to apply a transform to all typescript files before tsify compiles it: gulp.task( 'deploy-typescript', function() { var modulePath = configuration.files.typescript.entry; var bundleStream =…
Hans
  • 2,448
  • 2
  • 24
  • 30
3
votes
1 answer

Missing TypeScript typings with browserify + babelify + tsify

I am trying to migrate an Angular JavaScript (ES5) project to TypeScript 2.0 step by step and must admit I'm very struggling. So first I changed the index.js to index.ts and used the recommended method of installing typings (npm install --save…
lenny
  • 2,978
  • 4
  • 23
  • 39
3
votes
2 answers

How to specify typings path to tsify?

I have my typescript sources in the path: src/game/ts tsconfig.json is in: src/game/ts/tsconfig.json and typings in: src/game/ts/typings I can run tsc fine with: tsc --p src/game/ts But I get undefined type errors (for types declared in…
pixelmike
  • 1,973
  • 1
  • 19
  • 31
2
votes
0 answers

How to use the require function and TypeScript modules with tsify and watchify?

I am using tsify with watchify and VS Code. The compilation is successful without any warning or error. I use this command: cd html/wp-content/themes; watchify custom-theme/assets/ts/main.ts -p [ tsify ] -o custom-theme/assets/js/bundle.js -v The…
silviubogan
  • 3,343
  • 3
  • 31
  • 57
2
votes
1 answer

Bundle typescript and protobuf.js with tsify

I used the google API to generate a lib.js from a lib.proto. In Typescript I have used it with declare var lib: any;. My problem is that browserify ignores the lib.js because it's only a declaration. Is there any way to add the lib.js at the right…
FlugRost
  • 45
  • 1
  • 6
2
votes
1 answer

How do I solve ParseError: 'import' and 'export' may appear only with 'sourceType: module' when importing UpgradeAdapter?

I am trying to upgrade an existing anguar.js app to angular 2, following https://angular.io/docs/ts/latest/guide/upgrade.html. The app is already written with Typescript, and we are using browserify and tsify to compile and bundle the app. After…
larlon
  • 557
  • 1
  • 6
  • 17
2
votes
1 answer

how to set up grunt + browserify + tsify + babelify?

I am struggling to set up grunt + browserify + tsify + babelify (with debug). The below gruntfile setting does compile typescript, but no babel transpling is happening. Can anybody let me know how to do this? (i might need to use gulp to do this??) …
kopemon
  • 23
  • 3
2
votes
5 answers

Static property inheritance not working as expected

I have something like this; TestBase.ts export class TestBase { static myValue: boolean; constructor() { TestBase.myValue = true; } } Test import {TestBase} from './TestBase' export class Test extends TestBase { …
Stafford Williams
  • 9,696
  • 8
  • 50
  • 101
1
vote
0 answers

Using TypeScript, Browserify, and SVG.js

First off: I am completely new to Node.js, so please bear over with me if this is a dumb question. I am trying to get browserify and tsify to work with TypeScript and the SVG.js library. As far as I understand, I should be able to Write TypeScript…
wstr
  • 910
  • 2
  • 13
  • 23
1
vote
1 answer

TSIFY module not found html file. how do fix?

I have a vue component that imports an HTML page. this is the error I get when running the gulp task. This transpiles fine with default typescript 2.5. But blows up when I run it through browserify and tsify. Error: Cannot find module…
VaultBoy14
  • 251
  • 1
  • 4
  • 13
1
vote
0 answers

Watchify + tsify + Visual Studio == stale code

We are running a Gulp task inside of Visual Studio (2015) to execute watchify. Works great some of the time, but sometimes watchify builds old code. Repro: Modify a .ts file in Visual Studio Save In the Task Runner Explorer, watch for watchify…
JMarsch
  • 21,484
  • 15
  • 77
  • 125
1
2 3