chore: Add on the fly transpiled bin

Adds an alternative bin file that does not require building the project but
loads the source files directly.

Change-type: minor
Signed-off-by: Thodoris Greasidis <thodoris@balena.io>
This commit is contained in:
Thodoris Greasidis 2018-10-21 20:18:00 +02:00
parent c293a1742d
commit 24c2ffefc9
2 changed files with 16 additions and 1 deletions

15
bin/resin-dev Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env node
// ****************************************************************************
// THIS IS FOR DEV PERROSES ONLY AND WILL NOT BE PART OF THE PUBLISHED PACKAGE
// Before opening a PR you should build and test your changes using bin/resin
// ****************************************************************************
// We boost the threadpool size as ext2fs can deadlock with some
// operations otherwise, if the pool runs out.
process.env.UV_THREADPOOL_SIZE = '64';
process.env['TS_NODE_PROJECT'] = require('path').dirname(__dirname);
require('coffeescript/register');
require('ts-node/register');
require('../lib/app');

View File

@ -10,7 +10,7 @@
},
"preferGlobal": true,
"files": [
"bin/",
"bin/resin",
"build/",
"doc/",
"lib/"