generator-ko
generator-ko copied to clipboard
Fixing babel transpiler errors. windows environments need to normaliz…
Tried running the generator in windows and got two different errors:
- babel-core was not added as a dev-dependency
- skipped files/folders in transpilationConfig (gulpfile.js) were not matching any files under windows due to the path separator differences between the Regex strings and the pathnames, this gives many babel transpilation errors for files in node_modules (jquery being one of the first)
I added both the babel-core npm depepdency and the normalization/conversion of backslashes to posix dir separators (by using github.com/sindresorhus/slash) before transpilation occurs.
:+1: This is ace, I spent half an hour tinkering and making it work then noticed this PR - you could have saved me half an hour had I looked before tinkering haha.
Good job in Fixing the issue! :+1:
thks, just fixed the bug