Skip to content

Commit

Permalink
add version on files
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzofox3 committed Dec 1, 2014
1 parent d18dcd8 commit 1dc8fbd
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
12 changes: 8 additions & 4 deletions dist/smart-table.debug.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* @version 1.4.5
* @license MIT
*/
(function (ng, undefined){
'use strict';

Expand Down Expand Up @@ -69,7 +73,7 @@ ng.module('smart-table')
tableState.sort.predicate = predicate;
tableState.sort.reverse = reverse === true;
tableState.pagination.start = 0;
this.pipe();
return this.pipe();
};

/**
Expand All @@ -87,7 +91,7 @@ ng.module('smart-table')
}
tableState.search.predicateObject = predicateObject;
tableState.pagination.start = 0;
this.pipe();
return this.pipe();
};

/**
Expand Down Expand Up @@ -137,7 +141,7 @@ ng.module('smart-table')
this.slice = function splice(start, number) {
tableState.pagination.start = start;
tableState.pagination.number = number;
this.pipe();
return this.pipe();
};

/**
Expand Down Expand Up @@ -407,7 +411,7 @@ ng.module('smart-table')
if (ng.isFunction(scope.stPipe)) {
ctrl.preventPipeOnWatch();
ctrl.pipe = function () {
scope.stPipe(ctrl.tableState(), ctrl);
return scope.stPipe(ctrl.tableState(), ctrl);
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion dist/smart-table.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions gulpFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var karma = require('karma').server;
var jshint = require('gulp-jshint');
var insert = require('gulp-insert');
var stylish = require('jshint-stylish');
var packageJson = require('./package.json');
var pluginList = ['stSearch', 'stSelectRow', 'stSort', 'stPagination', 'stPipe'];
var disFolder = './dist/';

var src = (['smart-table.module', 'stTable']).concat(pluginList).map(function (val) {
return 'src/' + val + '.js';
});
Expand Down Expand Up @@ -47,4 +48,12 @@ gulp.task('debug', function () {

gulp.task('test', ['karma-CI']);

gulp.task('build', ['test', 'plugins', 'debug']);
gulp.task('build',['test', 'plugins', 'debug'], function () {

var version = packageJson.version;
var string = '/** \n* @version ' + version + '\n* @license MIT\n*/\n';

gulp.src(disFolder + '*.js')
.pipe(insert.prepend(string))
.pipe(gulp.dest(disFolder));
});
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
"scripts": {
"test": "node ./node_modules/.bin/gulp karma-CI"
},
"repository": {
"type": "git",
"url": "https://github.com/lorenzofox3/Smart-Table.git"
},
"author": "",
"license": "ISC",
"devDependencies": {
"gulp": "^3.8.7",
"gulp-concat": "^2.3.4",
"gulp-insert": "^0.4.0",
"gulp-jshint": "^1.8.4",
"gulp-uglify": "^0.3.1",
"jshint-stylish": "^0.4.0",
Expand Down

0 comments on commit 1dc8fbd

Please sign in to comment.