-
Notifications
You must be signed in to change notification settings - Fork 833
Description
Hey guys, i'm experiencing some minor problems building on windows.
1)"npm run build" produces:
"'rm' is not recognized as an internal or external command"
2)"npm run test" produces
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
SyntaxError: missing ) after argument list
(i changed it to "babel-node --inspect ./tests/index.js")
3)"npm run lint" generates line-breaks errors (see screenshot)

Adding "linebreak-style": ["error", "windows"] to "rules" object in both .eslintrc files fixing it but build will fail on travis with previously mentioned error (line-breaks).
4)Running "npm run build" inside showcase folder produces:
'NODE_ENV' is not recognized as an internal or external command,
(i changed it to "set NODE_ENV=production&&.\node_modules\.bin\webpack")
5)I'm unable to build showcase on windows, for some reason paths resolution doesnt work,

i've tried to create alias inside webpack config which will point to outer index.js
resolve: {
alias: {
// 'index':path.join(__dirname,'..', 'src', 'index.js'),
// 'theme':path.join(__dirname,'..', 'src', 'theme.js')
}
},
but now it generates different list of errors,

I have been able to fix all problems except last one, maybe somebody knows some quick fix, otherwise i will have to create alias for each file in src. Thank you!