yui / shifter

New YUI build tool based on Gearjs, so let's shift some gears
http://yui.github.com/shifter/
Other
77 stars 58 forks source link

Shifter doesn't start building until you press ENTER on Windows #137

Closed danowar2k closed 3 years ago

danowar2k commented 7 years ago

Shifter doesn't start in Windows until you press enter, but never reports that. You could either report that you have to press ENTER to start or fix the behaviour by doing the below:

walk.js Lines 146ff

        run = function () {
            var mod = mods.pop(), child;
            if (mod) {
                var stdioValue = [process.stdin, 'ignore', process.stderr];
                if (process.platform == "win32") {
                    stdioValue = 'ignore';
                }
                child = spawn(process.execPath, args, {
                    cwd: path.join(shifter.cwd(), mod),
                    stdio: stdioValue
                });

Just ignore stdin when using win32 so that you don't have to press enter to start shifter...

danowar2k commented 3 years ago

Moodle doesn't use Shifter anymore, so I don't care anymore.