1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
|
Description: Skip unused actions in Gulp build system.
.
Not all the actions in the Gulp build system can be performed yet by
Debian packages. We disabled the actions not used in the Debian
package build.
Author: Ben Finney <bignose@debian.org>
Last-Update: 2018-02-25
diff --git old/gulpfile.js new/gulpfile.js
index e9699eab..50a8e055 100644
--- old/gulpfile.js
+++ new/gulpfile.js
@@ -1,14 +1,6 @@
var gulp = require('gulp'),
coffee = require('gulp-coffee'),
concat = require('gulp-concat'),
- umd = require('gulp-umd'),
- uglify = require('gulp-uglify'),
- rename = require("gulp-rename"),
- cssmin = require('gulp-cssmin'),
- jasmine = require('gulp-jasmine-phantom'),
- bump = require('gulp-bump'),
- header = require('gulp-header'),
- debug = require('gulp-debug'),
util = require('gulp-util');
var name = 'jquery.atwho';
@@ -34,70 +26,3 @@ gulp.task('concat', function() {
.pipe(concat(name + ".js"))
.pipe(gulp.dest('build'));
});
-
-gulp.task('umd', function() {
- gulp.src('build/' + name + ".js")
- .pipe(umd({template: "umd.template.js"}))
- .pipe(gulp.dest('build/js'));
-});
-
-gulp.task('bump', function() {
- gulp.src(['bower.json', 'component.json', 'package.json'])
- .pipe(bump({version: "1.5.4"}))
- .pipe(gulp.dest('./'));
-});
-
-gulp.task("mark", function() {
- var pkg = require('./package.json');
- var banner = ['/**',
- ' * <%= pkg.name %> - <%= pkg.version %>',
- ' * Copyright (c) <%= year %> <%= pkg.author.name %> <<%= pkg.author.email %>>;',
- ' * Homepage: <%= pkg.homepage %>',
- ' * License: <%= pkg.license %>',
- ' */',
- ''].join('\n');
-
- gulp.src('build/js/' + name + '.js')
- .pipe(header(banner, { pkg : pkg, year: (new Date).getFullYear()}))
- .pipe(gulp.dest('dist/js/'))
-});
-
-gulp.task('compress', function() {
- gulp.src('dist/js/' + name + '.js')
- .pipe(uglify())
- .pipe(rename({suffix: '.min'}))
- .pipe(gulp.dest('dist/js'));
-
- gulp.src('src/jquery.atwho.css').pipe(gulp.dest('dist/css'))
- gulp.src('dist/css/' + name + '.css')
- .pipe(cssmin())
- .pipe(rename({suffix: '.min'}))
- .pipe(gulp.dest('dist/css'));
-});
-
-gulp.task('test', function () {
- gulp.src('spec/**/*.coffee')
- .pipe(coffee({bare: true}).on('error', util.log))
- .pipe(debug({title: "compiled specs"}))
- .pipe(gulp.dest('spec/build'))
-
- gulp.src('spec/build/javascripts/*.spec.js')
- .pipe(jasmine({
- integration: true,
- specHtml: "specRunner.html"
- /* TODO: have to add css to spec
- vendor: [
- 'bower_components/jquery/dist/jquery.js',
- 'bower_components/Caret.js/dist/jquery.caret.js',
- 'dist/js/jquery.atwho.js',
- 'node_modules/jasmine-jquery/lib/*.js',
- 'node_modules/jasmine-ajax/lib/*.js',
- 'spec/helpers/*.js',
- 'spec/build/spec_helper.js'
- ],
- */
- }));
-});
-
-gulp.task('compile', ['coffee', 'umd', 'concat']);
-gulp.task('default', ['compile', 'bump', 'mark', 'compress']);
Local variables:
coding: utf-8
mode: diff
time-stamp-format: "%:y-%02m-%02d"
time-stamp-start: "^Last-Update:[ ]+"
time-stamp-end: "$"
time-stamp-line-limit: 20
End:
vim: fileencoding=utf-8 filetype=diff :
|