mirror of
https://github.com/Tencent/Hippy.git
synced 2026-10-28 21:48:13 +08:00
chore(demo&readme): update demo & readme
This commit is contained in:
@@ -84,12 +84,21 @@ Before build the android app, please make sure the SDK and NDK is installed, And
|
||||
1. Follow [Build the iOS simulator with js demo](https://github.com/Tencent/Hippy#build-the-ios-simulator-with-js-demo) or [Build the Android app with js demo](https://github.com/Tencent/Hippy#build-the-android-app-with-js-demo) first to build the App.
|
||||
2. `cd` to `framework/js/examples` hippy-react-demo or hippy-vue-demo.
|
||||
3. Run `npm install` to install demo js dependencies.
|
||||
4. Run `npm run hippy:dev` and `npm run hippy:debug` (`npm run hippy:local-debug` will link to source code in packages) respectively to start the live debug mode.
|
||||
4. Run `npm run hippy:dev` and `npm run hippy:debug` (`npm run hippy:local-debug` and `npm run hippy:local-dev` will link to source code in packages) respectively to start the debug mode.
|
||||
|
||||
> On example debug mode, npm packages such as @hippy/react, @hippy/vue are linked to `framework/js/packages` > `[different package]` > `dist`(not node_modules), so if you have changed js package source code and want to make it take effect in target example, please call `npm run build` at root directory again.
|
||||
>
|
||||
> More details for debugging can be read in [Hippy Debug Document](https://hippyjs.org/#/guide/debug).
|
||||
|
||||
### Build the js production demo
|
||||
|
||||
1. Follow [Build the iOS simulator with js demo](https://github.com/Tencent/Hippy#build-the-ios-simulator-with-js-demo) or [Build the Android app with js demo](https://github.com/Tencent/Hippy#build-the-android-app-with-js-demo) first to build the App.
|
||||
2. `cd` to `examples` hippy-react-demo or hippy-vue-demo.
|
||||
3. Run `npm install` to install demo js dependencies.
|
||||
4. Run `npm run hippy:vendor` and `npm run hippy:build` in sequence to build the production `vendor.[android|ios].js` and `index.[android|ios].js`.
|
||||
|
||||
> Hippy demo uses DllPlugin to split the common chunk and app chunk.
|
||||
|
||||
## 📁 Documentation
|
||||
|
||||
To check out [hippy examples](https://github.com/Tencent/Hippy/tree/master/examples) and visit [hippyjs.org](https://hippyjs.org).
|
||||
@@ -113,6 +122,7 @@ Hippy
|
||||
│ ├── hippy-react-web # Web adapter for hippy-react.
|
||||
│ ├── hippy-vue # Vue binding for Hippy.
|
||||
│ ├── hippy-vue-css-loader # Webpack loader for convert CSS text to JS AST.
|
||||
│ ├── hippy-vue-loader # Forked from vue-loader to do some hippy customization.
|
||||
│ ├── hippy-vue-native-components # Native components extensions for hippy-vue.
|
||||
│ ├── hippy-vue-router # Vue router for hippy-vue.
|
||||
│ └── types # Global type definition.
|
||||
|
||||
Reference in New Issue
Block a user