Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddliu/gulp-remote-src
Remote gulp.src
https://github.com/ddliu/gulp-remote-src
gulp gulp-plugin http nodejs remote request src
Last synced: 6 days ago
JSON representation
Remote gulp.src
- Host: GitHub
- URL: https://github.com/ddliu/gulp-remote-src
- Owner: ddliu
- License: mit
- Created: 2014-06-30T09:14:29.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:23:59.000Z (almost 2 years ago)
- Last Synced: 2024-04-15T00:06:48.753Z (7 months ago)
- Topics: gulp, gulp-plugin, http, nodejs, remote, request, src
- Language: JavaScript
- Homepage:
- Size: 302 KB
- Stars: 20
- Watchers: 3
- Forks: 6
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-remote-src
[![Build Status](https://travis-ci.org/ddliu/gulp-remote-src.png)](https://travis-ci.org/ddliu/gulp-remote-src)
Remote `gulp.src`.
## Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev gulp-remote-src
## Usage
```js
var gulp = require('gulp');
var uglify = require('gulp-uglify');
var remoteSrc = require('gulp-remote-src');gulp.task('remote', function() {
remoteSrc(['app.js', 'jquery.js'], {
base: 'http://myapps.com/assets/'
})
.pipe(uglify())
.pipe(gulp.dest('./dist/'));
})
```## Options
- `base`
Url base.
If you want to use absolute urls instead of relative ones, set this to
`null`. When not configured, `/` is assumed.- `buffer` (default is true)
Pipe out files as buffer or as stream. Note that some plugins do not support streaming.
- `requestOptions`
Options to be passed to [request](https://github.com/mikeal/request)