openharmony_ci 20c92a0f6a !850 merge master0430 into master
优化jsMockSystemPlugin.js打包方式,解决es2abc超限问题

Created-by: zhwanghh
Commit-by: zhwanghh
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)

https://gitcode.com/openharmony/ide_previewer/issues/446

### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/third_party_jsframework!850
2026-04-30 12:41:04 +08:00
2026-01-22 17:54:16 +08:00
2022-01-26 15:46:33 +08:00
2021-09-14 15:38:47 +08:00
2021-09-14 15:38:47 +08:00
2021-12-22 18:13:34 +08:00
2022-05-28 14:45:10 +08:00
2024-07-29 17:06:15 +08:00
2025-05-22 21:22:03 +08:00
2025-05-22 21:22:03 +08:00
2021-09-14 15:38:47 +08:00
2025-05-22 21:22:03 +08:00
2021-06-02 02:29:46 +08:00
2021-06-02 02:29:46 +08:00
2023-03-24 10:04:45 +08:00
2023-06-04 20:57:22 +08:00
2022-08-27 14:34:15 +08:00
2023-03-24 10:04:45 +08:00
2021-06-02 02:29:46 +08:00
2021-09-14 15:38:47 +08:00

JSFramework

The JSFramework is a framework for building mobile cross-platform UI written in TypeScript.

File Structure

  • runtime/all source code
    • ./main/JS bundle parsing, data methods, event methods, reactivity, etc.
    • ./preparation/JS framework initialization
    • ./utils/some utils
    • ./vdom/VM compilation
  • test/ut/unit test file
  • .eslintrceslint configure
  • BUILD.gncompiling file of JS UI framework for NinjaJS
  • build_jsmock_system_plugin.js, build_strip_native_min.js: build JS framework
  • js_framework_build.shscript file for JS framework building
  • LICENSEApache License
  • NOTICEthird party open source software notice
  • package.jsondefine what libraries will be installed into node_modules when you run npm install
  • tsconfig.jsonthe compiler options required to compile the project

Usage

Here are simplified instructions to how to get started. The following commands are the same both on Windows and Mac platforms.

1. Prerequisites

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.

2. Installing

RollUp tool for packaging has been configured in build_jsmock_system_plugin.js, build_strip_native_min.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.

3. Building

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

ESLint

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.

S
Description
Third-party open-source software jsframework | 三方开源软件jsframework
Readme 5.9 MiB
Languages
TypeScript 91.1%
JavaScript 7.6%
Shell 1.3%