Skip to content

Commit bf71614

Browse files
author
iyel
committed
fixed sourcemaps
1 parent fc3abcd commit bf71614

File tree

8 files changed

+20
-24
lines changed

8 files changed

+20
-24
lines changed

Gruntfile.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
var mountFolder = function (connect, dir) {
1+
var mountFolder = function(connect, dir) {
22
return connect.static(require('path').resolve(dir));
33
};
4-
module.exports = function (grunt) {
4+
module.exports = function(grunt) {
55

66
require('load-grunt-tasks')(grunt);
77

@@ -17,7 +17,7 @@ module.exports = function (grunt) {
1717

1818
grunt.registerTask('default', [
1919
'dev',
20-
'uglify',
20+
'uglify',
2121
'cssmin'
2222
]);
2323

@@ -33,12 +33,10 @@ module.exports = function (grunt) {
3333
},
3434
copy: {
3535
styles: {
36-
files: [
37-
{
38-
src: './src/styles/ng-table.less',
39-
dest: './dist/ng-table.less'
40-
}
41-
]
36+
files: [{
37+
src: './src/styles/ng-table.less',
38+
dest: './dist/ng-table.less'
39+
}]
4240
}
4341
},
4442
uglify: {
@@ -47,9 +45,7 @@ module.exports = function (grunt) {
4745
dest: './dist/ng-table.min.js',
4846
options: {
4947
banner: '<%= banner %>',
50-
sourceMap: function (fileName) {
51-
return fileName.replace(/$/, '.map');
52-
}
48+
sourceMap: true
5349
}
5450
}
5551
},
@@ -115,7 +111,7 @@ module.exports = function (grunt) {
115111
},
116112
serve: {
117113
options: {
118-
middleware: function (connect) {
114+
middleware: function(connect) {
119115
return [
120116
mountFolder(connect, '.')
121117
];
@@ -135,4 +131,4 @@ module.exports = function (grunt) {
135131
}
136132
}
137133
});
138-
};
134+
};

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-table",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"main": [
55
"./dist/ng-table.min.js",
66
"./dist/ng-table.min.css"

dist/ng-table.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ angular.module('ngTable').run(['$templateCache', function ($templateCache) {
962962
$templateCache.put('ng-table/filters/select.html', '<select ng-options="data.id as data.title for data in $column.data" ng-disabled="$filterRow.disabled" ng-model="params.filter()[name]" ng-show="filter==\'select\'" class="filter filter-select form-control" name="{{name}}"> </select>');
963963
$templateCache.put('ng-table/filters/text.html', '<input type="text" name="{{name}}" ng-disabled="$filterRow.disabled" ng-model="params.filter()[name]" ng-if="filter==\'text\'" class="input-filter form-control"/>');
964964
$templateCache.put('ng-table/header.html', '<tr> <th title="{{$column.headerTitle(this)}}" ng-repeat="$column in $columns" ng-class="{ \'sortable\': $column.sortable(this), \'sort-asc\': params.sorting()[$column.sortable(this)]==\'asc\', \'sort-desc\': params.sorting()[$column.sortable(this)]==\'desc\' }" ng-click="sortBy($column, $event)" ng-show="$column.show(this)" ng-init="template=$column.headerTemplateURL(this)" class="header {{$column.class(this)}}"> <div ng-if="!template" ng-show="!template" ng-bind="$column.title(this)"></div> <div ng-if="template" ng-show="template" ng-include="template"></div> </th> </tr> <tr ng-show="show_filter" class="ng-table-filters"> <th data-title-text="{{$column.titleAlt(this) || $column.title(this)}}" ng-repeat="$column in $columns" ng-show="$column.show(this)" class="filter"> <div ng-repeat="(name, filter) in $column.filter(this)"> <div ng-if="filter.indexOf(\'/\') !==-1" ng-include="filter"></div> <div ng-if="filter.indexOf(\'/\')===-1" ng-include="\'ng-table/filters/\' + filter + \'.html\'"></div> </div> </th> </tr> ');
965-
$templateCache.put('ng-table/pager.html', '<div class="ng-cloak ng-table-pager"> <div ng-if="params.settings().counts.length" class="ng-table-counts btn-group pull-right"> <button ng-repeat="count in params.settings().counts" type="button" ng-class="{\'active\':params.count()==count}" ng-click="params.count(count)" class="btn btn-default"> <span ng-bind="count"></span> </button> </div> <ul class="pagination ng-table-pagination"> <li ng-class="{\'disabled\': !page.active && !page.current, \'active\': page.current}" ng-repeat="page in pages" ng-switch="page.type"> <a ng-switch-when="prev" ng-click="params.page(page.number)" href="">&laquo;</a> <a ng-switch-when="first" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="page" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a> <a ng-switch-when="last" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="next" ng-click="params.page(page.number)" href="">&raquo;</a> </li> </ul> </div> ');
965+
$templateCache.put('ng-table/pager.html', '<div class="ng-cloak ng-table-pager" ng-if="params.data.length"> <div ng-if="params.settings().counts.length" class="ng-table-counts btn-group pull-right"> <button ng-repeat="count in params.settings().counts" type="button" ng-class="{\'active\':params.count()==count}" ng-click="params.count(count)" class="btn btn-default"> <span ng-bind="count"></span> </button> </div> <ul class="pagination ng-table-pagination"> <li ng-class="{\'disabled\': !page.active && !page.current, \'active\': page.current}" ng-repeat="page in pages" ng-switch="page.type"> <a ng-switch-when="prev" ng-click="params.page(page.number)" href="">&laquo;</a> <a ng-switch-when="first" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="page" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a> <a ng-switch-when="last" ng-click="params.page(page.number)" href=""><span ng-bind="page.number"></span></a> <a ng-switch-when="next" ng-click="params.page(page.number)" href="">&raquo;</a> </li> </ul> </div> ');
966966
}]);
967967
return app;
968968
}));

dist/ng-table.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)