Description
I've found a build bug on 2.1.12 when trying to run jquery/globalize tests
You can check this here:
- https://travis-ci.org/jquery/globalize/builds/25748559 (when grunt-contrib-requirejs used installed 2.1.11)
- https://travis-ci.org/jquery/globalize/builds/26097064 (with 2.1.12 through grunt-contrib-requirejs)
Note that grunt-contrib-requirejs searchs for ~2.1.0, so 2.1.12 is comming on all further npm installs till a new version release.
I did all the diffs to find what was happening and the only practical diff that have interference with this build was this require version, that adds an extra .
on namespaced methods.
JSHint exploded on that, e.g.:
Running "jshint:dist" (jshint) task
Linting dist/globalize/date.js ...ERROR
[L35:C9] W033: Missing semicolon.
var date..ArrayMap = function( array, callback ) {
[L35:C9] E030: Expected an identifier and instead saw '.'.
var date..ArrayMap = function( array, callback ) {
[L35:C10] E033: Expected an operator and instead saw '.'.
...
To double check if the problem was on requirejs, I've went to node_modules/grunt-contrib-requirejs
folder (on Globalize project), and manually installed RequireJS 2.1.11 with npm install requirejs@2.1.11
. Then the globalize build worked fine.
I'll fork/download this repo to try to help and submit a PR, till there, I think it is enough reported. :)
Cheers