Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
5fe7d563d0 | |||
29534a3c6d | |||
e5cbefd195 | |||
83ddb95968 | |||
7afda4e508 | |||
f459bd5537 | |||
53dba94a78 | |||
47b5d718ee | |||
e0902b9f6c | |||
5ee39fc04d | |||
40254e394e | |||
9306dcf0a1 |
4
.gitignore
vendored
4
.gitignore
vendored
@ -7,4 +7,6 @@ ts/*.js
|
|||||||
ts/*.js.map
|
ts/*.js.map
|
||||||
ts/typings/
|
ts/typings/
|
||||||
|
|
||||||
test/result/
|
test/result/
|
||||||
|
|
||||||
|
coverage/
|
@ -1,3 +1,4 @@
|
|||||||
node_modules
|
node_modules
|
||||||
test
|
test
|
||||||
ts
|
ts
|
||||||
|
coverage/
|
@ -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
|
||||||
|
@ -6,7 +6,7 @@ browserify and other goodies for gulp
|
|||||||
[](https://david-dm.org/pushrocks/gulp-browser)
|
[](https://david-dm.org/pushrocks/gulp-browser)
|
||||||
[](https://www.bithound.io/github/pushrocks/gulp-browser/master/dependencies/npm)
|
[](https://www.bithound.io/github/pushrocks/gulp-browser/master/dependencies/npm)
|
||||||
[](https://www.bithound.io/github/pushrocks/gulp-browser)
|
[](https://www.bithound.io/github/pushrocks/gulp-browser)
|
||||||
|
[](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
4
npmts.json
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"mode":"default",
|
||||||
|
"coveralls":true
|
||||||
|
}
|
12
package.json
12
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gulp-browser",
|
"name": "gulp-browser",
|
||||||
"version": "1.0.6",
|
"version": "1.0.9",
|
||||||
"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
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;
|
||||||
|
};
|
11
test/test.js
11
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,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(20000);
|
||||||
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;
|
|
||||||
});
|
|
||||||
|
10
ts/test.ts
10
ts/test.ts
@ -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(20000);
|
||||||
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;
|
|
||||||
});
|
|
||||||
|
Reference in New Issue
Block a user