now installing typings before compiling
This commit is contained in:
parent
44aa92c83c
commit
08dcdb2c9f
@ -4,7 +4,8 @@ var plugins = {
|
|||||||
gulp: require("gulp"),
|
gulp: require("gulp"),
|
||||||
g:{
|
g:{
|
||||||
typescript: require("gulp-typescript"),
|
typescript: require("gulp-typescript"),
|
||||||
header: require("gulp-header")
|
header: require("gulp-header"),
|
||||||
|
typings:require("gulp-typings")
|
||||||
},
|
},
|
||||||
mergeStream: require("merge2"),
|
mergeStream: require("merge2"),
|
||||||
path: require("path")
|
path: require("path")
|
||||||
@ -18,7 +19,13 @@ paths = {
|
|||||||
|
|
||||||
plugins.beautylog.log('now compiling NPMTS');
|
plugins.beautylog.log('now compiling NPMTS');
|
||||||
|
|
||||||
plugins.gulp.task('indexTS', function() {
|
plugins.gulp.task("typings",function(){
|
||||||
|
var stream = plugins.gulp.src(plugins.path.join(paths.packageBase,"ts/typings.json"))
|
||||||
|
.pipe(plugins.g.typings());
|
||||||
|
return stream;
|
||||||
|
});
|
||||||
|
|
||||||
|
plugins.gulp.task("indexTS",["typings"], function() {
|
||||||
var stream = plugins.gulp.src([
|
var stream = plugins.gulp.src([
|
||||||
plugins.path.join(paths.packageBase,'ts/**/*.ts'),
|
plugins.path.join(paths.packageBase,'ts/**/*.ts'),
|
||||||
"!" + plugins.path.join(paths.packageBase,'ts/typings/**/*.d.ts')
|
"!" + plugins.path.join(paths.packageBase,'ts/typings/**/*.d.ts')
|
||||||
|
1
dist/npmts.jsdoc.js
vendored
1
dist/npmts.jsdoc.js
vendored
@ -44,6 +44,7 @@ var publishDocs = function (configArg) {
|
|||||||
plugins.beautylog.error('Error: Git failed');
|
plugins.beautylog.error('Error: Git failed');
|
||||||
plugins.shelljs.exit(1);
|
plugins.shelljs.exit(1);
|
||||||
}
|
}
|
||||||
|
plugins.beautylog.success("Docs have been deployed to GitHub");
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
"typings": "^0.6.8"
|
"typings": "^0.6.8"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp-header": "^1.7.1"
|
"gulp-header": "^1.7.1",
|
||||||
|
"gulp-typings": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,7 @@ var publishDocs = function(configArg){
|
|||||||
plugins.beautylog.error('Error: Git failed');
|
plugins.beautylog.error('Error: Git failed');
|
||||||
plugins.shelljs.exit(1);
|
plugins.shelljs.exit(1);
|
||||||
}
|
}
|
||||||
|
plugins.beautylog.success("Docs have been deployed to GitHub");
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
} else {
|
} else {
|
||||||
done.resolve(configArg);
|
done.resolve(configArg);
|
||||||
|
Loading…
Reference in New Issue
Block a user