fix cli call

This commit is contained in:
Philipp Kunz 2016-02-25 08:26:00 +01:00
parent 6045174edb
commit e429eb8ae0
15 changed files with 10 additions and 28 deletions

2
assets/cli.js Normal file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env node
var index = require("./index.js");

View File

@ -4,7 +4,6 @@ var plugins = {
gulp: require("gulp"),
g:{
typescript: require("gulp-typescript"),
header: require("gulp-header"),
typings:require("gulp-typings")
},
mergeStream: require("merge2"),
@ -25,7 +24,7 @@ plugins.gulp.task("typings",function(){
return stream;
});
plugins.gulp.task("indexTS",["typings"], function() {
plugins.gulp.task("TS",["typings"], function() {
var stream = plugins.gulp.src([
plugins.path.join(paths.packageBase,'ts/**/*.ts'),
"!" + plugins.path.join(paths.packageBase,'ts/typings/**/*.d.ts')
@ -34,12 +33,16 @@ plugins.gulp.task("indexTS",["typings"], function() {
target:"ES5",
module:"commonjs"
}))
.pipe(plugins.g.header('#!/usr/bin/env node\n\n'))
.pipe(plugins.gulp.dest(plugins.path.join(paths.packageBase, 'dist/')));
return stream;
});
plugins.gulp.task('default',['indexTS'], function() {
plugins.gulp.task("CLI",function(){
var stream = plugins.gulp.src(plugins.path.join(paths.packageBase,"assets/cli.js"))
.pipe(plugins.gulp.dest(plugins.path.join(paths.packageBase, 'dist/')))
});
plugins.gulp.task('default',['TS',"CLI"], function() {
plugins.beautylog.success('Typescript compiled');
});

3
dist/cli.js vendored
View File

@ -1,3 +1,2 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var index = require("./index.js");

2
dist/index.js vendored
View File

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

2
dist/npmts.cli.js vendored
View File

@ -1,3 +1 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />

View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");

View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");

2
dist/npmts.jsdoc.js vendored
View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");

View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var plugins = require("./npmts.plugins");
exports.run = function (configArg) {

2
dist/npmts.paths.js vendored
View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var plugins = require("./npmts.plugins");
var paths = {};

View File

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

View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var NpmtsConfigFile = require("./npmts.configfile");
var NpmtsOptions = require("./npmts.options");

2
dist/npmts.tests.js vendored
View File

@ -1,5 +1,3 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var plugins = require("./npmts.plugins");
var paths = require("./npmts.paths");

View File

@ -49,7 +49,6 @@
"typings": "^0.6.8"
},
"devDependencies": {
"gulp-header": "^1.7.1",
"gulp-typings": "^1.1.0"
}
}

View File

@ -1 +0,0 @@
/// <reference path="./typings/main.d.ts" />