Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
92ad03fc65 | |||
50dd2b193a | |||
fb3e693f2a | |||
92841c1715 | |||
07b6fea447 | |||
809a1f7450 | |||
9e1716cba5 | |||
66ac210e5e | |||
663e8f1984 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
.settings/
|
.settings/
|
||||||
.idea/
|
.idea/
|
||||||
|
npm-debug.log
|
||||||
|
|
||||||
ts/*.js
|
ts/*.js
|
||||||
ts/*.js.map
|
ts/*.js.map
|
||||||
|
10
README.md
10
README.md
@ -4,7 +4,9 @@ browserify and other goodies for gulp
|
|||||||
### Build Status/Dependencies
|
### Build Status/Dependencies
|
||||||
[](https://travis-ci.org/pushrocks/gulp-browser)
|
[](https://travis-ci.org/pushrocks/gulp-browser)
|
||||||
[](https://david-dm.org/pushrocks/gulp-browser)
|
[](https://david-dm.org/pushrocks/gulp-browser)
|
||||||
[](https://david-dm.org/pushrocks/gulp-browser#info=devDependencies)
|
[](https://www.bithound.io/github/pushrocks/gulp-browser/master/dependencies/npm)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/gulp-browser)
|
||||||
|
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
gulp-browser is meant to be easy:
|
gulp-browser is meant to be easy:
|
||||||
@ -21,3 +23,9 @@ gulp-browser is meant to be easy:
|
|||||||
return stream;
|
return stream;
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> **Note:** Be aware of how gulp.src creates values of file.base and file.path since that is important to the require statements.
|
||||||
|
|
||||||
|
### Dev Information:
|
||||||
|
[](https://david-dm.org/pushrocks/gulp-browser#info=devDependencies)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/gulp-browser/master/dependencies/npm)
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gulp-browser",
|
"name": "gulp-browser",
|
||||||
"version": "0.0.15",
|
"version": "0.0.18",
|
||||||
"description": "browserify and other goodies for gulp",
|
"description": "browserify and other goodies for gulp",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -28,7 +28,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"browserify": "12.0.1",
|
"browserify": "12.0.1",
|
||||||
"gulp-util": "3.0.7",
|
"gulp-util": "3.0.7",
|
||||||
"pushrocks": "1.0.23",
|
"pushrocks": "1.0.24",
|
||||||
"through2": "2.0.0"
|
"through2": "2.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
module GulpBrowserBrowserify {
|
module GulpBrowserBrowserify {
|
||||||
export function init() {
|
export function init() {
|
||||||
return function() {
|
return function() {
|
||||||
return through.obj((file, enc, cb) => { //this is the trough object that gets returned by gulpBrowser.browserify();
|
return through.obj((file, enc, cb) => { //this is the through object that gets returned by gulpBrowser.browserify();
|
||||||
var bundleCallback = function(err, bufferedContent) {
|
var bundleCallback = function(err, bufferedContent) {
|
||||||
if (Buffer.isBuffer(bufferedContent)){
|
if (Buffer.isBuffer(bufferedContent)){
|
||||||
file.contents = bufferedContent;
|
file.contents = bufferedContent;
|
||||||
|
Reference in New Issue
Block a user