Compare commits

...

14 Commits

Author SHA1 Message Date
895063ec65 1.0.10 2016-02-09 20:49:16 +01:00
ba29214eea update testscript 2016-02-09 20:49:12 +01:00
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
5ee39fc04d 1.0.7 2016-02-02 15:23:35 +01:00
40254e394e updated deps 2016-02-02 15:23:25 +01:00
9306dcf0a1 bump timeout time for travis 2016-02-01 03:55:50 +01:00
10 changed files with 28 additions and 29 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

4
.gitignore vendored
View File

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

View File

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

View File

@ -1,8 +1,6 @@
language: node_js language: node_js
node_js: node_js:
- '4.1' - '4.2.4'
before_install:
- npm install -g tsd
deploy: deploy:
provider: npm provider: npm
email: npm@lossless.digital email: npm@lossless.digital

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) [![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 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) [![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 ### Usage
gulp-browser is meant to be easy: 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", "name": "gulp-browser",
"version": "1.0.6", "version": "1.0.10",
"description": "browserify and other goodies for gulp", "description": "browserify and other goodies for gulp",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -25,14 +25,14 @@
}, },
"homepage": "https://github.com/pushrocks/gulp-browser", "homepage": "https://github.com/pushrocks/gulp-browser",
"dependencies": { "dependencies": {
"beautylog": "2.0.4", "beautylog": "2.0.7",
"browserify": "13.0.0", "browserify": "13.0.0",
"gulp-util": "3.0.7", "gulp-util": "3.0.7",
"through2": "2.0.0" "through2": "2.0.1"
}, },
"devDependencies": { "devDependencies": {
"gulp": "3.9.0", "gulp": "3.9.1",
"gulp-function": "0.0.12", "gulp-function": "1.0.2",
"npmts": "^2.0.2" "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" /> /// <reference path="./typings/main.d.ts" />
var plugins = { var plugins = {
beautylog: require("beautylog"), beautylog: require("beautylog"),
@ -8,7 +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(15000); this.timeout(30000);
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())
@ -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

@ -9,7 +9,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(15000); this.timeout(30000);
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,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;
});