Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a9a332c

Browse files
committed
update gruntfile/karma
1 parent 3f193db commit a9a332c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Gruntfile.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ module.exports = function(grunt) {
3737
copy: {
3838
dist: {
3939
files: {
40-
'dist/gridstack.js': ['src/gridstack.js']
40+
'dist/gridstack.js': ['src/gridstack.js'],
41+
'dist/gridstack.jQueryUI.js': ['src/gridstack.jQueryUI.js'],
4142
}
4243
}
4344
},
@@ -50,7 +51,9 @@ module.exports = function(grunt) {
5051
},
5152
dist: {
5253
files: {
53-
'dist/gridstack.min.js': ['src/gridstack.js']
54+
'dist/gridstack.min.js': ['src/gridstack.js'],
55+
'dist/gridstack.jQueryUI.js': ['src/gridstack.jQueryUI.js'],
56+
'dist/gridstack.all.js': ['src/gridstack.js', 'src/gridstack.jQueryUI.js']
5457
}
5558
}
5659
},

karma.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = function(config) {
1919
'bower_components/jquery-ui/jquery-ui.min.js',
2020
'bower_components/lodash/dist/lodash.min.js',
2121
'src/gridstack.js',
22+
'src/gridstack.jQueryUI.js',
2223
'spec/*-spec.js'
2324
],
2425

@@ -31,7 +32,8 @@ module.exports = function(config) {
3132
// preprocess matching files before serving them to the browser
3233
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
3334
preprocessors: {
34-
'src/gridstack.js': ['coverage']
35+
'src/gridstack.js': ['coverage'],
36+
'src/gridstack.jQueryUI.js': ['coverage'],
3537
},
3638

3739

0 commit comments

Comments
 (0)