Compare commits

...

2 Commits

Author SHA1 Message Date
2730ca4299 3.0.3 2016-02-18 22:43:50 +01:00
07aae64965 fix sourcemaps 2016-02-18 22:43:40 +01:00
5 changed files with 2 additions and 7 deletions

View File

@ -179,7 +179,6 @@ var NpmtsCompile;
//tsStream.dts.pipe(plugins.gulp.dest(outputDir)), //tsStream.dts.pipe(plugins.gulp.dest(outputDir)),
tsStream.js tsStream.js
.pipe(plugins.g.sourcemaps.write()) // Now the sourcemaps are added to the .js file .pipe(plugins.g.sourcemaps.write()) // Now the sourcemaps are added to the .js file
.pipe(plugins.g.header('#!/usr/bin/env node\n\n'))
.pipe(plugins.gulp.dest(outputDir)) .pipe(plugins.gulp.dest(outputDir))
]); ]);
moduleStream.add(stream); moduleStream.add(stream);

View File

@ -1,6 +1,6 @@
{ {
"name": "npmts", "name": "npmts",
"version": "3.0.2", "version": "3.0.3",
"description": "write npm modules with TypeScript", "description": "write npm modules with TypeScript",
"main": "index.js", "main": "index.js",
"typings": "./index.d.ts", "typings": "./index.d.ts",

View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" /> /// <reference path="./typings/main.d.ts" />
var testplugin = { var testplugin = {
logSomething: function () { logSomething: function () {

View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="../ts/typings/main.d.ts" /> /// <reference path="../ts/typings/main.d.ts" />
console.log("**** starting test ****"); console.log("**** starting test ****");
var testplugin = require("../dist/index.js"); var testplugin = require("../dist/index.js");

View File

@ -79,7 +79,7 @@ module NpmtsCompile {
//tsStream.dts.pipe(plugins.gulp.dest(outputDir)), //tsStream.dts.pipe(plugins.gulp.dest(outputDir)),
tsStream.js tsStream.js
.pipe(plugins.g.sourcemaps.write()) // Now the sourcemaps are added to the .js file .pipe(plugins.g.sourcemaps.write()) // Now the sourcemaps are added to the .js file
.pipe(plugins.g.header('#!/usr/bin/env node\n\n')) //.pipe(plugins.g.header('#!/usr/bin/env node\n\n'))
.pipe(plugins.gulp.dest(outputDir)) .pipe(plugins.gulp.dest(outputDir))
]); ]);
moduleStream.add(stream); moduleStream.add(stream);