mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-19 03:06:29 +00:00
Merge pull request #995 from resin-io/add-dev-bin
chore: Add on the fly transpiled bin
This commit is contained in:
commit
207e080b9e
11
README.md
11
README.md
@ -120,6 +120,17 @@ If you're having any problems, check our [troubleshooting guide](https://github.
|
||||
|
||||
You can also get in touch with us in the resin.io [forums](https://forums.resin.io/).
|
||||
|
||||
Development guidelines
|
||||
----------------------
|
||||
|
||||
After cloning this repository and running `npm install` you can build the CLI using `npm run build`.
|
||||
You can then run the generated build using `./bin/resin`.
|
||||
In order to ease development:
|
||||
* you can build the CLI using the `npm run build:fast` variant which skips some of the build steps or
|
||||
* you can use `./bin/resin-dev` which live transpiles the sources of the CLI.
|
||||
|
||||
In either case, before opening a PR make sure to also test your changes after doing a full build with `npm run build`.
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
|
15
bin/resin-dev
Executable file
15
bin/resin-dev
Executable 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');
|
@ -10,7 +10,7 @@
|
||||
},
|
||||
"preferGlobal": true,
|
||||
"files": [
|
||||
"bin/",
|
||||
"bin/resin",
|
||||
"build/",
|
||||
"doc/",
|
||||
"lib/"
|
||||
|
Loading…
Reference in New Issue
Block a user