Sha256: d87a312f6735443307eaa34776d9e203d4d8155fec5cf48892c09dc697524427

Contents?: true

Size: 726 Bytes

Versions: 8

Compression:

Stored size: 726 Bytes

Contents

var fs = require('fs'),
concat = require('gulp-concat'),
rename = require('gulp-rename'),
umd = require('gulp-umd'),
uglify = require('gulp-uglify'),
gulp = require('gulp');

gulp.task('default', [
  'minify'
]);

gulp.task('watch', function() {
	gulp.watch('./src/**/*', ['default']);
});

gulp.task('minify', function() {
	gulp.src([
		'./src/*.js'
	])
	.pipe(concat('jquery.request.js'))
	.pipe(umd({
		dependencies: function() {
			return [
				{
					name: 'jquery'
				}
			]
		},
		exports: function() {
			return 'jQuery.Request';
		},
		namespace: function() {
			return 'jQuery.Request';
		}
	}))
	.pipe(gulp.dest('./dist/'))
	.pipe(uglify())
	.pipe(rename('jquery.request.min.js'))
	.pipe(gulp.dest('./dist/'));
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
active_record_survey_api-0.0.19 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js
active_record_survey_api-0.0.18 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js
active_record_survey_api-0.0.17 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js
active_record_survey_api-0.0.14 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js
active_record_survey_api-0.0.12 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js
active_record_survey_api-0.0.11 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js
active_record_survey_api-0.0.7 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js
active_record_survey_api-0.0.6 spec/test_app/vendor/assets/bower_components/jquery.request/Gulpfile.js