Skip to content

Commit

Permalink
Add commonJS support #464
Browse files Browse the repository at this point in the history
  • Loading branch information
l-lin committed Oct 26, 2015
1 parent f4d4d45 commit 0f9f822
Show file tree
Hide file tree
Showing 27 changed files with 73 additions and 29 deletions.
4 changes: 0 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ module.exports = function(grunt) {
demo: 'demo',
styles: 'styles',
currentDir: path.resolve(__dirname),
wrapper: {
start: '(function (window, document, $, angular) {\n',
end: '\n})(window, document, jQuery, angular);'
},
banner: '/*!\n' +
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
' * https://github.com/<%= pkg.author %>/<%= pkg.name %>\n' +
Expand Down
3 changes: 3 additions & 0 deletions dist/angular-datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'datatables';
}
(function (window, document, $, angular) {

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-datatables.min.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/plugins/bootstrap/angular-datatables.bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'datatables.bootstrap';
}
(function (window, document, $, angular) {

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/bootstrap/angular-datatables.bootstrap.min.js

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

3 changes: 3 additions & 0 deletions dist/plugins/buttons/angular-datatables.buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'datatables.buttons';
}
(function (window, document, $, angular) {

'use strict';
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/buttons/angular-datatables.buttons.min.js

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

3 changes: 3 additions & 0 deletions dist/plugins/colreorder/angular-datatables.colreorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'datatables.colreorder';
}
(function (window, document, $, angular) {

'use strict';
Expand Down

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

3 changes: 3 additions & 0 deletions dist/plugins/columnfilter/angular-datatables.columnfilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
* https://github.com/l-lin/angular-datatables
* License: MIT
*/
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
module.exports = 'datatables.columnfilter';
}
(function (window, document, $, angular) {

'use strict';
Expand Down
Loading

0 comments on commit 0f9f822

Please sign in to comment.