-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added footable refresh upon data change
Added load-when attribute watch to redraw footable (footable_redraw) [useful with dynamically populated content]. Moves specs.js under test. Rewrote gulp processing since boilerplate gulp wasn't working with the most recent packages (gulp.series() undefined error).
- Loading branch information
Showing
9 changed files
with
83 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "angular-footable", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/ziscloud/angular-footable", | ||
"authors": [ | ||
"Tony Wang <[email protected]>" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,30 @@ | ||
var gulp = require('gulp'), | ||
boilerplate = require('boilerplate-gulp'); | ||
|
||
boilerplate(gulp, { | ||
pkg: require('./package.json'), | ||
jsMain: './src/angular-footable.js', | ||
karmaConfig: require('./test/karma.conf.js'), | ||
connectConfig: require('./example/connect.conf.js') | ||
}); | ||
var gulp = require('gulp'); | ||
|
||
var rename = require('gulp-rename'); | ||
var clean = require('gulp-clean'); | ||
var jshint = require('gulp-jshint'); | ||
var concat = require('gulp-concat'); | ||
var uglify = require('gulp-uglify'); | ||
|
||
var paths = { | ||
scripts: ['src/*.js'], | ||
}; | ||
var bases = { | ||
dist: 'dist' | ||
}; | ||
gulp.task('clean', function(){ | ||
return gulp.src(bases.dist+'/*.js', {read:false}) | ||
.pipe(clean()); | ||
}); | ||
gulp.task('scripts', ['clean'], function(){ | ||
gulp.src(paths.scripts) | ||
.pipe(jshint()) | ||
.pipe(jshint.reporter('default')) | ||
.pipe(gulp.dest(bases.dist)) | ||
.pipe(uglify()) | ||
.pipe(rename({ | ||
extname: '.min.js' | ||
})) | ||
.pipe(gulp.dest(bases.dist)); | ||
}); | ||
gulp.task('default',['scripts']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,36 @@ | ||
{ | ||
"name": "angular-footable", | ||
"version": "0.0.1", | ||
"description": "Angular derictive for FooTable", | ||
"main": "dist/angular-footable.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"test": "gulp test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ziscloud/angular-footable.git" | ||
}, | ||
"keywords": [ | ||
"angular", | ||
"footable" | ||
], | ||
"author": "Tony Wang", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ziscloud/angular-footable/issues" | ||
}, | ||
"homepage": "https://github.com/ziscloud/angular-footable", | ||
"devDependencies": { | ||
"gulp": "~3.8.0", | ||
"boilerplate-gulp": "~0.3.0" | ||
} | ||
"name": "angular-footable", | ||
"version": "0.0.1", | ||
"description": "Angular derictive for FooTable", | ||
"main": "dist/angular-footable.js", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"test": "gulp test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ziscloud/angular-footable.git" | ||
}, | ||
"keywords": [ | ||
"angular", | ||
"footable" | ||
], | ||
"author": "Tony Wang", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/ziscloud/angular-footable/issues" | ||
}, | ||
"homepage": "https://github.com/ziscloud/angular-footable", | ||
"devDependencies": { | ||
"boilerplate-gulp": "~0.3.0", | ||
"gulp": "~3.8.0", | ||
"gulp-clean": "^0.3.1", | ||
"gulp-concat": "^2.6.0", | ||
"gulp-jshint": "^2.0.0", | ||
"gulp-rename": "^1.2.2", | ||
"gulp-uglify": "^1.5.1", | ||
"jshint": "^2.9.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters