update npmts
This commit is contained in:
parent
e5cbefd195
commit
29534a3c6d
@ -33,6 +33,6 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "3.9.1",
|
"gulp": "3.9.1",
|
||||||
"gulp-function": "1.0.2",
|
"gulp-function": "1.0.2",
|
||||||
"npmts": "^2.1.10"
|
"npmts": "^2.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
7
test/test.d.ts
vendored
Normal file
7
test/test.d.ts
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/// <reference path="ts/typings/main.d.ts" />
|
||||||
|
declare var plugins: {
|
||||||
|
beautylog: any;
|
||||||
|
gulp: any;
|
||||||
|
gulpBrowser: any;
|
||||||
|
gulpFunction: any;
|
||||||
|
};
|
12
test/test.js
12
test/test.js
@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
/// <reference path="./typings/main.d.ts" />
|
/// <reference path="./typings/main.d.ts" />
|
||||||
var plugins = {
|
var plugins = {
|
||||||
beautylog: require("beautylog"),
|
beautylog: require("beautylog"),
|
||||||
@ -8,8 +10,7 @@ var plugins = {
|
|||||||
describe("gulpBrowser", function () {
|
describe("gulpBrowser", function () {
|
||||||
describe(".browserify", function () {
|
describe(".browserify", function () {
|
||||||
it("should run through smoothly", function (done) {
|
it("should run through smoothly", function (done) {
|
||||||
this.timeout(50000);
|
this.timeout(20000);
|
||||||
plugins.beautylog.info("Note: This takes longer then usual due to code coverage");
|
|
||||||
plugins.gulp.task('gulpBrowserNormal', function (cb) {
|
plugins.gulp.task('gulpBrowserNormal', function (cb) {
|
||||||
var stream = plugins.gulp.src('./test/browserifyGulpTest.js')
|
var stream = plugins.gulp.src('./test/browserifyGulpTest.js')
|
||||||
.pipe(plugins.gulpBrowser.browserify())
|
.pipe(plugins.gulpBrowser.browserify())
|
||||||
@ -21,10 +22,3 @@ describe("gulpBrowser", function () {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
plugins.gulp.task('gulpBrowserTestError', function (cb) {
|
|
||||||
plugins.beautylog.info("Expecting an error:");
|
|
||||||
var stream = plugins.gulp.src('./test/browserifyGulpTestError.js')
|
|
||||||
.pipe(plugins.gulpBrowser.browserify())
|
|
||||||
.pipe(plugins.gulp.dest("./test/result/"));
|
|
||||||
return stream;
|
|
||||||
});
|
|
||||||
|
Loading…
Reference in New Issue
Block a user