Closed maxali closed 7 years ago
@maxali I can look into that in the future, but I'm not using windows so I'll not be able to test it. If you'd like you can try to create this build script yourself, please submit PR then I'll review it and add it to the project.
Submitted PR #27 to solve this.
@maxali I have investigated this suggestion and decided I'll rather use https://www.npmjs.com/package/shelljs project instead of proposed ncp. Other concerns:
mv
commands that ncp will not resolve, shelljs handle thisI'll rewrite commands entirely as node scripts, to clean up cluttered package.json.
There are some npm scripts that are using Linux special commands like:
cp
command ininit:dist
,regenerator
andpost_jspm-bundle-vendor-prod
.This will not work in Windows environment. I had to use
Cygwin
tool to use linux commands.We may create nodejs build file (build.js) which would make use of
fs
, and call it from npm scripts likenode ./build --some arguments
.Do you have any idea how we can make it cross-platform.