Skip to content

Commit 1ff9e61

Browse files
committed
change version.
1 parent 40ca49a commit 1ff9e61

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

gulpfile.coffee

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ gulp = require 'gulp'
22
less = require 'gulp-less'
33
concat = require 'gulp-concat'
44
gutil = require 'gulp-util'
5+
replace = require 'gulp-replace'
6+
7+
version = require('./bower.json').version
58

69
src = ['bootstrap/less/variables.less', 'bootstrap/less/mixins.less', './typeahead.less']
710

11+
gulp.task 'version', ->
12+
gulp.src ['./typeahead.less']
13+
.pipe replace(/@version\s*\d+\.\d+\.\d+/g, '@version '+version)
14+
.pipe gulp.dest '.'
15+
816
gulp.task 'css', ->
917
gulp.src src
1018
.pipe concat './typeahead.less'
1119
.pipe less().on('error', gutil.log)
1220
.pipe gulp.dest '.'
1321

14-
gulp.task 'default', ['css']
22+
gulp.task 'default', ['version', 'css']

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "typeahead.js-bootstrap3.less",
33
"description": "Bootstrap3 style for typeahead.js using Bootstrap 3 mixins and variables",
4-
"version": "0.2.0",
4+
"version": "0.0.0",
55
"keywords": [
66
"less",
77
"bootstrap",
@@ -33,6 +33,7 @@
3333
"gulp-less": "~1.2.1",
3434
"gulp-concat": "~2.1.7",
3535
"coffee-script": "~1.7.1",
36-
"gulp-util": "~2.2.14"
36+
"gulp-util": "~2.2.14",
37+
"gulp-replace": "~0.2.0"
3738
}
3839
}

typeahead.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* typehead.js-bootstrap3.less 0.1.5
2+
* typehead.js-bootstrap3.less
3+
* @version 0.2.0
34
* https://github.com/hyspace/typeahead.js-bootstrap3.less
45
*
56
* Licensed under the MIT license:

typeahead.less

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
2-
* typehead.js-bootstrap3.less 0.1.5
2+
* typehead.js-bootstrap3.less
3+
* @version 0.2.0
34
* https://github.com/hyspace/typeahead.js-bootstrap3.less
45
*
56
* Licensed under the MIT license:

0 commit comments

Comments
 (0)