yeoman / generator-webapp_DEPRECATED

Yeoman generator that scaffolds out a front-end web app
http://yeoman.io
974 stars 310 forks source link

JavaScript files with multiple dots are truncated in babel. #593

Closed SunburnedGoose closed 9 years ago

SunburnedGoose commented 9 years ago

The preference for naming conventions in my scripts folder are files with multiple dots in the name:

When these files are processed by babel, only the prefixed is retained:

This will cause a problem when loading my page with 'grunt server' as the babel processed files will not be loaded by my webpage, and instead I'm getting the ES2015 content and the error messages.

If I comment out line 147 in the Gruntfile.js and remove the ext: '.js' from the babel dist configuration, then I can keep my full file name in the grunt processed files.

addyosmani commented 9 years ago

I haven't been able to verify this locally, but if this is indeed the case it appears like it would be an issue upstream with grunt-babel or babel. @silvenon are you able to repro?

SunburnedGoose commented 9 years ago

2015-08-23_060736

Just a sanity check. I just generated a new app, added a file to the /script folder with multiple dots in the name. The app fails when I run grunt serve.

sindresorhus commented 9 years ago

Working as intended (by grunt). Read the grunt docs. This can be solved with the extDot option.

SunburnedGoose commented 9 years ago

Thanks!

On Sun, Aug 23, 2015 at 11:30 AM Sindre Sorhus notifications@github.com wrote:

Closed #593 https://github.com/yeoman/generator-webapp/issues/593.

— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-webapp/issues/593#event-389840754.