Compare commits

...

9 Commits

Author SHA1 Message Date
5fe7d563d0 1.0.9 2016-02-09 20:44:35 +01:00
29534a3c6d update npmts 2016-02-09 20:44:10 +01:00
e5cbefd195 updated npmts 2016-02-09 17:11:09 +01:00
83ddb95968 cleanup 2016-02-09 17:06:26 +01:00
7afda4e508 add code coverage badge 2016-02-09 17:04:11 +01:00
f459bd5537 update test 2016-02-09 16:51:06 +01:00
53dba94a78 1.0.8 2016-02-09 16:44:27 +01:00
47b5d718ee some finetuning 2016-02-09 16:44:23 +01:00
e0902b9f6c now running coverage 2016-02-09 16:39:36 +01:00
8 changed files with 25 additions and 24 deletions

4
.gitignore vendored
View File

@ -7,4 +7,6 @@ ts/*.js
ts/*.js.map
ts/typings/
test/result/
test/result/
coverage/

View File

@ -1,3 +1,4 @@
node_modules
test
ts
ts
coverage/

View File

@ -6,7 +6,7 @@ browserify and other goodies for gulp
[![Dependency Status](https://david-dm.org/pushrocks/gulp-browser.svg)](https://david-dm.org/pushrocks/gulp-browser)
[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/gulp-browser/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/gulp-browser/master/dependencies/npm)
[![bitHound Code](https://www.bithound.io/github/pushrocks/gulp-browser/badges/code.svg)](https://www.bithound.io/github/pushrocks/gulp-browser)
[![Coverage Status](https://coveralls.io/repos/github/pushrocks/gulp-browser/badge.svg?branch=master)](https://coveralls.io/github/pushrocks/gulp-browser?branch=master)
### Usage
gulp-browser is meant to be easy:

4
npmts.json Normal file
View File

@ -0,0 +1,4 @@
{
"mode":"default",
"coveralls":true
}

View File

@ -1,6 +1,6 @@
{
"name": "gulp-browser",
"version": "1.0.7",
"version": "1.0.9",
"description": "browserify and other goodies for gulp",
"main": "index.js",
"scripts": {
@ -25,14 +25,14 @@
},
"homepage": "https://github.com/pushrocks/gulp-browser",
"dependencies": {
"beautylog": "2.0.6",
"beautylog": "2.0.7",
"browserify": "13.0.0",
"gulp-util": "3.0.7",
"through2": "2.0.0"
"through2": "2.0.1"
},
"devDependencies": {
"gulp": "3.9.0",
"gulp": "3.9.1",
"gulp-function": "1.0.2",
"npmts": "^2.0.3"
"npmts": "^2.2.2"
}
}

7
test/test.d.ts vendored Normal file
View File

@ -0,0 +1,7 @@
/// <reference path="ts/typings/main.d.ts" />
declare var plugins: {
beautylog: any;
gulp: any;
gulpBrowser: any;
gulpFunction: any;
};

View File

@ -1,3 +1,5 @@
#!/usr/bin/env node
/// <reference path="./typings/main.d.ts" />
var plugins = {
beautylog: require("beautylog"),
@ -8,7 +10,7 @@ var plugins = {
describe("gulpBrowser", function () {
describe(".browserify", function () {
it("should run through smoothly", function (done) {
this.timeout(15000);
this.timeout(20000);
plugins.gulp.task('gulpBrowserNormal', function (cb) {
var stream = plugins.gulp.src('./test/browserifyGulpTest.js')
.pipe(plugins.gulpBrowser.browserify())
@ -20,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;
});

View File

@ -21,11 +21,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;
});