@oniroproject/core 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 +25 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @oniroproject/core
|
|
2
|
+
|
|
3
|
+
Shared library powering the Oniro/OpenHarmony app-development toolchain. Wraps SDK install, command-line tools install, project scaffolding, signing-config generation, `hvigorw` builds, emulator lifecycle, `hdc` install/launch, and hilog streaming — all behind a vscode-agnostic API that runs on Linux, macOS, and Windows.
|
|
4
|
+
|
|
5
|
+
This package backs [`@oniroproject/oniro-app`](https://www.npmjs.com/package/@oniroproject/oniro-app) (the `oniro-app` CLI). If you just want to build/run Oniro apps from a shell, install the CLI; install this library directly if you're embedding the same functionality into an editor extension or another tool.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @oniroproject/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Requires Node.js 20+.
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { installSdk, signProject, buildProject } from '@oniroproject/core';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The exported surface mirrors what the CLI exposes — SDK/cmd-tools/emulator install + lifecycle, project create, sign, build, hdc install/launch, hilog parsing. See the [repository README](https://github.com/eclipse-oniro4openharmony/oniro-app-builder#readme) for the high-level workflow.
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
Apache-2.0
|
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED