Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding customTests leads to ENOENT: no such file or directory #39

Open
luksak opened this issue Sep 6, 2016 · 3 comments
Open

adding customTests leads to ENOENT: no such file or directory #39

luksak opened this issue Sep 6, 2016 · 3 comments

Comments

@luksak
Copy link

luksak commented Sep 6, 2016

I keep getting an error that my customTests file doesn't exist:

[15:18:03] Starting 'modernizr'...
[15:18:03] Finished 'modernizr' after 9.83 ms

>> Explicitly including these tests:
>> touchevents

Looking for Modernizr references

>> Ready to build using these settings:
>> addTest, html5printshiv, testProp, fnBind

Building your customized Modernizr{ [Error: Error: ENOENT: no such file or directory, open '/Users/user/Sites/project/web/themes/project/node_modules/modernizr/lib/../src/test/../../../../../js/utils/modernizrVideoAutoplay.js'
In module tree:
    modernizr-init

    at Error (native)
]
  originalError: 
   { [Error: ENOENT: no such file or directory, open '/Users/user/Sites/project/web/themes/project/node_modules/modernizr/lib/../src/test/../../../../../js/utils/modernizrVideoAutoplay.js']
     errno: -2,
     code: 'ENOENT',
     syscall: 'open',
     path: '/Users/user/Sites/project/web/themes/project/node_modules/modernizr/lib/../src/test/../../../../../js/utils/modernizrVideoAutoplay.js',
     fileName: '/Users/user/Sites/project/web/themes/project/node_modules/modernizr/lib/../src/test/../../../../../js/utils/modernizrVideoAutoplay.js',
     moduleTree: [ 'modernizr-init' ] } }

There is no folder src/test inside modernizr.

Here is the relevant part in my gulpfile.js:

gulp.task('modernizr', function() {
  gulp.src('./js/*.js')
    .pipe(modernizr({
      'tests' : ['touchevents'],
      'customTests': ['./js/utils/modernizrVideoAutoplay.js']
    }))
    .pipe(gulp.dest(path.modernizr.dist))
});
@pksorensen
Copy link

Same here, did you resolve this?

@luksak
Copy link
Author

luksak commented Oct 2, 2016

no, not yet...

@OlehDutchenko
Copy link

Hi there, i create my version gulp-modernizr-wezom, with customTests support.

Maybe someone came handy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants