Open MicheleMannino opened 9 years ago
Hello,
I want to know why grunt-template-jasmine-istanbul ignores functions defined into define block using require.js (see the image below).
Here it is grunt task definition:
coverage: { src: [ '<%= meta.src.main %>/js/AppEngine.js', '<%= meta.src.main %>/js/construct.js', '<%= meta.src.main %>/js/backboneBreadcrumbs.js', '<%= meta.src.main %>/js/breadcrumbs.js', '!<%= meta.src.main %>/js/main.js', '!<%= meta.src.main %>/js/signin.js', '!<%= meta.src.main %>/js/smartGroups.js', '!<%= meta.src.main %>/js/userInfo.js', '!<%= meta.src.main %>/js/dashboard.js' ], options: { specs: '<%= meta.src.test %>/javascript/*.js', template: require('grunt-template-jasmine-istanbul'), templateOptions: { coverage: '<%= meta.bin.coverage %>/coverage.json', report: [ { type: 'html', options: { dir: '<%= meta.bin.coverage %>/html' } }, { type: 'cobertura', options: { dir: '<%= meta.bin.coverage %>/cobertura' } }, { type: 'text-summary' } ], template: require('grunt-template-jasmine-requirejs'), templateOptions: { requireConfig: { baseUrl: '<%= meta.src.main %>/', paths: { 'jquery': 'assets/jquery-2.1.1.min', 'underscore': 'assets/underscore-1.3.3.min', 'backbone': 'assets/backbone-min-1.1.2', 'bootstrap': 'assets/bootstrap/js/bootstrap.min', 'blockUI' : 'assets/jquery.blockUI', 'mCustomScroller' : 'assets/mCustomScrollbar/jquery.mCustomScrollbar', 'construct': 'js/construct', 'app': 'js/app', 'api': 'js/api', 'AppEngine': 'js/AppEngine', 'breadcrumbs': 'js/breadcrumbs', 'backboneBreadcrumbs': 'js/backboneBreadcrumbs' }, shim: { 'underscore': { exports: '_' }, 'backbone': { deps: ["underscore", "jquery"], exports: 'Backbone' }, "bootstrap": { deps: ["jquery"] }, "AppEngine": { exports: 'AppEngine' }, "mCustomScroller" : { deps : ["jquery"] } } } } } } } }
Thanks in advance!
-Michele
Hello,
I want to know why grunt-template-jasmine-istanbul ignores functions defined into define block using require.js (see the image below).
Here it is grunt task definition:
Thanks in advance!
-Michele