Skip to content

Commit

Permalink
add QueryService, Container, ConnectionManager, Connection, Channel a…
Browse files Browse the repository at this point in the history
…nd specs
  • Loading branch information
ThWoywod committed Apr 2, 2018
0 parents commit 666e852
Show file tree
Hide file tree
Showing 17 changed files with 6,672 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Libs
node_modules

# IDE
.vscode

# Builds
dts
lib
*.tgz
78 changes: 78 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
var gulp = require("gulp"),
watch = require("gulp-watch"),
tslint = require("gulp-tslint"),
tsc = require("gulp-typescript");

//******************************************************************************
//* LINT
//******************************************************************************
gulp.task("lint", function() {
var config = {
formatter: "verbose",
emitError: process.env.CI ? true : false
};

return gulp
.src(["src/**/**.ts", "spec/**/**.spec.ts"])
.pipe(tslint(config))
.pipe(tslint.report());
});

//******************************************************************************
//* BUILD
//******************************************************************************
var tsLibProject = tsc.createProject("tsconfig.json", {
module: "commonjs",
typescript: require("typescript")
});

gulp.task("default", ["build-lib", "build-dts"]);

gulp.task("build-lib", function() {
return gulp
.src(["src/**/*.ts"])
.pipe(tsLibProject())
.on("error", function(err) {
process.exit(1);
})
.js.pipe(gulp.dest("lib/"));
});

var tsDtsProject = tsc.createProject("tsconfig.json", {
declaration: true,
noResolve: false,
typescript: require("typescript")
});

gulp.task("build-dts", function() {
return gulp
.src(["src/**/*.ts"])
.pipe(tsDtsProject())
.on("error", function(err) {
process.exit(1);
})
.dts.pipe(gulp.dest("dts"));
});

//******************************************************************************
//* WATCH
//******************************************************************************
gulp.task("watch", function () {
return watch("src/**/*.ts", function () {
gulp
.src(["src/**/*.ts"])
.pipe(tsLibProject())
.on("error", function (err) {
process.exit(1);
})
.js.pipe(gulp.dest("lib/"));

gulp
.src(["src/**/*.ts"])
.pipe(tsDtsProject())
.on("error", function (err) {
process.exit(1);
})
.dts.pipe(gulp.dest("dts"))
});
});
Loading

0 comments on commit 666e852

Please sign in to comment.