• Home
Name Date Size #Lines LOC

..--

mock-generate/12-May-2024-3,8582,575

runtime/12-May-2024-70,90761,067

test/12-May-2024-1,306986

.babelrcD12-May-2024145 1413

.eslintrcD12-May-20242.5 KiB10396

.gitattributesD12-May-20241

.gitignoreD12-May-202413 21

BUILD.gnD12-May-20248.9 KiB291248

LICENSED12-May-20249.5 KiB178150

NOTICED12-May-202415.1 KiB284230

OAT.xmlD12-May-2024958 246

README.OpenSourceD12-May-2024333 1211

README.mdD12-May-20242 KiB6248

build_jsmock_system_plugin.jsD12-May-20242.5 KiB9963

build_strip_native_min.jsD12-May-20242.4 KiB10064

bundle.jsonD12-May-2024723 3030

gen_snapshot.shD12-May-2024955 183

js_framework_build.shD12-May-20242.7 KiB9667

package-lock.jsonD12-May-2024350.2 KiB8,3008,299

package.jsonD12-May-20241.6 KiB5352

prebuild_env.shD12-May-20241.6 KiB5029

tsconfig.jsonD12-May-2024632 3534

tslint.jsonD12-May-2024154 88

README.OpenSource

1[
2    {
3        "Name": "weex",
4        "License": "Apache License V2.0",
5        "License File": "LICENSE",
6        "Version Number": "0.30.0",
7        "Owner": "lixingchi1@huawei.com",
8        "Upstream URL": "https://weex.apache.org",
9        "Description": "A framework for building performant mobile cross-platform UI."
10    }
11]
12

README.md

1# JSFramework
2
3**The JSFramework is a framework for building mobile cross-platform UI written in TypeScript.**
4
5## File Structure
6- `runtime/`:all source code
7  - `./main/`:JS bundle parsing, data methods, event methods, reactivity, etc.
8  - `./preparation/`:JS framework initialization
9  - `./utils/`:some utils
10  - `./vdom/`:VM compilation
11- `test/ut/`:unit test file
12- `.eslintrc`:eslint configure
13- `BUILD.gn`:compiling file of JS UI framework for NinjaJS
14- `build_jsmock_system_plugin.js, build_strip_native_min.js`: build JS framework
15- `js_framework_build.sh`:script file for JS framework building
16- `LICENSE`:Apache License
17- `NOTICE`:third party open source software notice
18- `package.json`:define what libraries will be installed into node_modules when you run `npm install`
19- `tsconfig.json`:the compiler options required to compile the project
20
21## Usage
22
23Here are simplified instructions to how to get started. The following commands are the same both on **Windows** and **Mac** platforms.
24
25### 1. Prerequisites
26
27Please make sure that the following commands work before trying to build:
28
29```
30> npm -v
31  6.14.8
32> node -v
33  v12.18.3
34```
35Your `npm` and `node` should be of a later version. You can upgrade them to the **latest stable version**.
36### 2. Installing
37
38RollUp 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.
39
40First, we go to the root directory of the project:
41```
42cd ..
43cd third_party/jsframework/
44```
45And then install the dependencies:
46```
47npm install
48```
49**Note**: If some errors occur, delete the generated package `node_modules ` and run `npm install` again.
50
51### 3. Building
52
53There are two ways for building JS framework:
54```
551. npm run build
562. in the root dir: run the build.sh script, which is built by gn
57```
58
59## ESLint
60
61You 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.**
62