mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-24 07:46:39 +00:00
Package the CLI into a standalone runnable binary
This has no native modules yet, which means it works on Linux, but ignoring any ext4 image data. Drivelist will fail for some windows operations, but most other things should work. This is only building a folder with a runnable binary, this needs packaging before it can be distributable. Change-Type: minor
This commit is contained in:
parent
dba8db19cb
commit
7681003512
1
.gitignore
vendored
1
.gitignore
vendored
@ -35,3 +35,4 @@ resinrc.yml
|
||||
|
||||
/tmp
|
||||
build/
|
||||
build-bin/
|
||||
|
15
package.json
15
package.json
@ -18,8 +18,20 @@
|
||||
"bin": {
|
||||
"resin": "./bin/resin"
|
||||
},
|
||||
"pkg": {
|
||||
"scripts": [
|
||||
"node_modules/resin-sync/build/capitano/*.js",
|
||||
"node_modules/resin-sync/build/sync/*.js"
|
||||
],
|
||||
"assets": [
|
||||
"build/auth/pages/*.ejs"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"build": "gulp build && tsc && npm run doc",
|
||||
"prebuild": "rimraf build/ build-bin/",
|
||||
"build": "npm run build:src && npm run build:bin",
|
||||
"build:src": "gulp build && tsc && npm run doc",
|
||||
"build:bin": "pkg . -t host -o build-bin/resin && cp node_modules/opn/xdg-open build-bin/",
|
||||
"pretest": "npm run build",
|
||||
"test": "gulp test",
|
||||
"ci": "npm run test && catch-uncommitted",
|
||||
@ -48,6 +60,7 @@
|
||||
"gulp-mocha": "^2.0.0",
|
||||
"gulp-shell": "^0.5.2",
|
||||
"mochainon": "^2.0.0",
|
||||
"pkg": "^4.3.0-beta.1",
|
||||
"require-npm4-to-publish": "^1.0.0",
|
||||
"typescript": "^2.6.1"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user