devtool
devtool copied to clipboard
Improving Windows Support
Just tried on Windows and wow, I feel sorry for anybody developing on that OS. :cry:
- [x] Disable web security by default for
index.html
to work on first run - [ ] Source maps are not working
- [ ] All tests are failing because
cross-spawn
stdout is for some reason returning a zero length string (although it prints in terminal). Switching tochild_process#spawn
is throwing another error. - [ ] Can't use any piping like
devtool foo.js > output.png
with default cmd.exe - [ ] Can't use
./bin/index.js
to run the examples in run scripts
Probably lots of other issues. But mostly the tool is working for debugging Node apps, which is a good start. :+1:
I'm living this hell ...
C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:127 Error: Implement me. Unknown stdin file type!(…)(anonymous function) @ C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:127Module._compile @ module.js:425Module._extensions..js @ module.js:432Module.load @ module.js:356Module._load @ module.js:313Module.runMain @ module.js:457startup @ node.js:151(anonymous function) @ node.js:1007
C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:128 Error: Implement me. Unknown stdin file type!
at process.stdin (node.js:747)
at hookProcess (C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\lib\preload.js:117)
at C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\lib\preload.js:29
at Object.<anonymous> (C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\lib\preload.js:129)
at Module._compile (module.js:425)
at Object.Module._extensions..js (module.js:432)
at Module.load (module.js:356)
at Function.Module._load (module.js:313)
at Module.require (module.js:366)
at require (module.js:385)(anonymous function) @ C:\Users\rafael\AppData\Roaming\npm\node_modules\devtool\node_modules\electron-prebuilt\dist\resour…:128Module._compile @ module.js:425Module._extensions..js @ module.js:432Module.load @ module.js:356Module._load @ module.js:313Module.runMain @ module.js:457startup @ node.js:151(anonymous function) @ node.js:1007
Can you create a new issue with some more details on how to reproduce the issue? Thanks!
It's done! https://github.com/Jam3/devtool/issues/42
@rafaelcastrocouto Like an answer for "The Ultimate Question of Life, the Universe, and Everything" :smile:
:whale2:
Tried latest version on Windows. It is a bit unstable and slow and I can't use sourcemap unfortunately. Any known workaround for the sourcemap?
It would be a perfect tool in case you fix sourcemaps. At the moment source maps don't work for me on windows 10. I see only compiled code when run devtool -r babel-register ./es6-code
. Please fix it if it's possible. And thanks a lot for your amazing work.