同步操作将从 OpenHarmony/third_party_jsframework 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The JSFramework is a framework for building mobile cross-platform UI written in TypeScript.
runtime/
:all source code
./main/
:JS bundle parsing, data methods, event methods, reactivity, etc../preparation/
:JS framework initialization./utils/
:some utils./vdom/
:VM compilationtest/ut/
:unit test file.eslintrc
:eslint configureBUILD.gn
:compiling file of JS UI framework for NinjaJSbuild.js
:build JS frameworkjs_framework_build.sh
:script file for JS framework buildingLICENSE
:Apache LicenseNOTICE
:third party open source software noticepackage.json
:define what libraries will be installed into node_modules when you run npm install
tsconfig.json
:the compiler options required to compile the projectHere are simplified instructions to how to get started. The following commands are the same both on Windows and Mac platforms.
Please make sure that the following commands work before trying to build:
> npm -v
6.14.8
> node -v
v12.18.3
Your npm
and node
should be of a later version. You can upgrade them to the latest stable version.
RollUp tool for packaging has been configured in build.js
. So after the preceding conditions are met, we can start installing right now.
First, we go to the root directory of the project:
cd ..
cd third_party/jsframework/
And then install the dependencies:
npm install
Note: If some errors occur, delete the generated package node_modules
and run npm install
again.
There are two ways for building JS framework:
1. npm run build
2. in the root dir: run the build.sh script, which is built by gn
You can config more babel and ESLint plugins in .eslintrc
. You'd better make sure there are no errors of esLint rules after you change them.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。