@@ -34,14 +34,17 @@ gulp.task('typings', ['clean'], function () {
3434} ) ;
3535
3636gulp . task ( 'bump' , [ 'bump-js' , 'bump-css' ] , function ( ) {
37- return gulp . src ( [ './bower.json' , './package.json' , './src/stable/tableexport.js' ] )
37+ return gulp . src ( [ './bower.json' , './package.json' ] )
3838 . pipe ( bump ( ) )
3939 . pipe ( gulp . dest ( './' ) ) ;
4040} ) ;
4141
4242gulp . task ( 'bump-js' , function ( ) {
4343 return gulp . src ( [ 'src/stable/js/tableexport.js' ] )
44- . pipe ( replace ( / ( v \d \. \d \. ) ( \d + ) / g, function ( matches , match1 , match2 ) {
44+ . pipe ( replace ( / ( v \d + \. \d + \. ) ( \d + ) / g, function ( matches , match1 , match2 ) {
45+ return match1 + ( Number ( match2 ) + 1 ) ;
46+ } ) )
47+ . pipe ( replace ( / ( v e r s i o n : " \d + \. \d + \. ) ( \d + ) / g, function ( matches , match1 , match2 ) {
4548 return match1 + ( Number ( match2 ) + 1 ) ;
4649 } ) )
4750 . pipe ( gulp . dest ( 'src/stable/js/' ) )
@@ -52,7 +55,7 @@ gulp.task('bump-js', function () {
5255
5356gulp . task ( 'bump-css' , function ( ) {
5457 gulp . src ( [ 'src/stable/css/tableexport.css' ] )
55- . pipe ( replace ( / ( v \d \. \d \. ) ( \d + ) / g, function ( matches , match1 , match2 ) {
58+ . pipe ( replace ( / ( v \d + \. \d + \. ) ( \d + ) / g, function ( matches , match1 , match2 ) {
5659 return match1 + ( Number ( match2 ) + 1 ) ;
5760 } ) )
5861 . pipe ( gulp . dest ( 'src/stable/css/' ) )
0 commit comments