@oniroproject/oniro-app 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -0
- package/dist/oniro-app.js +1 -1
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# @oniroproject/oniro-app
|
|
2
|
+
|
|
3
|
+
Cross-platform CLI for Oniro/OpenHarmony application development. Drives the inner dev loop — SDK install, project scaffold, sign, build, emulator, and `hdc` install/launch — from a single binary that works on Linux, macOS, and Windows.
|
|
4
|
+
|
|
5
|
+
Designed for non-interactive use (CI, scripts, agents): every command takes explicit flags, results go to stdout, progress/logs go to stderr, and exit codes reflect success or failure.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Requires Node.js 20+. For `oniro-app sign` you also need a JDK on `PATH` (`java`, `keytool`).
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install -g @oniroproject/oniro-app
|
|
13
|
+
oniro-app --help
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Typical workflow
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
oniro-app sdk install 6.1
|
|
20
|
+
oniro-app cmdtools install
|
|
21
|
+
oniro-app create --name HelloOniro --bundle com.example.hello \
|
|
22
|
+
--location ~/projects --sdk 23
|
|
23
|
+
cd ~/projects/HelloOniro
|
|
24
|
+
oniro-app sign
|
|
25
|
+
oniro-app build
|
|
26
|
+
oniro-app emulator install
|
|
27
|
+
oniro-app emulator start
|
|
28
|
+
oniro-app app install
|
|
29
|
+
oniro-app app launch
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Documentation
|
|
33
|
+
|
|
34
|
+
Full command reference, environment-variable configuration, and Docker usage live in the [repository README](https://github.com/eclipse-oniro4openharmony/oniro-app-builder#readme).
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
Apache-2.0
|
package/dist/oniro-app.js
CHANGED
|
@@ -400,7 +400,7 @@ function registerTemplatesCommand(program) {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
// src/bin/oniro-app.ts
|
|
403
|
-
var CLI_VERSION = "0.6.
|
|
403
|
+
var CLI_VERSION = "0.6.1";
|
|
404
404
|
function buildProgram() {
|
|
405
405
|
const program = new Command2().name("oniro-app").description(
|
|
406
406
|
"Cross-platform CLI for Oniro/OpenHarmony app development.\n\nDesigned for non-interactive use (CI, scripts, agents): every command\ntakes explicit flags, results go to stdout, progress/logs go to stderr,\nand a non-zero exit code indicates failure."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oniroproject/oniro-app",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Cross-platform CLI for Oniro/OpenHarmony application development.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"clean": "rm -rf dist"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@oniroproject/core": "0.6.
|
|
27
|
+
"@oniroproject/core": "0.6.1",
|
|
28
28
|
"commander": "^12.1.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|