diff --git a/POSSIBLE-NOTICES-FOR-BIN-DIST b/POSSIBLE-NOTICES-FOR-BIN-DIST index 8ceccd9ec0..7b8adc7837 100644 --- a/POSSIBLE-NOTICES-FOR-BIN-DIST +++ b/POSSIBLE-NOTICES-FOR-BIN-DIST @@ -28,19 +28,22 @@ by mr.raindrop , licensed under the MIT License. This product contains software modals(https://www.npmjs.com/package/modals) developed by mr.raindrop , licensed under the MIT License. -This product contains software query-string(https://www.npmjs.com/package/query-string) developed +This product contains software autoprefixer(https://github.com/postcss/autoprefixer) developed +by postcss , licensed under the MIT License. + +This product contains software query-string(https://github.com/sindresorhus/query-string) developed by sindresorhus , licensed under the MIT License. -This product contains software weex-picker(https://www.npmjs.com/package/weex-picker) developed +This product contains software weex-picker(https://github.com/weexteam/weex-picker) developed by abigtree , licensed under the Apache 2.0 License. -This product contains software weex-rax-framework(https://www.npmjs.com/package/weex-rax-framework) developed +This product contains software weex-rax-framework(https://github.com/alibaba/rax) developed by yuanyan , licensed under the BSD-3-Clause License. -This product contains software weex-vue-framework(https://www.npmjs.com/package/weex-vue-framework) developed +This product contains software weex-vue-framework(https://github.com/vuejs/vue) developed by fkysly , licensed under the MIT License. -This product contains software weex-styler(https://www.npmjs.com/package/weex-styler) developed +This product contains software weex-styler(https://github.com/weexteam/weex-styler) developed by songsiqi , licensed under the MIT License. This product contains software vuejs(https://github.com/vuejs/vue) developed diff --git a/README_RELEASE.md b/README_RELEASE.md index 29427f0cfa..287df1aeb5 100644 --- a/README_RELEASE.md +++ b/README_RELEASE.md @@ -6,13 +6,10 @@ ### Build Javascript Framework and Html5 SDK Javascript Framework is required by SDKs. **So this must be built first.** Install npm dependencies(You must have node&npm installed): -> `$ npm install` +> `$ npm install --production` -Install `flow-typed` module -> `$ npm install -g flow-typed` - -Use `flow-typed` to install libdef: -> `$ flow-typed install` +Install build tools: +> `$ npm run install:buildtools` Build the javascript libraries: > `$ npm run build:source` @@ -30,7 +27,7 @@ Move `min` version to Native SDK folder, which will be used by native SDK build. > `cp dist/native.min.js android/sdk/assets/main.js` ### Build Android SDK -Make sure you have install gradle, see install guide in [gradle website](https://gradle.org/install). +Make sure you have install gradle, see more details about 'how to install gradle' in [gradle website](https://gradle.org/install). Go into the `android` folder then execute > `$ cd android ` > `$ gradle wrapper --gradle-version 2.14.1` @@ -41,11 +38,14 @@ Create a Gradle setting file Build the SDK > `$ ./gradlew :sdk:assemble -PasfRelease` -Now, you can see the artifacts under `android/sdk/build/output/`. +Now, you can see the artifacts under `android/sdk/build/output/`. +You can now import the aar file to your android project. ### Build iOS SDK +Execute command below to compile iOS SDK: +> `$ xcodebuild -project ios/sdk/WeexSDK.xcodeproj -target WeexSDK_MTL` -`$ xcodebuild -project ios/sdk/WeexSDK.xcodeproj -target WeexSDK_MTL` +Then you'll found iOS library(Framework file) under `ios/sdk/Products`. ## Run Apache-Rat diff --git a/package.json b/package.json index dfc73cfd11..6e8b1f589c 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,8 @@ "postinstall": "bash ./bin/install-hooks.sh", "build:native": "node build/build.js native", "build:runtime": "node build/build.js runtime", - "build:source": "npm run build:native && npm run build:browser && npm run build:vue", + "install:tools": "npm i rollup rollup-watch rollup-plugin-buble rollup-plugin-json rollup-plugin-eslint rollup-plugin-commonjs rollup-plugin-flow rollup-plugin-flow-no-whitespace rollup-plugin-postcss rollup-plugin-replace rollup-plugin-uglify rollup-plugin-node-resolve wwp flow-bin babel-core babel-eslint babel-istanbul babel-loader babel-plugin-coverage babel-preset-es2015 babel-runtime eslint-plugin-flowtype", + "build:source": "npm run build:native && npm run build:browser && node build/build.js vue", "build:browser": "wwp && node build/build.js browser", "build:browser:common": "rollup -c build/rollup.browser.common.config.js", "build:vue": "flow check && node build/build.js vue", @@ -82,6 +83,7 @@ "danger": "danger" }, "dependencies": { + "autoprefixer": "^6.7.7", "animationjs": "^0.1.5", "blink-diff": "~1.0.12", "core-js": "^2.4.0", @@ -100,7 +102,6 @@ "weex-styler": "0.1.9" }, "devDependencies": { - "autoprefixer": "^6.7.7", "babel-core": "^6.17.0", "babel-eslint": "^7.2.1", "babel-istanbul": "^0.11.0",