diff --git a/examples/with-rax-mpa/README.md b/examples/with-rax-mpa/README.md deleted file mode 100644 index 98a3bb4ecc..0000000000 --- a/examples/with-rax-mpa/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# with rax - -https://github.com/ice-lab/icejs/tree/master/examples diff --git a/examples/with-rax-mpa/build.json b/examples/with-rax-mpa/build.json deleted file mode 100644 index 6a51d5c44c..0000000000 --- a/examples/with-rax-mpa/build.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - /*"web": { - "mpa": true - }, - "weex": { - "mpa": true - }, */ - "plugins": ["build-plugin-mpa"], - "targets": ["web"], - "inlineStyle": true -} diff --git a/examples/with-rax-mpa/package.json b/examples/with-rax-mpa/package.json deleted file mode 100644 index f077cb3020..0000000000 --- a/examples/with-rax-mpa/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "with-rax-mpa", - "description": "rax mpa example", - "dependencies": { - "rax": "^1.1.0", - "rax-document": "^0.1.0", - "rax-image": "^2.0.0", - "rax-link": "^1.0.1", - "rax-text": "^1.0.0", - "rax-view": "^1.0.0" - }, - "devDependencies": { - "@types/rax": "^1.0.0" - }, - "scripts": { - "start": "rax-app start", - "build": "rax-app build" - }, - "engines": { - "node": ">=8.0.0" - } -} diff --git a/examples/with-rax-mpa/src/app.json b/examples/with-rax-mpa/src/app.json deleted file mode 100644 index 21d71dd98e..0000000000 --- a/examples/with-rax-mpa/src/app.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "routes": [ - { - "path": "/", - "source": "pages/Home/index" - }, - { - "path": "/about", - "source": "/pages/About/index" - } - ], - "window": { - "title": "Rax App" - } -} diff --git a/examples/with-rax-mpa/src/app.ts b/examples/with-rax-mpa/src/app.ts deleted file mode 100644 index 9d23330756..0000000000 --- a/examples/with-rax-mpa/src/app.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { runApp } from 'rax-app'; - -runApp({ - app: { - onShow() { - console.log('app show...'); - }, - onHide() { - console.log('app hide...'); - } - }, - router: { - basename: '/home' - } -}); diff --git a/examples/with-rax-mpa/src/components/Logo/index.css b/examples/with-rax-mpa/src/components/Logo/index.css deleted file mode 100644 index 2f8d8d1144..0000000000 --- a/examples/with-rax-mpa/src/components/Logo/index.css +++ /dev/null @@ -1,5 +0,0 @@ -.logo { - width: 200rpx; - height: 180rpx; - margin-bottom: 20rpx; -} \ No newline at end of file diff --git a/examples/with-rax-mpa/src/components/Logo/index.tsx b/examples/with-rax-mpa/src/components/Logo/index.tsx deleted file mode 100644 index 3019027efd..0000000000 --- a/examples/with-rax-mpa/src/components/Logo/index.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { createElement, PureComponent } from 'rax'; -import Image from 'rax-image'; - -import './index.css'; - -class Logo extends PureComponent { - public render() { - const source = { - uri: '//gw.alicdn.com/tfs/TB1MRC_cvb2gK0jSZK9XXaEgFXa-1701-1535.png', - }; - console.log('with router =>', this.props); - return ( - - ); - } -} - -export default Logo; diff --git a/examples/with-rax-mpa/src/document/index.tsx b/examples/with-rax-mpa/src/document/index.tsx deleted file mode 100644 index 4eeed411e3..0000000000 --- a/examples/with-rax-mpa/src/document/index.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { createElement } from 'rax'; -import { Root, Style, Script } from 'rax-document'; - -function Document() { - return ( - - - - - @ali/demo-app -