cloudchen / grunt-template-jasmine-requirejs

RequireJS template for grunt-contrib-jasmine task
111 stars 96 forks source link

requirejsconfig generating script error #3

Closed ssmithstone closed 11 years ago

ssmithstone commented 11 years ago

adding

templateOptions : {
                        requireConfig : {
                            paths : {

                            },
                            baseUrl: 'src/main/javascript'
                        }
                    }

to the gruntfile generates

Error: Script error http://requirejs.org/docs/errors.html#scripterror at .grunt/grunt-contrib-jasmine/require.js:31 .grunt/grunt-contrib-jasmine/require.js:14 z .grunt/grunt-contrib-jasmine/require.js:31

full grunt file is

module.exports = function(grunt){

    grunt.initConfig({
        connect: {
            test : {
              port : 8000
            }
          },
        jasmine : {

            vaa : {

                src : 'src/main/javascript/**/*.js',

                options : {
                    specs : 'src/test/javascript/**/*_spec.js',
                    junit : {

                        path : "target/jasmine-reports/"
                    },
                    template: require('grunt-template-jasmine-requirejs'),
                    templateOptions : {
                        requireConfig : {
                            paths : {

                            },
                            baseUrl: 'src/main/javascript',
                        }
                    }

                }   
            }

        }
    });
    grunt.loadNpmTasks('grunt-template-jasmine-requirejs');
    grunt.loadNpmTasks('grunt-contrib-connect');
    grunt.loadNpmTasks('grunt-contrib-jasmine');
};
jsoverson commented 11 years ago

Have you examined the generated SpecRunner? Use grunt jasmine:[your task name]:build to retain your SpecRunner and post it here if necessary. That requireConfig is just JSON stringified and that doesn't look like it would break.

ssmithstone commented 11 years ago

this can be closed was all my fault all the paths were wrong