nodejs を使用して小さなコマンド ライン プログラムを作成しましたがnpm run test
、以下の引数を使用してプログラムを入力して実行できるようにしたいと考えています。
次のコマンドを直接入力すると機能します。
node.exe scrappee.js -u 'https://github.com/matutter/{}' -us 'cloggie, AirRocks-Flightcontroller' -s '$commit=li.commits > a > span, $sha=.right .commit-tease-sha' -pm .\test\example_parse_module.js
しかし、次のように私のpackage.jsonの内容では、出力はまったくありません。
"scripts": {
"test" : "node.exe scrappee.js -u 'https://github.com/matutter/{}' -us 'cloggie, AirRocks-Flightcontroller' -s '$commit=li.commits > a > span, $sha=.right .commit-tease-sha' -pm .\\test\\example_parse_module.js"
}
npm run test
これらの引数を使用して、scrappee.js スクリプトを実行するコマンドを取得するにはどうすればよいですか?