Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 12bc6ce

Browse files
committed
Updated tooling.
1 parent 8a15da2 commit 12bc6ce

File tree

3 files changed

+17
-9
lines changed

3 files changed

+17
-9
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-cascading-dropdown",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"homepage": "https://github.com/dnasir/jquery-cascading-dropdown",
55
"authors": [
66
"Dzulqarnain Nasir <[email protected]>"

gulpfile.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
var gulp = require('gulp');
2-
var uglifyjs = require('gulp-uglifyjs');
2+
var uglify = require('gulp-uglify');
33
var header = require('gulp-header');
4+
var sourcemaps = require('gulp-sourcemaps');
5+
var rename = require('gulp-rename');
46
var pkg = require('./package.json');
57

6-
var banner = '/*! <%= pkg.name %> <%= pkg.version %> | (c) 2015 <%= pkg.author %> | <%= pkg.license %> */\n';
8+
var year = new Date().getFullYear();
9+
var banner = '/*! <%= pkg.name %> <%= pkg.version %> | (c) ' + year + ' <%= pkg.author %> | <%= pkg.license %> */\n';
710

811
gulp.task('js', function() {
912
gulp.src('src/jquery.cascadingdropdown.js')
10-
.pipe(gulp.dest('dist/'))
11-
.pipe(uglifyjs('jquery.cascadingdropdown.min.js', { outSourceMap: true }))
1213
.pipe(header(banner, { pkg: pkg }))
14+
.pipe(gulp.dest('dist/'))
15+
.pipe(rename('jquery.cascadingdropdown.min.js'))
16+
.pipe(sourcemaps.init())
17+
.pipe(uglify({ preserveComments: 'license' }))
18+
.pipe(sourcemaps.write('./'))
1319
.pipe(gulp.dest('dist/'));
1420
});
1521

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery-cascading-dropdown",
3-
"version": "1.2.6",
3+
"version": "1.2.7",
44
"description": "A simple and lighweight jQuery plugin for creating cascading dropdowns.",
55
"main": "dist/jquery.cascadingdropdown.js",
66
"scripts": {
@@ -23,8 +23,10 @@
2323
"homepage": "https://github.com/dnasir/jquery-cascading-dropdown",
2424
"dependencies": {},
2525
"devDependencies": {
26-
"gulp": "~3.8.11",
27-
"gulp-uglifyjs": "~0.6.1",
28-
"gulp-header": "~1.2.2"
26+
"gulp": "^3.9.1",
27+
"gulp-uglify": "^1.5.3",
28+
"gulp-header": "^1.7.1",
29+
"gulp-sourcemaps": "^1.6.0",
30+
"gulp-rename": "^1.2.2"
2931
}
3032
}

0 commit comments

Comments
 (0)