cloudchen / grunt-template-jasmine-requirejs

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

Wrong path to require.js when jasmines outfile option is specified #52

Closed schorfES closed 10 years ago

schorfES commented 10 years ago

When the outfile option for jasmine is set, the path to the require.js lib won't be correct anymore...

These settings...

{
    src: 'src/**/*.js',
    options: {
        specs: ['testing/specs/*.js'],
        keepRunner: true,
        outfile: 'testing/specs/specs.html',
        template: require('grunt-template-jasmine-requirejs'),
        templateOptions: {
            // some config...
        }
    }
}

...generate the following script pathes:

<!-- not correct -->
<script src=".grunt/grunt-contrib-jasmine/require.js"></script>

<!-- works fine -->
<script src="../../.grunt/grunt-contrib-jasmine/jasmine.js"></script>
<script src="../../.grunt/grunt-contrib-jasmine/jasmine-html.js"></script>
schorfES commented 10 years ago

Added a pull request for this issue.

cloudchen commented 10 years ago

Fixed in v0.1.10

schorfES commented 10 years ago

Great, thank you!