Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Dev #1

Merged
merged 8 commits into from
Apr 5, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "vendor"
}
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
bin
.tmp
*.iml
35 changes: 35 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"node": true,
"browser": true,
"esnext": true,
"bitwise": true,
"camelcase": true,
"curly": true,
"eqeqeq": true,
"immed": true,
"indent": 4,
"latedef": true,
"newcap": true,
"noarg": true,
"quotmark": "single",
"regexp": true,
"undef": true,
"unused": true,
"strict": true,
"trailing": true,
"smarttabs": true,
"globals": {
"angular": false,
"after": false,
"afterEach": false,
"angular": false,
"before": false,
"beforeEach": false,
"browser": false,
"describe": false,
"expect": false,
"inject": false,
"it": false,
"spyOn": false
}
}
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
language: node_js
node_js:
- '0.8'
- '0.10'
before_script:
- 'npm install -g bower grunt-cli'
- 'bower install'
1 change: 1 addition & 0 deletions .zedstate

Large diffs are not rendered by default.

63 changes: 63 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
'use strict';

module.exports = function(grunt) {
var path = require('path');

require('load-grunt-tasks')(grunt);
require('time-grunt')(grunt);

require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt'),
init: true, //auto grunt.initConfig
config: {
pkg: grunt.file.readJSON('package.json'),
yeoman: {
// configurable paths
src: 'src',
dist: 'dist',
build: '.tmp',
test: 'test',
currentDir: path.resolve(__dirname),
banner: '/*!\n' +
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
' * https://github.com/<%= pkg.author %>/<%= pkg.name %>\n' +
' */\n'
}
}
});

/** ---------------------------------------------------- */
/** ------------- GRUNT TASKS REGISTRATION ------------- */
/** ---------------------------------------------------- */

// Task to format js source code
grunt.registerTask('format', [
'jsbeautifier'
]);

grunt.registerTask('test', [
'karma'
]);

grunt.registerTask('serve', [
'clean:server',
'express:livereload',
'watch:livereload'
]);

grunt.registerTask('build', [
'clean:dist',
'ngtemplates',
'concat:build',
'ngmin',
'uglify',
'concat:banner'
]);

grunt.registerTask('default', [
'format',
'jshint',
'test',
'build'
]);
};
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
angular-datatables
==================
angular-datatables [![Build Status](https://travis-ci.org/l-lin/angular-datatables.png?branch=master)](https://travis-ci.org/l-lin/angular-datatables) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
================
> Ajax oriented datatables for Angular.

Datables using angular directives
See [demo](https://l-lin.github.io/angular-datatables).

License
================
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
31 changes: 31 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "angular-datatables",
"version": "0.0.1",
"author": "l-lin",
"main": [
"dist/angular-datatables.js",
"dist/angular-datatables.min.js"
],
"ignore": [
".bowerrc",
".editorconfig",
".git*",
".jshintrc",
"Gruntfile.js",
"test",
"node_modules",
"src",
".travis.yml",
"vendor"
],
"dependencies": {
"angular": "1.2.6",
"jquery": "1.11.0",
"datatables": "~1.9.4"
},
"devDependencies": {
"angular-mocks": "1.2.6",
"bootstrap": "3.0.1",
"angular-bootstrap": "0.10.0"
}
}
Loading