Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
azu さんのespowerun.jsをキックするwindows用シェルスクリプト c.f.
@echo off
if "%1"=="" (
echo "Usage: ./espowerun.cmd path/to/test.js"
set tmpname=
set tmpdir=
FOR /L %%i IN (0 1 100) DO (
if not exist tmp%%i (
set tmpname=%%i
set tmpdir=tmp%%i
goto found
mkdir %tmpdir%
node %~dp0\espowerun.js "%1" > %tmpdir%\%tmpname%.js
node /path/to/mocha/bin/mocha %tmpdir%
del /F /Q %tmpdir%
rmdir %tmpdir%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment