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

Commit 0f9f822

Browse files
committed
Add commonJS support #464
1 parent f4d4d45 commit 0f9f822

27 files changed

+73
-29
lines changed

Gruntfile.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ module.exports = function(grunt) {
2020
demo: 'demo',
2121
styles: 'styles',
2222
currentDir: path.resolve(__dirname),
23-
wrapper: {
24-
start: '(function (window, document, $, angular) {\n',
25-
end: '\n})(window, document, jQuery, angular);'
26-
},
2723
banner: '/*!\n' +
2824
' * <%= pkg.name %> - v<%= pkg.version %>\n' +
2925
' * https://github.com/<%= pkg.author %>/<%= pkg.name %>\n' +

dist/angular-datatables.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* https://github.com/l-lin/angular-datatables
44
* License: MIT
55
*/
6+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
7+
module.exports = 'datatables';
8+
}
69
(function (window, document, $, angular) {
710

811
'use strict';

dist/angular-datatables.min.js

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

dist/plugins/bootstrap/angular-datatables.bootstrap.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* https://github.com/l-lin/angular-datatables
44
* License: MIT
55
*/
6+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
7+
module.exports = 'datatables.bootstrap';
8+
}
69
(function (window, document, $, angular) {
710

811
'use strict';

dist/plugins/bootstrap/angular-datatables.bootstrap.min.js

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

dist/plugins/buttons/angular-datatables.buttons.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* https://github.com/l-lin/angular-datatables
44
* License: MIT
55
*/
6+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
7+
module.exports = 'datatables.buttons';
8+
}
69
(function (window, document, $, angular) {
710

811
'use strict';

dist/plugins/buttons/angular-datatables.buttons.min.js

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

dist/plugins/colreorder/angular-datatables.colreorder.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* https://github.com/l-lin/angular-datatables
44
* License: MIT
55
*/
6+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
7+
module.exports = 'datatables.colreorder';
8+
}
69
(function (window, document, $, angular) {
710

811
'use strict';

dist/plugins/colreorder/angular-datatables.colreorder.min.js

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

dist/plugins/columnfilter/angular-datatables.columnfilter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
* https://github.com/l-lin/angular-datatables
44
* License: MIT
55
*/
6+
if (typeof module !== "undefined" && typeof exports !== "undefined" && module.exports === exports) {
7+
module.exports = 'datatables.columnfilter';
8+
}
69
(function (window, document, $, angular) {
710

811
'use strict';

0 commit comments

Comments
 (0)