fix cli call
This commit is contained in:
parent
6045174edb
commit
e429eb8ae0
2
assets/cli.js
Normal file
2
assets/cli.js
Normal file
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
var index = require("./index.js");
|
@ -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
3
dist/cli.js
vendored
@ -1,3 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var index = require("./index.js");
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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
2
dist/npmts.cli.js
vendored
@ -1,3 +1 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
|
2
dist/npmts.compile.js
vendored
2
dist/npmts.compile.js
vendored
@ -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.configfile.js
vendored
2
dist/npmts.configfile.js
vendored
@ -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
2
dist/npmts.jsdoc.js
vendored
@ -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.options.js
vendored
2
dist/npmts.options.js
vendored
@ -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
2
dist/npmts.paths.js
vendored
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = {};
|
||||
|
2
dist/npmts.plugins.js
vendored
2
dist/npmts.plugins.js
vendored
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var plugins = {
|
||||
beautylog: require("beautylog"),
|
||||
|
2
dist/npmts.promisechain.js
vendored
2
dist/npmts.promisechain.js
vendored
@ -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
2
dist/npmts.tests.js
vendored
@ -1,5 +1,3 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var plugins = require("./npmts.plugins");
|
||||
var paths = require("./npmts.paths");
|
||||
|
@ -49,7 +49,6 @@
|
||||
"typings": "^0.6.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-header": "^1.7.1",
|
||||
"gulp-typings": "^1.1.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user