Commit 713c79e0 by Usman Khalid

Set included=false by default because we want to move towards RequireJs.

parent 855fdbd3
...@@ -9,87 +9,77 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k ...@@ -9,87 +9,77 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k
var files = { var files = {
libraryFiles: [ libraryFiles: [
{pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js', included: false}, {pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js'},
{pattern: 'xmodule_js/common_static/js/src/utility.js', included: false}, {pattern: 'xmodule_js/common_static/js/src/utility.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery-ui.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery-ui.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.cookie.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.cookie.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.simulate.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.simulate.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/underscore.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/underscore.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/underscore.string.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/underscore.string.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/backbone.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/backbone.js'},
{pattern: 'xmodule_js/common_static/js/vendor/backbone-associations-min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/backbone-associations-min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/backbone.paginator.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/backbone.paginator.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/backbone-relational.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/backbone-relational.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/timepicker/jquery.timepicker.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/timepicker/jquery.timepicker.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.leanModal.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.leanModal.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.ajaxQueue.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.ajaxQueue.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.form.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.form.js'},
{pattern: 'xmodule_js/common_static/js/vendor/html5-input-polyfills/number-polyfill.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/html5-input-polyfills/number-polyfill.js'},
{pattern: 'xmodule_js/common_static/js/vendor/sinon-1.17.0.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/sinon-1.17.0.js'},
{pattern: 'xmodule_js/common_static/js/vendor/Squire.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/Squire.js'},
{pattern: 'xmodule_js/common_static/js/libs/jasmine-stealth.js', included: false}, {pattern: 'xmodule_js/common_static/js/libs/jasmine-stealth.js'},
{pattern: 'xmodule_js/common_static/js/libs/jasmine-waituntil.js', included: false}, {pattern: 'xmodule_js/common_static/js/libs/jasmine-waituntil.js'},
{pattern: 'xmodule_js/common_static/js/libs/jasmine-extensions.js', included: true}, {pattern: 'xmodule_js/common_static/js/libs/jasmine-extensions.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/jasmine-imagediff.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jasmine-imagediff.js'},
{pattern: 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/**/*.js'},
{pattern: 'xmodule_js/src/xmodule.js', included: false}, {pattern: 'xmodule_js/src/xmodule.js'},
{pattern: 'xmodule_js/common_static/js/test/i18n.js', included: false}, {pattern: 'xmodule_js/common_static/js/test/i18n.js'},
{pattern: 'xmodule_js/common_static/js/vendor/draggabilly.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/draggabilly.js'},
{pattern: 'xmodule_js/common_static/js/vendor/date.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/date.js'},
{pattern: 'xmodule_js/common_static/js/vendor/domReady.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/domReady.js'},
{pattern: 'xmodule_js/common_static/js/vendor/URI.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/URI.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.smooth-scroll.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.smooth-scroll.min.js'},
{pattern: 'xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js', included: false}, {pattern: 'xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js'},
{pattern: 'xmodule_js/common_static/js/xblock/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/js/xblock/**/*.js'},
{pattern: 'xmodule_js/common_static/coffee/src/xblock/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/coffee/src/xblock/**/*.js'},
{ {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js'},
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js', {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js'},
included: false {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-process.js'},
}, {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-validate.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/mock-ajax.js'},
{ {pattern: 'xmodule_js/common_static/js/vendor/requirejs/text.js'},
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-process.js', {pattern: 'edx-ui-toolkit/js/utils/global-loader.js'},
included: false {pattern: 'edx-pattern-library/js/modernizr-custom.js'},
}, {pattern: 'edx-pattern-library/js/afontgarde.js'},
{ {pattern: 'edx-pattern-library/js/edx-icons.js'},
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-validate.js', {pattern: 'edx-pattern-library/js/**/*.js'},
included: false {pattern: 'edx-ui-toolkit/js/**/*.js'},
},
{pattern: 'xmodule_js/common_static/js/vendor/mock-ajax.js', included: false},
{pattern: 'xmodule_js/common_static/js/vendor/requirejs/text.js', included: false},
{pattern: 'edx-ui-toolkit/js/utils/global-loader.js', included: false},
{pattern: 'edx-pattern-library/js/modernizr-custom.js', included: false},
{pattern: 'edx-pattern-library/js/afontgarde.js', included: false},
{pattern: 'edx-pattern-library/js/edx-icons.js', included: false},
{pattern: 'edx-pattern-library/js/**/*.js', included: false},
{pattern: 'edx-ui-toolkit/js/**/*.js', included: false},
{pattern: 'common/js/utils/require-serial.js', included: true} {pattern: 'common/js/utils/require-serial.js', included: true}
], ],
sourceFiles: [ sourceFiles: [
{pattern: 'coffee/src/**/!(*spec).js', included: false}, {pattern: 'coffee/src/**/!(*spec).js'},
{pattern: 'js/**/!(*spec).js', included: false}, {pattern: 'js/**/!(*spec).js'},
{pattern: 'common/js/**/!(*spec).js', included: false} {pattern: 'common/js/**/!(*spec).js'}
], ],
specFiles: [ specFiles: [
{pattern: 'coffee/spec/**/*spec.js', included: false}, {pattern: 'coffee/spec/**/*spec.js'},
{pattern: 'js/spec/**/*spec.js', included: false}, {pattern: 'js/spec/**/*spec.js'},
{pattern: 'js/certificates/spec/**/*spec.js', included: false} {pattern: 'js/certificates/spec/**/*spec.js'}
], ],
fixtureFiles: [ fixtureFiles: [
{pattern: 'coffee/fixtures/**/*.underscore', included: false}, {pattern: 'coffee/fixtures/**/*.underscore'},
{pattern: 'templates/**/*.underscore', included: false}, {pattern: 'templates/**/*.underscore'},
{pattern: 'common/templates/**/*.underscore', included: false} {pattern: 'common/templates/**/*.underscore'}
], ],
runAndConfigFiles: [ runFiles: [
{pattern: path.join(configModule.appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true}, {pattern: 'coffee/spec/main.js', included: true}
'coffee/spec/main.js'
] ]
}; };
...@@ -99,4 +89,3 @@ module.exports = function (config) { ...@@ -99,4 +89,3 @@ module.exports = function (config) {
files: files files: files
}); });
}; };
...@@ -9,74 +9,64 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k ...@@ -9,74 +9,64 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k
var files = { var files = {
libraryFiles: [ libraryFiles: [
{pattern: 'xmodule_js/common_static/js/vendor/requirejs/require.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/requirejs/require.js'},
{pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js', included: false}, {pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js'},
{pattern: 'xmodule_js/common_static/js/src/utility.js', included: false}, {pattern: 'xmodule_js/common_static/js/src/utility.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery-ui.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery-ui.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.cookie.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.cookie.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/underscore.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/underscore.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/underscore.string.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/underscore.string.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/backbone.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/backbone.js'},
{pattern: 'xmodule_js/common_static/js/vendor/backbone-associations-min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/backbone-associations-min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/backbone.paginator.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/backbone.paginator.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/timepicker/jquery.timepicker.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/timepicker/jquery.timepicker.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.leanModal.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.leanModal.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.form.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.form.js'},
{pattern: 'xmodule_js/common_static/js/vendor/html5-input-polyfills/number-polyfill.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/html5-input-polyfills/number-polyfill.js'},
{pattern: 'xmodule_js/common_static/js/vendor/sinon-1.17.0.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/sinon-1.17.0.js'},
{pattern: 'xmodule_js/common_static/js/vendor/Squire.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/Squire.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jasmine-imagediff.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jasmine-imagediff.js'},
{pattern: 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js'},
{pattern: 'xmodule_js/common_static/js/vendor/domReady.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/domReady.js'},
{pattern: 'xmodule_js/common_static/js/vendor/URI.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/URI.min.js'},
{pattern: 'xmodule_js/common_static/js/libs/jasmine-extensions.js', included: true}, {pattern: 'xmodule_js/common_static/js/libs/jasmine-extensions.js', included: true},
{pattern: 'xmodule_js/src/xmodule.js', included: false}, {pattern: 'xmodule_js/src/xmodule.js'},
{pattern: 'xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js', included: false}, {pattern: 'xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js'},
{pattern: 'xmodule_js/common_static/js/test/i18n.js', included: false}, {pattern: 'xmodule_js/common_static/js/test/i18n.js'},
{pattern: 'xmodule_js/common_static/js/xblock/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/js/xblock/**/*.js'},
{pattern: 'xmodule_js/common_static/coffee/src/xblock/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/coffee/src/xblock/**/*.js'},
{pattern: 'xmodule_js/common_static/js/vendor/URI.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/URI.min.js'},
{ {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js'},
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js', {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js'},
included: false {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-process.js'},
}, {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-validate.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/requirejs/text.js'},
{
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-process.js',
included: false
},
{
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload-validate.js',
included: false
},
{pattern: 'xmodule_js/common_static/js/vendor/requirejs/text.js', included: false},
{pattern: 'common/js/utils/require-serial.js', included: true} {pattern: 'common/js/utils/require-serial.js', included: true}
], ],
sourceFiles: [ sourceFiles: [
{pattern: 'coffee/src/**/*.js', included: false}, {pattern: 'coffee/src/**/*.js'},
{pattern: 'js/collections/**/*.js', included: false}, {pattern: 'js/collections/**/*.js'},
{pattern: 'js/models/**/*.js', included: false}, {pattern: 'js/models/**/*.js'},
{pattern: 'js/utils/**/*.js', included: false}, {pattern: 'js/utils/**/*.js'},
{pattern: 'js/views/**/*.js', included: false}, {pattern: 'js/views/**/*.js'},
{pattern: 'common/js/**/*.js', included: false} {pattern: 'common/js/**/*.js'}
], ],
specFiles: [ specFiles: [
{pattern: 'coffee/spec/**/*.js', included: false}, {pattern: 'coffee/spec/**/*.js'},
{pattern: 'js/spec/**/*.js', included: false} {pattern: 'js/spec/**/*.js'}
], ],
fixtureFiles: [ fixtureFiles: [
{pattern: 'coffee/fixtures/**/*.*', included: false}, {pattern: 'coffee/fixtures/**/*.*'},
{pattern: 'templates/**/*.*', included: false}, {pattern: 'templates/**/*.*'},
{pattern: 'common/templates/**/*.*', included: false} {pattern: 'common/templates/**/*.*'}
], ],
runAndConfigFiles: [ runFiles: [
{pattern: path.join(configModule.appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true}, {pattern: 'coffee/spec/main_squire.js', included: true}
'coffee/spec/main_squire.js'
] ]
}; };
......
...@@ -10,8 +10,6 @@ var configModule = require(path.join(__dirname, 'common_static/common/js/karma.c ...@@ -10,8 +10,6 @@ var configModule = require(path.join(__dirname, 'common_static/common/js/karma.c
var files = { var files = {
libraryFiles: [ libraryFiles: [
{pattern: path.join(configModule.appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true},
{pattern: 'common_static/js/vendor/jquery.min.js', included: true}, {pattern: 'common_static/js/vendor/jquery.min.js', included: true},
{pattern: 'common_static/js/test/i18n.js', included: true}, {pattern: 'common_static/js/test/i18n.js', included: true},
{pattern: 'common_static/coffee/src/ajax_prefix.js', included: true}, {pattern: 'common_static/coffee/src/ajax_prefix.js', included: true},
...@@ -40,11 +38,11 @@ var files = { ...@@ -40,11 +38,11 @@ var files = {
{pattern: 'common_static/js/vendor/moment.min.js', included: true}, {pattern: 'common_static/js/vendor/moment.min.js', included: true},
{pattern: 'spec/main_requirejs.js', included: true}, {pattern: 'spec/main_requirejs.js', included: true},
{pattern: 'src/word_cloud/d3.min.js', included: true}, {pattern: 'src/word_cloud/d3.min.js', included: true},
{pattern: 'common_static/js/vendor/draggabilly.js', included: false}, {pattern: 'common_static/js/vendor/draggabilly.js'},
{pattern: 'common_static/edx-ui-toolkit/js/utils/global-loader.js', included: true}, {pattern: 'common_static/edx-ui-toolkit/js/utils/global-loader.js', included: true},
{pattern: 'common_static/edx-pattern-library/js/modernizr-custom.js', included: false}, {pattern: 'common_static/edx-pattern-library/js/modernizr-custom.js'},
{pattern: 'common_static/edx-pattern-library/js/afontgarde.js', included: false}, {pattern: 'common_static/edx-pattern-library/js/afontgarde.js'},
{pattern: 'common_static/edx-pattern-library/js/edx-icons.js', included: false} {pattern: 'common_static/edx-pattern-library/js/edx-icons.js'}
], ],
sourceFiles: [ sourceFiles: [
...@@ -58,10 +56,10 @@ var files = { ...@@ -58,10 +56,10 @@ var files = {
], ],
fixtureFiles: [ fixtureFiles: [
{pattern: 'fixtures/*.*', included: false, served: true} {pattern: 'fixtures/*.*'}
], ],
runAndConfigFiles: [ runFiles: [
{pattern: 'karma_runner.js', included: true} {pattern: 'karma_runner.js', included: true}
] ]
}; };
......
...@@ -296,11 +296,15 @@ var configure = function(data) { ...@@ -296,11 +296,15 @@ var configure = function(data) {
var files = _.flatten( var files = _.flatten(
_.map( _.map(
['libraryFiles', 'sourceFiles', 'specFiles', 'fixtureFiles', 'runAndConfigFiles'], ['libraryFiles', 'sourceFiles', 'specFiles', 'fixtureFiles', 'runFiles'],
function(item) { return data.files[item]; } function(item) { return data.files[item] || []; }
) )
); );
files.unshift(
{pattern: path.join(appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true}
);
files = setDefaults(files); files = setDefaults(files);
// With nocache=true, Karma always serves the latest files from disk. // With nocache=true, Karma always serves the latest files from disk.
......
...@@ -9,8 +9,6 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k ...@@ -9,8 +9,6 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k
var files = { var files = {
libraryFiles: [ libraryFiles: [
{pattern: path.join(configModule.appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true},
{pattern: 'js/vendor/jquery.min.js', included: true}, {pattern: 'js/vendor/jquery.min.js', included: true},
{pattern: 'js/vendor/jasmine-imagediff.js', included: true}, {pattern: 'js/vendor/jasmine-imagediff.js', included: true},
{pattern: 'js/libs/jasmine-waituntil.js', included: true}, {pattern: 'js/libs/jasmine-waituntil.js', included: true},
...@@ -48,12 +46,9 @@ var files = { ...@@ -48,12 +46,9 @@ var files = {
], ],
fixtureFiles: [ fixtureFiles: [
{pattern: 'js/fixtures/**/*.html', included: false}, {pattern: 'js/fixtures/**/*.html'},
{pattern: 'js/capa/fixtures/**/*.html', included: false}, {pattern: 'js/capa/fixtures/**/*.html'},
{pattern: 'common/templates/**/*.underscore', included: false} {pattern: 'common/templates/**/*.underscore'}
],
runAndConfigFiles: [
] ]
}; };
......
...@@ -10,43 +10,42 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k ...@@ -10,43 +10,42 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k
var files = { var files = {
libraryFiles: [ libraryFiles: [
{pattern: 'js/vendor/jquery.min.js', included: false}, {pattern: 'js/vendor/jquery.min.js'},
{pattern: 'js/vendor/jasmine-imagediff.js', included: false}, {pattern: 'js/vendor/jasmine-imagediff.js'},
{pattern: 'js/libs/jasmine-stealth.js', included: false}, {pattern: 'js/libs/jasmine-stealth.js'},
{pattern: 'js/libs/jasmine-waituntil.js', included: false}, {pattern: 'js/libs/jasmine-waituntil.js'},
{pattern: 'js/libs/jasmine-extensions.js', included: false}, {pattern: 'js/libs/jasmine-extensions.js'},
{pattern: 'js/vendor/jquery.simulate.js', included: false}, {pattern: 'js/vendor/jquery.simulate.js'},
{pattern: 'js/vendor/jquery.truncate.js', included: false}, {pattern: 'js/vendor/jquery.truncate.js'},
{pattern: 'common/js/vendor/underscore.js', included: false}, {pattern: 'common/js/vendor/underscore.js'},
{pattern: 'common/js/vendor/underscore.string.js', included: false}, {pattern: 'common/js/vendor/underscore.string.js'},
{pattern: 'common/js/vendor/backbone.js', included: false}, {pattern: 'common/js/vendor/backbone.js'},
{pattern: 'js/vendor/backbone.paginator.min.js', included: false}, {pattern: 'js/vendor/backbone.paginator.min.js'},
{pattern: 'js/vendor/jquery.timeago.js', included: false}, {pattern: 'js/vendor/jquery.timeago.js'},
{pattern: 'js/vendor/URI.min.js', included: false}, {pattern: 'js/vendor/URI.min.js'},
{pattern: 'coffee/src/ajax_prefix.js', included: false}, {pattern: 'coffee/src/ajax_prefix.js'},
{pattern: 'js/test/add_ajax_prefix.js', included: false}, {pattern: 'js/test/add_ajax_prefix.js'},
{pattern: 'js/test/i18n.js', included: false}, {pattern: 'js/test/i18n.js'},
{pattern: 'coffee/src/jquery.immediateDescendents.js', included: false}, {pattern: 'coffee/src/jquery.immediateDescendents.js'},
{pattern: 'js/vendor/requirejs/text.js', included: false}, {pattern: 'js/vendor/requirejs/text.js'},
{pattern: 'js/vendor/sinon-1.17.0.js', included: false}, {pattern: 'js/vendor/sinon-1.17.0.js'},
{pattern: 'common/js/utils/require-serial.js', included: true} {pattern: 'common/js/utils/require-serial.js', included: true}
], ],
sourceFiles: [ sourceFiles: [
{pattern: 'common/js/**/!(*spec).js', included: false} {pattern: 'common/js/**/!(*spec).js'}
], ],
specFiles: [ specFiles: [
{pattern: 'common/js/spec/**/*spec.js', included: false} {pattern: 'common/js/spec/**/*spec.js'}
], ],
fixtureFiles: [ fixtureFiles: [
{pattern: 'common/templates/**/*.*', included: false} {pattern: 'common/templates/**/*.*'}
], ],
runAndConfigFiles: [ runFiles: [
{pattern: path.join(configModule.appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true}, {pattern: 'common/js/spec/main_requirejs.js', included: true}
'common/js/spec/main_requirejs.js'
] ]
}; };
......
...@@ -9,48 +9,42 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k ...@@ -9,48 +9,42 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k
var files = { var files = {
libraryFiles: [ libraryFiles: [
{pattern: 'xmodule_js/common_static/js/test/i18n.js', included: false}, {pattern: 'xmodule_js/common_static/js/test/i18n.js'},
{pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js', included: false}, {pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js'},
{pattern: 'xmodule_js/common_static/js/src/logger.js', included: false}, {pattern: 'xmodule_js/common_static/js/src/logger.js'},
{pattern: 'xmodule_js/common_static/js/vendor/requirejs/require.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/requirejs/require.js'},
{pattern: 'js/RequireJS-namespace-undefine.js', included: false}, {pattern: 'js/RequireJS-namespace-undefine.js'},
{pattern: 'xmodule_js/common_static/js/vendor/requirejs/text.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/requirejs/text.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js', included: true}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/jquery-ui.min.js', included: true}, {pattern: 'xmodule_js/common_static/js/vendor/jquery-ui.min.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.simulate.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.simulate.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.cookie.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.cookie.js'},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.timeago.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.timeago.js'},
{pattern: 'xmodule_js/common_static/js/vendor/flot/jquery.flot.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/flot/jquery.flot.js'},
{pattern: 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/CodeMirror/codemirror.js'},
{pattern: 'xmodule_js/common_static/js/vendor/URI.min.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/URI.min.js'},
{ {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js'},
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.fileupload.js', {pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js'},
included: false {pattern: 'xmodule_js/common_static/js/vendor/url.min.js'},
}, {pattern: 'xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js'},
{ {pattern: 'xmodule_js/common_static/js/xblock/**/*.js'},
pattern: 'xmodule_js/common_static/js/vendor/jQuery-File-Upload/js/jquery.iframe-transport.js', {pattern: 'xmodule_js/common_static/coffee/src/xblock/**/*.js'},
included: false {pattern: 'coffee/src/instructor_dashboard/**/*.js'},
}, {pattern: 'xmodule_js/common_static/js/vendor/sinon-1.17.0.js'},
{pattern: 'xmodule_js/common_static/js/vendor/url.min.js', included: false}, {pattern: 'xmodule_js/src/capa/**/*.js'},
{pattern: 'xmodule_js/common_static/coffee/src/jquery.immediateDescendents.js', included: false}, {pattern: 'xmodule_js/src/video/**/*.js'},
{pattern: 'xmodule_js/common_static/js/xblock/**/*.js', included: false}, {pattern: 'xmodule_js/src/xmodule.js'},
{pattern: 'xmodule_js/common_static/coffee/src/xblock/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/js/src/**/*.js'},
{pattern: 'coffee/src/instructor_dashboard/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/underscore.js'},
{pattern: 'xmodule_js/common_static/js/vendor/sinon-1.17.0.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/underscore.string.js'},
{pattern: 'xmodule_js/src/capa/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/vendor/backbone.js'},
{pattern: 'xmodule_js/src/video/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/backbone.paginator.min.js'},
{pattern: 'xmodule_js/src/xmodule.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/edxnotes/annotator-full.min.js'},
{pattern: 'xmodule_js/common_static/js/src/**/*.js', included: false}, {pattern: 'xmodule_js/common_static/js/test/i18n.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/underscore.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/date.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/underscore.string.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/moment.min.js'},
{pattern: 'xmodule_js/common_static/common/js/vendor/backbone.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/moment-with-locales.min.js'},
{pattern: 'xmodule_js/common_static/js/vendor/backbone.paginator.min.js', included: false}, {pattern: 'xmodule_js/common_static/common/js/utils/edx.utils.validate.js'},
{pattern: 'xmodule_js/common_static/js/vendor/edxnotes/annotator-full.min.js', included: false},
{pattern: 'xmodule_js/common_static/js/test/i18n.js', included: false},
{pattern: 'xmodule_js/common_static/js/vendor/date.js', included: false},
{pattern: 'xmodule_js/common_static/js/vendor/moment.min.js', included: false},
{pattern: 'xmodule_js/common_static/js/vendor/moment-with-locales.min.js', included: false},
{pattern: 'xmodule_js/common_static/common/js/utils/edx.utils.validate.js', included: false},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.event.drag-2.2.js', included: true}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.event.drag-2.2.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/slick.core.js', included: true}, {pattern: 'xmodule_js/common_static/js/vendor/slick.core.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/slick.grid.js', included: true}, {pattern: 'xmodule_js/common_static/js/vendor/slick.grid.js', included: true},
...@@ -60,50 +54,49 @@ var files = { ...@@ -60,50 +54,49 @@ var files = {
], ],
sourceFiles: [ sourceFiles: [
{pattern: 'js/**/!(*spec).js', included: false}, {pattern: 'js/**/!(*spec).js'},
{pattern: 'coffee/src/**/*.js', included: false}, {pattern: 'coffee/src/**/*.js'},
{pattern: 'common/js/**/*.js', included: false}, {pattern: 'common/js/**/*.js'},
{pattern: 'edx-pattern-library/js/**/*.js', included: false}, {pattern: 'edx-pattern-library/js/**/*.js'},
{pattern: 'edx-ui-toolkit/js/**/*.js', included: false}, {pattern: 'edx-ui-toolkit/js/**/*.js'},
{pattern: 'support/js/**/!(*spec).js', included: false}, {pattern: 'support/js/**/!(*spec).js'},
{pattern: 'teams/js/**/!(*spec).js', included: false}, {pattern: 'teams/js/**/!(*spec).js'},
{pattern: 'xmodule_js/common_static/coffee/**/*.js', included: false} {pattern: 'xmodule_js/common_static/coffee/**/*.js'}
], ],
specFiles: [ specFiles: [
{pattern: 'js/spec/**/*spec.js', included: false}, {pattern: 'js/spec/**/*spec.js'},
{pattern: 'teams/js/spec/**/*spec.js', included: false}, {pattern: 'teams/js/spec/**/*spec.js'},
{pattern: 'support/js/spec/**/*spec.js', included: false} {pattern: 'support/js/spec/**/*spec.js'}
], ],
fixtureFiles: [ fixtureFiles: [
{pattern: 'js/fixtures/**/*.html', included: false}, {pattern: 'js/fixtures/**/*.html'},
{pattern: 'templates/instructor/instructor_dashboard_2/**/*.*', included: false}, {pattern: 'templates/instructor/instructor_dashboard_2/**/*.*'},
{pattern: 'templates/dashboard/**/*.*', included: false}, {pattern: 'templates/dashboard/**/*.*'},
{pattern: 'templates/edxnotes/**/*.*', included: false}, {pattern: 'templates/edxnotes/**/*.*'},
{pattern: 'templates/fields/**/*.*', included: false}, {pattern: 'templates/fields/**/*.*'},
{pattern: 'templates/student_account/**/*.*', included: false}, {pattern: 'templates/student_account/**/*.*'},
{pattern: 'templates/student_profile/**/*.*', included: false}, {pattern: 'templates/student_profile/**/*.*'},
{pattern: 'templates/verify_student/**/*.*', included: false}, {pattern: 'templates/verify_student/**/*.*'},
{pattern: 'templates/file-upload.underscore', included: false}, {pattern: 'templates/file-upload.underscore'},
{pattern: 'templates/components/header/**/*.*', included: false}, {pattern: 'templates/components/header/**/*.*'},
{pattern: 'templates/components/tabbed/**/*.*', included: false}, {pattern: 'templates/components/tabbed/**/*.*'},
{pattern: 'templates/components/card/**/*.*', included: false}, {pattern: 'templates/components/card/**/*.*'},
{pattern: 'templates/financial-assistance/**/*.*', included: false}, {pattern: 'templates/financial-assistance/**/*.*'},
{pattern: 'templates/search/**/*.*', included: false}, {pattern: 'templates/search/**/*.*'},
{pattern: 'templates/discovery/**/*.*', included: false}, {pattern: 'templates/discovery/**/*.*'},
{pattern: 'common/templates/**/*.*', included: false}, {pattern: 'common/templates/**/*.*'},
{pattern: 'teams/templates/**/*.*', included: false}, {pattern: 'teams/templates/**/*.*'},
{pattern: 'support/templates/**/*.*', included: false}, {pattern: 'support/templates/**/*.*'},
{pattern: 'templates/bookmarks/**/*.*', included: false}, {pattern: 'templates/bookmarks/**/*.*'},
{pattern: 'templates/learner_dashboard/**/*.*', included: false}, {pattern: 'templates/learner_dashboard/**/*.*'},
{pattern: 'templates/ccx/**/*.*', included: false}, {pattern: 'templates/ccx/**/*.*'},
{pattern: 'templates/commerce/receipt.underscore', included: false}, {pattern: 'templates/commerce/receipt.underscore'},
{pattern: 'templates/api_admin/**/*.*', included: false} {pattern: 'templates/api_admin/**/*.*', included: false}
], ],
runAndConfigFiles: [ runFiles: [
{pattern: path.join(configModule.appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true},
{pattern: 'js/spec/main.js', included: true} {pattern: 'js/spec/main.js', included: true}
] ]
}; };
......
...@@ -10,8 +10,6 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k ...@@ -10,8 +10,6 @@ var configModule = require(path.join(__dirname, '../../common/static/common/js/k
var files = { var files = {
libraryFiles: [ libraryFiles: [
{pattern: path.join(configModule.appRoot, 'common/static/common/js/jasmine.common.conf.js'), included: true},
{pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js', included: true}, {pattern: 'xmodule_js/common_static/js/vendor/jquery.min.js', included: true},
{pattern: 'xmodule_js/common_static/js/test/i18n.js', included: true}, {pattern: 'xmodule_js/common_static/js/test/i18n.js', included: true},
{pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js', included: true}, {pattern: 'xmodule_js/common_static/coffee/src/ajax_prefix.js', included: true},
...@@ -36,11 +34,11 @@ var files = { ...@@ -36,11 +34,11 @@ var files = {
{pattern: 'xmodule_js/src/capa/*.js', included: true}, {pattern: 'xmodule_js/src/capa/*.js', included: true},
{pattern: 'xmodule_js/src/video/*.js', included: true}, {pattern: 'xmodule_js/src/video/*.js', included: true},
{pattern: 'xmodule_js/src/xmodule.js', included: true}, {pattern: 'xmodule_js/src/xmodule.js', included: true},
{pattern: 'xmodule_js/common_static/js/vendor/draggabilly.js', included: false}, {pattern: 'xmodule_js/common_static/js/vendor/draggabilly.js'},
{pattern: 'xmodule_js/common_static/edx-ui-toolkit/js/utils/global-loader.js', included: true}, {pattern: 'xmodule_js/common_static/edx-ui-toolkit/js/utils/global-loader.js', included: true},
{pattern: 'xmodule_js/common_static/edx-pattern-library/js/modernizr-custom.js', included: false}, {pattern: 'xmodule_js/common_static/edx-pattern-library/js/modernizr-custom.js'},
{pattern: 'xmodule_js/common_static/edx-pattern-library/js/afontgarde.js', included: false}, {pattern: 'xmodule_js/common_static/edx-pattern-library/js/afontgarde.js'},
{pattern: 'xmodule_js/common_static/edx-pattern-library/js/edx-icons.js', included: false} {pattern: 'xmodule_js/common_static/edx-pattern-library/js/edx-icons.js'}
], ],
sourceFiles: [ sourceFiles: [
...@@ -53,9 +51,6 @@ var files = { ...@@ -53,9 +51,6 @@ var files = {
fixtureFiles: [ fixtureFiles: [
{pattern: 'coffee/fixtures/**/*.*', included: true} {pattern: 'coffee/fixtures/**/*.*', included: true}
],
runAndConfigFiles: [
] ]
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment