Registry / devops / kuikly-ohos-compile-plugin

kuikly-ohos-compile-plugin

JSON →
library0.0.1-alpha.7jsnpmunverified

A plugin for unified compilation with Android Studio and DevEco Studio in Kuikly projects. Current version is 0.0.1-alpha.7, alpha status with no fixed release cadence. Key differentiators: integrates Kuikly project compilation into Ohos (OpenHarmony) build pipeline, supports copying assets and configuring native library paths. Low-level tooling, requires manual plugin registration and local.properties configuration.

npm install kuikly-ohos-compile-plugin
INSTALL
IMPORT
SIG · KUIKLY-OHOS-COMPIL
K
kuikly-ohos-compile-plugin
devopsjavascriptv0.0.1-alpha.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

kuiklyCompilePlugin
import { kuiklyCompilePlugin } from 'kuikly-ohos-compile-plugin';
const { kuiklyCompilePlugin } = require('kuikly-ohos-compile-plugin');
Only ESM imports are supported; CJS require will fail.
kuiklyCopyAssetsPlugin
import { kuiklyCopyAssetsPlugin } from 'kuikly-ohos-compile-plugin';
import kuiklyCopyAssetsPlugin from 'kuikly-ohos-compile-plugin';
Named export only; default import will be undefined.
default export
Not available; use named exports.
import KuiklyPlugin from 'kuikly-ohos-compile-plugin';
Package has no default export.

Shows registration of both compile and copy assets plugins in a hvigorfile.ts with required imports.

// In hvigorfile.ts of ohos project entry module import { kuiklyCompilePlugin, kuiklyCopyAssetsPlugin } from 'kuikly-ohos-compile-plugin'; export default { // ... other config plugins: [ kuiklyCompilePlugin(), kuiklyCopyAssetsPlugin({ assetsPath: process.env.KUIKLY_ASSETS_PATH ?? '/path/to/assets' }) ] };
Debug
Known issues
deprecatedPlugin configuration uses local.properties which may be deprecated in future Hvigor versions.
fix
Monitor Hvigor updates and migrate to new configuration format if provided.
affects: >=0.0.1
breakingAlpha version potentially breaking changes without migration guides.
fix
Pin to a specific version and test upgrades thoroughly.
affects: >=0.0.0
gotchaRequires registry=https://registry.npmjs.org/ in .ohpmrc for dependency resolution.
fix
Ensure .ohpmrc contains the correct registry entry.
affects: >=0.0.1
gotchaMandatory local.properties keys: kuikly.projectPath, kuikly.moduleName, kuikly.ohosGradleSettings. Missing these causes build failure.
fix
Add all required properties to local.properties.
affects: >=0.0.1
gotchaPlugin functions must be called (e.g., kuiklyCompilePlugin()) not passed as references.
fix
Add parentheses: kuiklyCompilePlugin() instead of kuiklyCompilePlugin.
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find module 'kuikly-ohos-compile-plugin'
Ohos project not configured with npm registry in .ohpmrc or dependency not added.
fix
Add 'kuikly-ohos-compile-plugin': 'latest' to hvigor/hvigor-config.json5 dependencies and set registry in .ohpmrc.
Property 'kuikly.projectPath' not set
Missing mandatory local.properties entries.
fix
Add kuikly.projectPath, kuikly.moduleName, and kuikly.ohosGradleSettings to local.properties.
TypeError: kuikly_ohos_compile_plugin_1.kuiklyCompilePlugin is not a function
Using wrong import style or incorrect symbol name.
fix
Use import { kuiklyCompilePlugin } from 'kuikly-ohos-compile-plugin' and call it as kuiklyCompilePlugin().
Upgrade
Version history
0.0.1-alpha.7latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
kuikly-ohos-compile-plugin — npm install kuikly-ohos-compile-plugin · libregistry