Skip to content

Commit ceef728

Browse files
committed
[WEEX-181] rm web renderer codes and scripts (resolve apache#958)
commit f8682e4 Author: MrRaindrop <tekkahs@gmail.com> Date: Tue Dec 26 13:35:17 2017 +0800 * [html5] rm web renderer codes and scripts.
1 parent 8c6690d commit ceef728

File tree

384 files changed

+61
-51403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

384 files changed

+61
-51403
lines changed

.wwprc

Lines changed: 0 additions & 40 deletions
This file was deleted.

HOW-TO-BUILD.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,48 @@
22
Weex produce SDKs to integrate to iOS/Android/Mobile web applications. This file will cover how to build Weex from source. You can either use the script we provided or manually build from source step by step.
33
See `README.md` for further information about Weex Framework.
44

5-
Weex SDK produce 3 different SDKs to use in corresponding system/browser:
5+
Weex SDK includes 3 different SDKs to use in corresponding system/browser:
66
* Android SDK
77
* iOS SDK
8-
* Mobile Web SDK
8+
* [Mobile Web SDK](https://github.com/weexteam/weex-vue-render)
99

1010
See our [guide in our website](http://weex.apache.org/guide/integrate-to-your-app.html) to learn more about how to integrate Weex SDK to your app.
1111

1212
## Build Environment
13-
The environment required to build weex as follow:
14-
* Android SDK:
13+
The environment required to build weex as follow:
14+
* Android SDK:
1515
* NodeJS 4.0+
1616
* JDK 1.6+
1717
* Android SDK(`$ANDROID_HOME` must be set properly)
1818
* Gradle 2.0+
19-
* iOS SDK:
19+
* iOS SDK:
2020
* NodeJS 4.0+
21-
* XCode & Command Tools 8.0+
21+
* XCode & Command Tools 8.0+
2222
* Mobile web SDK:
2323
* NodeJS 4.0+
2424

2525
This article was tested in MacOSX system.
2626

2727
# Build All by Script
2828

29-
This script will build all 3 SDKs:
29+
This script will build Android and iOS SDKs:
3030
> `$ bash scripts/build_from_source.sh`
3131
3232
This's may take a while. After that, you can look into `dist/`, `android/sdk/build/output/` and `ios/sdk/Products` for Web/Android/iOS SDK artifacts.
3333

34-
3534
# Build for Platforms
3635

3736
You can build all SDKs by one script as described above, or just build for a single platform you want step by step.
3837

39-
## Build Javascript Framework and Html5 SDK
40-
Javascript Framework is required by native SDKs. **So this must be built first.**
41-
Install npm dependencies(You must have node&npm installed):
38+
## Build Javascript Framework
39+
Javascript Framework is required by native SDKs. **So this must be built first.**
40+
Install npm dependencies(You must have node&npm installed):
4241
> `$ npm install --production`
4342
44-
Install build tools:
43+
Install build tools:
4544
> `$ npm run install:buildtools`
4645
47-
Build the javascript libraries:
46+
Build the javascript libraries:
4847
> `$ npm run build:source`
4948
5049
### Before build Native SDK
@@ -60,14 +59,14 @@ execute root folder of project
6059
Create a Gradle setting file
6160
> `$ echo 'include ":android_sdk"'>settings.gradle`
6261
63-
Build the SDK
62+
Build the SDK
6463
> `$ ./gradlew :android_sdk:assemble -PasfRelease`
6564
66-
Now, you can see the artifacts under `android_sdk/build/output/`.
65+
Now, you can see the artifacts under `android_sdk/build/output/`.
6766
You can now import the aar file to your android project.
6867

6968
## Build iOS SDK
70-
Execute command below to compile iOS SDK:
69+
Execute command below to compile iOS SDK:
7170
> `$ xcodebuild -project ios_sdk/WeexSDK.xcodeproj -target WeexSDK_MTL`
7271
7372
Then you'll found iOS library(Framework file) under `ios_sdk/Products`.

POSSIBLE-NOTICES-FOR-BIN-DIST

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,6 @@ by Tom Preston-Werner , licensed under the Creative Commons - CC BY 3.0 License.
1010
This product contains software core-js(https://github.com/zloirock/core-js) developed
1111
by Denis Pushkarev , licensed under the MIT License.
1212

13-
This product contains software animaitonjs(https://github.com/MrRaindrop/animationjs) developed
14-
by mr.raindrop , licensed under the MIT License.
15-
16-
This product contains software cubicbezier(https://github.com/MrRaindrop/cubicbezier) developed
17-
by mr.raindrop , licensed under the MIT License.
18-
19-
This product contains software envd(https://github.com/MrRaindrop/envd) developed
20-
by mr.raindrop , licensed under the MIT License.
21-
22-
This product contains software httpurl(https://github.com/MrRaindrop/httpurl) developed
23-
by mr.raindrop , licensed under the MIT License.
24-
25-
This product contains software lazyimg(https://github.com/MrRaindrop/lazyimg) developed
26-
by mr.raindrop , licensed under the MIT License.
27-
28-
This product contains software modals(https://github.com/MrRaindrop/modals) developed
29-
by mr.raindrop , licensed under the MIT License.
30-
3113
This product contains software autoprefixer(https://github.com/postcss/autoprefixer) developed
3214
by postcss , licensed under the MIT License.
3315

@@ -43,19 +25,15 @@ by yuanyan , licensed under the BSD-3-Clause License.
4325
This product contains software weex-vue-framework(https://github.com/vuejs/vue) developed
4426
by fkysly , licensed under the MIT License.
4527

28+
This product contains software weex-vue-render(https://github.com/vuejs/vue) developed
29+
by MrRaindrop , licensed under the Apache 2.0 License.
30+
4631
This product contains software weex-styler(https://github.com/weexteam/weex-styler) developed
4732
by songsiqi , licensed under the MIT License.
4833

4934
This product contains software vuejs(https://github.com/vuejs/vue) developed
5035
by Yuxi Evan You , licensed under the MIT License.
5136

52-
This product contains software scroll-to (https://github.com/component/scroll-to) developed
53-
by TooTallNate , licensed under the MIT License.
54-
55-
This product contains software inline-style-prefixer
56-
(https://github.com/rofrischmann/inline-style-prefixer) developed by
57-
rofrischmann , licensed under the MIT License.
58-
5937
This product contains software fastjson(https://github.com/alibaba/fastjson) developed
6038
by alibaba inc. , licensed under the Apache 2.0 License.
6139

README.md

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
A framework for building Mobile cross-platform UI.
44

5-
Android[![Download](https://api.bintray.com/packages/alibabaweex/maven/weex_sdk/images/download.svg)](https://bintray.com/alibabaweex/maven/weex_sdk/_latestVersion)
6-
iOS[![Pod version](https://badge.fury.io/co/WeexSDK.svg)](https://cocoapods.org/pods/WeexSDK) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
7-
HTML5[![npm version](https://badge.fury.io/js/weex-html5.svg)](https://www.npmjs.com/package/weex-html5)
8-
95
[![CircleCI](https://circleci.com/gh/alibaba/weex/tree/dev.svg?style=svg&circle-token=b83b047a3a01f6ec26458a455530a5ddc261925f)](https://circleci.com/gh/alibaba/weex/tree/dev)
106

7+
| platform | status |
8+
| -------- | ------ |
9+
| Android | [![Download](https://api.bintray.com/packages/alibabaweex/maven/weex_sdk/images/download.svg)](https://bintray.com/alibabaweex/maven/weex_sdk/_latestVersion) |
10+
| iOS | [![Pod version](https://badge.fury.io/co/WeexSDK.svg)](https://cocoapods.org/pods/WeexSDK) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) |
11+
| [Mobile Web](https://github.com/weexteam/weex-vue-render) | [![npm version](https://badge.fury.io/js/weex-html5.svg)](https://www.npmjs.com/package/weex-vue-render) |
12+
1113
Support Android 4.1 (API 16), iOS 8.0+ and WebKit 534.30+.
1214

1315
## For Windows
@@ -47,47 +49,49 @@ On Android Platform , Weex code is executed in [weex_v8core](https://github.com/
4749

4850
### iOS
4951
* run playground
50-
* Prerequisites
51-
* Install [Node.js](http://nodejs.org/) 4.0+
52-
* Under project root
53-
* `npm install`, install project
54-
* `./start`
55-
* Install [iOS Environment](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/Setup/Setup.html)
56-
* Install [CocoaPods](https://guides.cocoapods.org/using/getting-started.html)
57-
* Run playground
58-
* `cd ios/playground`
59-
* `pod install`
60-
* Open `WeexDemo.xcworkspace` in Xcode
61-
* Click <img src="http://img1.tbcdn.cn/L1/461/1/5470b677a2f2eaaecf412cc55eeae062dbc275f9" height="16" > (`Run` button) or use default shortcut `cmd + r` in Xcode
62-
* If you want to run the demo on your device, don't need to modify `CURRENT_IP` manually. ~~In `DemoDefine.h`(you can search this file by Xcode default shortcut `cmd + shift + o`), modify `CURRENT_IP` to your local IP~~
63-
* [Add an example](./examples/README.md#add-an-example)
52+
* Prerequisites
53+
* Install [Node.js](http://nodejs.org/) 4.0+
54+
* Under project root
55+
* `npm install`, install project
56+
* `./start`
57+
* Install [iOS Environment](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppStoreDistributionTutorial/Setup/Setup.html)
58+
* Install [CocoaPods](https://guides.cocoapods.org/using/getting-started.html)
59+
* Run playground
60+
* `cd ios/playground`
61+
* `pod install`
62+
* Open `WeexDemo.xcworkspace` in Xcode
63+
* Click <img src="http://img1.tbcdn.cn/L1/461/1/5470b677a2f2eaaecf412cc55eeae062dbc275f9" height="16" > (`Run` button) or use default shortcut `cmd + r` in Xcode
64+
* If you want to run the demo on your device, don't need to modify `CURRENT_IP` manually. ~~In `DemoDefine.h`(you can search this file by Xcode default shortcut `cmd + shift + o`), modify `CURRENT_IP` to your local IP~~
65+
* [Add an example](./examples/README.md#add-an-example)
6466
* integrate to your application
6567

6668
- **[CocoaPods](https://cocoapods.org)**
6769

6870
Add the following line to your Podfile:
69-
```
70-
pod 'WeexSDK'
71-
```
71+
```
72+
pod 'WeexSDK'
73+
```
7274
run `pod install`
7375

7476
- **[Carthage](https://github.com/carthage/carthage)**
7577

76-
Add the following line to your Cartfile:
77-
```
78-
github "apache/incubator-weex"
79-
```
80-
Run `carthage update`, and you should now have the latest version of `WeexSDK` in your `Carthage` folder.
81-
82-
78+
Add the following line to your Cartfile:
79+
```
80+
github "apache/incubator-weex"
81+
```
82+
Run `carthage update`, and you should now have the latest version of `WeexSDK` in your `Carthage` folder.
83+
84+
### Mobile Web
85+
86+
see [weex-vue-render](https://github.com/weexteam/weex-vue-render).
8387

8488
## Scripts
8589

8690
See [SCRIPTS.md](./SCRIPTS.md) for more information.
8791

8892
## IDE Plugin & Syntax Highlight & DevTool
8993

90-
Weex team have developed a [DevTool](https://github.com/weexteam/weex-devtool) to help you to improve `we file` debug efficiency.
94+
Weex team have developed a [DevTool](https://github.com/weexteam/weex-devtool) to help you to improve the debugging efficiency.
9195

9296
See more stuff on [this wiki page](https://github.com/alibaba/weex/wiki/Weex-Community)
9397

SCRIPTS.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ There are several scripts for end-user and developer.
44

55
**For end users you can only know `npm run build` and `npm run serve` to start and `npm run dev:examples` to write or modify a demo.**
66

7-
* `npm run build:browser`: build HTML5 renderer to `packages/weex-html5/index.js`.
87
* `npm run build:native`: build JS framework for native renderer to `packages/weex-js-framework/index.js`.
98
* `npm run build:examples`: build all js bundles from `examples/` to `examples/build/`.
109
* `npm run build:test`: build all js bundles from `test/` to `test/build/`.
1110
* `npm run build`: build all above.
12-
* `npm run dev:browser`, `npm run dev:native`, `npm run dev:examples`, `npm run dev:test` are the watcher mode for all build scripts, any file changes will automatically be built.
11+
* `npm run dev:native`, `npm run dev:examples`, `npm run dev:test` are the watcher mode for all build scripts, any file changes will automatically be built.
1312
* `npm run serve`: run a http server so you can access all examples in browser through `http://localhost:12580/`. **note: you must run `npm run build` first to prepare all the built files.**
1413
* `npm run clean:examples`: clean `examples/build/`.
1514
* `npm run clean:test`: clean `test/build/`.

0 commit comments

Comments
 (0)