├── packages
├── taro-cli
│ ├── README.md
│ ├── templates
│ │ └── default
│ │ │ ├── src
│ │ │ ├── app.css
│ │ │ └── pages
│ │ │ │ └── index
│ │ │ │ ├── index.css
│ │ │ │ └── index.config.js
│ │ │ ├── _gitignore
│ │ │ ├── config
│ │ │ └── dev.js
│ │ │ ├── project.tt.json
│ │ │ └── _editorconfig
│ ├── src
│ │ ├── __tests__
│ │ │ └── fixtures
│ │ │ │ ├── default
│ │ │ │ ├── src
│ │ │ │ │ ├── app.scss
│ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.scss
│ │ │ │ │ │ └── index.config.js
│ │ │ │ ├── config
│ │ │ │ │ └── dev.js
│ │ │ │ └── babel.config.js
│ │ │ │ ├── vue
│ │ │ │ ├── src
│ │ │ │ │ ├── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ │ └── index.vue
│ │ │ │ │ └── app.js
│ │ │ │ ├── config
│ │ │ │ │ └── dev.js
│ │ │ │ └── babel.config.js
│ │ │ │ └── nerv
│ │ │ │ ├── src
│ │ │ │ ├── pages
│ │ │ │ │ └── index
│ │ │ │ │ │ └── index.config.ts
│ │ │ │ └── app.tsx
│ │ │ │ ├── config
│ │ │ │ └── dev.js
│ │ │ │ └── babel.config.js
│ │ ├── presets
│ │ │ └── constant
│ │ │ │ └── index.ts
│ │ ├── config
│ │ │ ├── rn-stylelint.json
│ │ │ └── index.ts
│ │ ├── doctor
│ │ │ └── interface.ts
│ │ └── index.ts
│ ├── .gitignore
│ ├── global.d.ts
│ ├── index.js
│ ├── bin
│ │ └── taro
│ └── .eslintrc.js
├── taro-loader
│ ├── .gitignore
│ ├── __tests__
│ │ └── fixtures
│ │ │ ├── not-export-default.txt
│ │ │ ├── basic_1.txt
│ │ │ ├── vue-imported.txt
│ │ │ ├── react-imported.txt
│ │ │ ├── rename-app.txt
│ │ │ ├── react-imported-2.txt
│ │ │ ├── react2.txt
│ │ │ ├── syntax-tsx.txt
│ │ │ └── react.txt
│ └── src
│ │ └── raw.ts
├── taro-rn-transformer
│ ├── README.md
│ ├── __tests__
│ │ └── src
│ │ │ └── app.scss
│ └── .eslintrc.js
├── taro-runner-utils
│ ├── .gitignore
│ ├── README.md
│ └── __tests__
│ │ └── styles
│ │ ├── mixins.scss
│ │ └── variables.scss
├── taro-react
│ ├── .gitignore
│ ├── README.md
│ └── tsconfig.json
├── taro-components-rn
│ ├── .watchmanconfig
│ ├── README.md
│ ├── src
│ │ ├── setup.ts
│ │ ├── components
│ │ │ ├── CoverImage
│ │ │ │ └── index.tsx
│ │ │ ├── CoverView
│ │ │ │ └── index.tsx
│ │ │ ├── CustomWrapper
│ │ │ │ └── index.tsx
│ │ │ ├── Camera
│ │ │ │ └── styles.tsx
│ │ │ ├── Label
│ │ │ │ └── PropsType.tsx
│ │ │ ├── SwiperItem
│ │ │ │ ├── styles.tsx
│ │ │ │ └── PropsType.tsx
│ │ │ ├── View
│ │ │ │ └── PropsType.tsx
│ │ │ └── Text
│ │ │ │ └── PropsType.tsx
│ │ ├── assets
│ │ │ ├── thumb.png
│ │ │ ├── loading.png
│ │ │ ├── icons
│ │ │ │ ├── back.png
│ │ │ │ ├── info.png
│ │ │ │ ├── warn.png
│ │ │ │ ├── cancel.png
│ │ │ │ ├── circle.png
│ │ │ │ ├── clear.png
│ │ │ │ ├── delete.png
│ │ │ │ ├── search.png
│ │ │ │ ├── success.png
│ │ │ │ ├── waiting.png
│ │ │ │ ├── download.png
│ │ │ │ ├── safe_warn.png
│ │ │ │ ├── info_circle.png
│ │ │ │ ├── safe_success.png
│ │ │ │ ├── success_circle.png
│ │ │ │ ├── waiting_circle.png
│ │ │ │ └── success_no_circle.png
│ │ │ ├── video
│ │ │ │ ├── full.png
│ │ │ │ ├── mute.png
│ │ │ │ ├── play.png
│ │ │ │ ├── pause.png
│ │ │ │ ├── shrink.png
│ │ │ │ ├── unmute.png
│ │ │ │ └── volume.png
│ │ │ └── loading-warn.png
│ │ └── __tests__
│ │ │ ├── 1x1.png
│ │ │ └── __snapshots__
│ │ │ └── camera.spec.tsx.snap
│ ├── .editorconfig
│ └── .gitignore
├── taro-mini-runner
│ ├── src
│ │ ├── .gitignore
│ │ ├── __tests__
│ │ │ ├── fixtures
│ │ │ │ ├── babel
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ ├── nerv
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ ├── react
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ ├── sass
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.scss
│ │ │ │ │ │ ├── common
│ │ │ │ │ │ └── global.scss
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ └── index.scss
│ │ │ │ ├── tabbar
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.scss
│ │ │ │ │ │ ├── pages
│ │ │ │ │ │ ├── about
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ └── index
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ └── assets
│ │ │ │ │ │ ├── nav.png
│ │ │ │ │ │ ├── view.png
│ │ │ │ │ │ ├── nav_red.png
│ │ │ │ │ │ └── view_red.png
│ │ │ │ ├── vue
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ ├── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ │ └── index.vue
│ │ │ │ │ │ └── app.js
│ │ │ │ ├── vue3
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ ├── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ └── app.js
│ │ │ │ ├── config
│ │ │ │ │ └── origin
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ ├── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ ├── irrelevant.txt
│ │ │ │ │ │ ├── weapp
│ │ │ │ │ │ └── index.wxml
│ │ │ │ │ │ └── alias
│ │ │ │ │ │ ├── utils
│ │ │ │ │ │ └── index.js
│ │ │ │ │ │ └── files
│ │ │ │ │ │ └── index
│ │ │ │ │ │ └── index.js
│ │ │ │ ├── css-modules
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ ├── index.global.css
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ └── index.module.css
│ │ │ │ ├── parse-html
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ ├── prerender
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ ├── subpackages
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ ├── packageA
│ │ │ │ │ │ ├── detail
│ │ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ ├── my
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ └── common.js
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ └── index.config.js
│ │ │ │ ├── typescript
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.less
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.config.ts
│ │ │ │ │ │ └── index.less
│ │ │ │ ├── wx-hybrid
│ │ │ │ │ ├── src
│ │ │ │ │ │ ├── app.scss
│ │ │ │ │ │ ├── pages
│ │ │ │ │ │ │ ├── native
│ │ │ │ │ │ │ │ ├── native.wxss
│ │ │ │ │ │ │ │ └── native.wxml
│ │ │ │ │ │ │ └── index
│ │ │ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ │ │ └── index.scss
│ │ │ │ │ │ ├── utils
│ │ │ │ │ │ │ └── util.js
│ │ │ │ │ │ └── components
│ │ │ │ │ │ │ └── tab
│ │ │ │ │ │ │ ├── tab.json
│ │ │ │ │ │ │ └── tab.wxml
│ │ │ │ │ └── babel.config.js
│ │ │ │ ├── compiler-macros
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ └── index.css
│ │ │ │ ├── custom-tabbar
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.css
│ │ │ │ │ │ ├── custom-tab-bar
│ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ └── index.css
│ │ │ │ │ │ ├── pages
│ │ │ │ │ │ ├── detail
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ └── index
│ │ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ └── assets
│ │ │ │ │ │ ├── nav.png
│ │ │ │ │ │ ├── view.png
│ │ │ │ │ │ ├── nav_red.png
│ │ │ │ │ │ └── view_red.png
│ │ │ │ ├── common-style
│ │ │ │ │ └── src
│ │ │ │ │ │ ├── app.scss
│ │ │ │ │ │ ├── components
│ │ │ │ │ │ └── title
│ │ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ │ └── index.scss
│ │ │ │ │ │ └── pages
│ │ │ │ │ │ ├── about
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ │ └── index
│ │ │ │ │ │ └── index.config.js
│ │ │ │ └── mini-split-chunks
│ │ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ ├── css
│ │ │ │ │ ├── sub-common.css
│ │ │ │ │ ├── sub-vendors.css
│ │ │ │ │ ├── sub-common.module.css
│ │ │ │ │ └── sub-vendors.module.css
│ │ │ │ │ ├── packageA
│ │ │ │ │ ├── detail
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ └── my
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ ├── packageB
│ │ │ │ │ └── list
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ ├── pages
│ │ │ │ │ └── index
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ └── utils
│ │ │ │ │ ├── consoleLogMain.js
│ │ │ │ │ ├── testExcludeString.js
│ │ │ │ │ ├── testExcludeFunction.js
│ │ │ │ │ ├── consoleLogSubVendors.js
│ │ │ │ │ └── consoleLogSubCommon.js
│ │ │ ├── mocks
│ │ │ │ ├── vue.ts
│ │ │ │ ├── deps.ts
│ │ │ │ ├── nerv.ts
│ │ │ │ ├── react.ts
│ │ │ │ ├── taro-react.ts
│ │ │ │ ├── taro-runtime.ts
│ │ │ │ ├── taro-components.ts
│ │ │ │ └── taro.ts
│ │ │ └── __snapshots__
│ │ │ │ └── mini-split-chunks.spec.ts.snap
│ │ ├── quickapp
│ │ │ ├── style
│ │ │ │ └── declaration
│ │ │ │ │ ├── color
│ │ │ │ │ └── index.ts
│ │ │ │ │ ├── visibility
│ │ │ │ │ └── index.ts
│ │ │ │ │ ├── list
│ │ │ │ │ └── index.ts
│ │ │ │ │ ├── transition
│ │ │ │ │ └── index.ts
│ │ │ │ │ ├── margin
│ │ │ │ │ └── index.ts
│ │ │ │ │ └── padding
│ │ │ │ │ └── index.ts
│ │ │ └── template
│ │ │ │ └── tag
│ │ │ │ ├── taro-map
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-image
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-input
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-label
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-video
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-camera
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-canvas
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-picker
│ │ │ │ └── index.ts
│ │ │ │ ├── taro-textarea
│ │ │ │ └── index.ts
│ │ │ │ ├── span
│ │ │ │ └── index.ts
│ │ │ │ └── text
│ │ │ │ └── index.ts
│ │ ├── utils
│ │ │ └── constants.ts
│ │ ├── template
│ │ │ ├── comp.ts
│ │ │ └── custom-wrapper.ts
│ │ └── loaders
│ │ │ └── quickappStyleLoader.ts
│ ├── index.js
│ ├── .eslintrc.js
│ ├── mv-comp.js
│ └── README.md
├── taro-rn
│ ├── .gitignore
│ ├── src
│ │ ├── lib
│ │ │ ├── saveFile
│ │ │ │ └── index.ts
│ │ │ ├── getFileInfo
│ │ │ │ └── index.ts
│ │ │ ├── uploadFile
│ │ │ │ └── index.ts
│ │ │ ├── authorize
│ │ │ │ └── index.ts
│ │ │ ├── downloadFile
│ │ │ │ └── index.ts
│ │ │ ├── getSetting
│ │ │ │ └── index.ts
│ │ │ ├── openSetting
│ │ │ │ └── index.ts
│ │ │ ├── startGyroscope
│ │ │ │ └── index.ts
│ │ │ ├── vibrateLong
│ │ │ │ └── index.ts
│ │ │ ├── vibrateShort
│ │ │ │ └── index.ts
│ │ │ ├── getNetworkType
│ │ │ │ └── index.ts
│ │ │ ├── getSavedFileInfo
│ │ │ │ └── index.ts
│ │ │ ├── getSavedFileList
│ │ │ │ └── index.ts
│ │ │ ├── getStorageSync
│ │ │ │ └── index.ts
│ │ │ ├── hideKeyboard
│ │ │ │ └── index.ts
│ │ │ ├── hideToast
│ │ │ │ └── index.ts
│ │ │ ├── offLocationChange
│ │ │ │ └── index.ts
│ │ │ ├── onLocationChange
│ │ │ │ └── index.ts
│ │ │ ├── removeSavedFile
│ │ │ │ └── index.ts
│ │ │ ├── setStorageSync
│ │ │ │ └── index.ts
│ │ │ ├── showToast
│ │ │ │ └── index.ts
│ │ │ ├── stopGyroscope
│ │ │ │ └── index.ts
│ │ │ ├── clearStorageSync
│ │ │ │ └── index.ts
│ │ │ ├── hideLoading
│ │ │ │ └── index.ts
│ │ │ ├── showLoading
│ │ │ │ └── index.ts
│ │ │ ├── startLocationUpdate
│ │ │ │ └── index.ts
│ │ │ ├── canIUse
│ │ │ │ └── index.ts
│ │ │ ├── getScreenBrightness
│ │ │ │ └── index.ts
│ │ │ ├── getStorageInfoSync
│ │ │ │ └── index.ts
│ │ │ ├── offGyroscopeChange
│ │ │ │ └── index.ts
│ │ │ ├── onGyroscopeChange
│ │ │ │ └── index.ts
│ │ │ ├── onUserCaptureScreen
│ │ │ │ └── index.ts
│ │ │ ├── removeStorageSync
│ │ │ │ └── index.ts
│ │ │ ├── setScreenBrightness
│ │ │ │ └── index.ts
│ │ │ ├── stopLocationUpdate
│ │ │ │ └── index.ts
│ │ │ ├── getFileSystemManager
│ │ │ │ └── index.ts
│ │ │ ├── offNetworkStatusChange
│ │ │ │ └── index.ts
│ │ │ ├── offUserCaptureScreen
│ │ │ │ └── index.ts
│ │ │ ├── onNetworkStatusChange
│ │ │ │ └── index.ts
│ │ │ ├── startAccelerometer
│ │ │ │ └── index.ts
│ │ │ ├── stopAccelerometer
│ │ │ │ └── index.ts
│ │ │ ├── offDeviceMotionChange
│ │ │ │ └── index.ts
│ │ │ ├── offKeyboardHeightChange
│ │ │ │ └── index.ts
│ │ │ ├── onAccelerometerChange
│ │ │ │ └── index.ts
│ │ │ ├── onDeviceMotionChange
│ │ │ │ └── index.ts
│ │ │ ├── onKeyboardHeightChange
│ │ │ │ └── index.ts
│ │ │ ├── offAccelerometerChange
│ │ │ │ └── index.ts
│ │ │ ├── startDeviceMotionListening
│ │ │ │ └── index.ts
│ │ │ ├── stopDeviceMotionListening
│ │ │ │ └── index.ts
│ │ │ ├── scanCode
│ │ │ │ ├── icon_pic.png
│ │ │ │ └── icon_close.png
│ │ │ ├── showModal
│ │ │ │ ├── error.png
│ │ │ │ ├── loading.png
│ │ │ │ └── success.png
│ │ │ ├── getEnv
│ │ │ │ └── index.ts
│ │ │ ├── base64ToArrayBuffer
│ │ │ │ └── index.ts
│ │ │ ├── ENV_TYPE
│ │ │ │ └── index.ts
│ │ │ └── arrayBufferToBase64
│ │ │ │ └── index.ts
│ │ ├── types
│ │ │ └── vue
│ │ │ │ └── index.d.ts
│ │ ├── __tests__
│ │ │ └── __mock__
│ │ │ │ ├── mockVibrate.js
│ │ │ │ └── mockRNCCameraRoll.js
│ │ ├── index.ts
│ │ └── utils
│ │ │ └── premissions.ts
│ ├── script
│ │ └── index.js
│ ├── README.md
│ ├── babel.config.js
│ └── types
│ │ └── index.d.ts
├── taro-qq
│ ├── .gitignore
│ ├── README.md
│ ├── index.js
│ └── tsconfig.json
├── taro-router-rn
│ ├── README.md
│ ├── jest.config.js
│ ├── .eslintrc.js
│ └── src
│ │ └── index.ts
├── taro-jd
│ ├── .gitignore
│ ├── README.md
│ ├── index.js
│ ├── src
│ │ ├── apis.ts
│ │ ├── runtime-utils.ts
│ │ └── runtime.ts
│ └── tsconfig.json
├── taro-plugin-html
│ ├── README.md
│ ├── index.js
│ └── tsconfig.json
├── taro-rn-supporter
│ ├── README.md
│ ├── src
│ │ └── index.ts
│ └── .eslintrc.js
├── taro-tt
│ ├── .gitignore
│ ├── README.md
│ ├── src
│ │ ├── components-react.ts
│ │ ├── runtime-utils.ts
│ │ ├── runtime.ts
│ │ ├── apis.ts
│ │ └── apis-list.ts
│ ├── index.js
│ └── tsconfig.json
├── taro-h5
│ ├── __mocks__
│ │ ├── styleMock.js
│ │ ├── fileMock.js
│ │ ├── setEnv.ts
│ │ ├── taro-runtime.ts
│ │ └── taro-framework.ts
│ ├── src
│ │ ├── api
│ │ │ ├── ai
│ │ │ │ ├── index.ts
│ │ │ │ ├── visual.ts
│ │ │ │ └── facial.ts
│ │ │ ├── ui
│ │ │ │ ├── custom-component.ts
│ │ │ │ ├── sticky.ts
│ │ │ │ ├── menu.ts
│ │ │ │ └── background.ts
│ │ │ ├── media
│ │ │ │ ├── map.ts
│ │ │ │ ├── camera.ts
│ │ │ │ ├── media-recorder.ts
│ │ │ │ ├── video-decoder.ts
│ │ │ │ ├── video-processing.ts
│ │ │ │ ├── live.ts
│ │ │ │ └── recorder.ts
│ │ │ ├── worker
│ │ │ │ └── index.ts
│ │ │ ├── alipay
│ │ │ │ └── index.ts
│ │ │ ├── device
│ │ │ │ ├── crypto.ts
│ │ │ │ ├── accessibility.ts
│ │ │ │ ├── contact.ts
│ │ │ │ ├── memory.ts
│ │ │ │ └── calendar.ts
│ │ │ ├── network
│ │ │ │ ├── tcp.ts
│ │ │ │ ├── udp.ts
│ │ │ │ └── index.ts
│ │ │ ├── open-api
│ │ │ │ ├── address.ts
│ │ │ │ ├── group.ts
│ │ │ │ ├── red-package.ts
│ │ │ │ ├── account.ts
│ │ │ │ ├── license-plate.ts
│ │ │ │ ├── customer-service.ts
│ │ │ │ ├── subscribe-message.ts
│ │ │ │ ├── card.ts
│ │ │ │ ├── settings.ts
│ │ │ │ ├── werun.ts
│ │ │ │ ├── user-info.ts
│ │ │ │ ├── invoice.ts
│ │ │ │ ├── authorize.ts
│ │ │ │ ├── favorites.ts
│ │ │ │ └── login.ts
│ │ │ ├── base
│ │ │ │ ├── crypto.ts
│ │ │ │ ├── update.ts
│ │ │ │ ├── performance.ts
│ │ │ │ ├── weapp
│ │ │ │ │ └── life-cycle.ts
│ │ │ │ └── debug.ts
│ │ │ ├── route
│ │ │ │ └── index.ts
│ │ │ ├── ext
│ │ │ │ └── index.ts
│ │ │ ├── payment
│ │ │ │ └── index.ts
│ │ │ ├── utils
│ │ │ │ └── valid.ts
│ │ │ └── ad
│ │ │ │ └── index.ts
│ │ ├── types
│ │ │ ├── index.d.ts
│ │ │ ├── define.d.ts
│ │ │ └── api.d.ts
│ │ └── index.ts
│ └── README.md
├── taro-swan
│ ├── .gitignore
│ ├── README.md
│ ├── index.js
│ ├── src
│ │ └── runtime.ts
│ └── tsconfig.json
├── taro-weapp
│ ├── .gitignore
│ ├── README.md
│ ├── index.js
│ ├── src
│ │ ├── runtime-utils.ts
│ │ └── runtime.ts
│ └── tsconfig.json
├── taro-webpack-runner
│ ├── src
│ │ └── __tests__
│ │ │ ├── fixtures
│ │ │ ├── nerv
│ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ └── pages
│ │ │ │ │ └── index
│ │ │ │ │ ├── index.css
│ │ │ │ │ └── index.config.js
│ │ │ ├── vue
│ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ ├── pages
│ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ └── app.js
│ │ │ ├── vue3
│ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ ├── pages
│ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ └── app.js
│ │ │ ├── babel
│ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ └── pages
│ │ │ │ │ └── index
│ │ │ │ │ ├── index.css
│ │ │ │ │ └── index.config.js
│ │ │ ├── config
│ │ │ │ └── origin
│ │ │ │ │ ├── app.css
│ │ │ │ │ ├── pages
│ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ ├── irrelevant.txt
│ │ │ │ │ ├── weapp
│ │ │ │ │ └── index.wxml
│ │ │ │ │ └── alias
│ │ │ │ │ ├── utils
│ │ │ │ │ └── index.js
│ │ │ │ │ └── files
│ │ │ │ │ └── index
│ │ │ │ │ └── index.js
│ │ │ ├── react
│ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ └── pages
│ │ │ │ │ └── index
│ │ │ │ │ ├── index.css
│ │ │ │ │ └── index.config.js
│ │ │ ├── sass
│ │ │ │ ├── src
│ │ │ │ │ ├── app.scss
│ │ │ │ │ ├── common
│ │ │ │ │ │ └── global.scss
│ │ │ │ │ └── pages
│ │ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.config.js
│ │ │ │ │ │ └── index.scss
│ │ │ │ └── input
│ │ │ │ │ ├── pages
│ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.sass
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ └── app.js
│ │ │ ├── css-modules
│ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ ├── index.global.css
│ │ │ │ │ └── pages
│ │ │ │ │ └── index
│ │ │ │ │ ├── index.css
│ │ │ │ │ ├── index.config.js
│ │ │ │ │ └── index.module.css
│ │ │ ├── subpackages
│ │ │ │ └── src
│ │ │ │ │ ├── app.css
│ │ │ │ │ ├── pages
│ │ │ │ │ └── index
│ │ │ │ │ │ ├── index.css
│ │ │ │ │ │ └── index.config.js
│ │ │ │ │ └── packageA
│ │ │ │ │ └── detail
│ │ │ │ │ ├── index.css
│ │ │ │ │ └── index.config.js
│ │ │ ├── typescript
│ │ │ │ └── src
│ │ │ │ │ ├── app.less
│ │ │ │ │ └── pages
│ │ │ │ │ └── index
│ │ │ │ │ ├── index.config.ts
│ │ │ │ │ └── index.less
│ │ │ └── compiler-macros
│ │ │ │ └── src
│ │ │ │ ├── app.css
│ │ │ │ └── pages
│ │ │ │ └── index
│ │ │ │ └── index.css
│ │ │ └── mocks
│ │ │ ├── taro-components.css
│ │ │ ├── vue.ts
│ │ │ ├── nerv.ts
│ │ │ ├── react.ts
│ │ │ ├── taro-shared.ts
│ │ │ ├── taro-h5.ts
│ │ │ ├── taro-framework.ts
│ │ │ ├── taro-components.ts
│ │ │ └── taro-runtime.ts
│ ├── index.js
│ ├── .eslintrc.js
│ └── README.md
├── taroize
│ ├── .gitignore
│ ├── index.js
│ └── src
│ │ └── json.ts
├── taro-alipay
│ ├── .gitignore
│ ├── README.md
│ ├── index.js
│ ├── src
│ │ └── components-react.ts
│ └── tsconfig.json
├── taro-components
│ ├── __mocks__
│ │ └── styleMock.js
│ ├── src
│ │ ├── index.ts
│ │ └── components
│ │ │ ├── cover-view
│ │ │ └── style
│ │ │ │ └── cover-view.scss
│ │ │ ├── navigator
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── picker
│ │ │ ├── style
│ │ │ │ └── index.scss
│ │ │ └── constant.ts
│ │ │ ├── audio
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── cover-image
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── video
│ │ │ └── images
│ │ │ │ ├── full.png
│ │ │ │ ├── mute.png
│ │ │ │ ├── play.png
│ │ │ │ ├── pause.png
│ │ │ │ ├── shrink.png
│ │ │ │ ├── unmute.png
│ │ │ │ └── volume.png
│ │ │ ├── canvas
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── view
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── text
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── block
│ │ │ └── readme.md
│ │ │ ├── camera
│ │ │ └── readme.md
│ │ │ ├── web-view
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── switch
│ │ │ └── style
│ │ │ │ └── index.scss
│ │ │ ├── input
│ │ │ └── index.scss
│ │ │ └── rich-text
│ │ │ └── index.md
│ ├── vue3.d.ts
│ ├── types
│ │ ├── Block.d.ts
│ │ └── event.d.ts
│ ├── README.md
│ ├── virtual-list
│ │ └── index.js
│ ├── babel.config.json
│ └── h5
│ │ ├── .babelrc.json
│ │ └── vue3
│ │ └── forwardRef.js
├── taro-plugin-mini-ci
│ ├── src
│ │ ├── types.d.ts
│ │ └── QRCode.ts
│ ├── index.js
│ └── types
│ │ ├── QRCode.d.ts
│ │ ├── SwanCI.d.ts
│ │ ├── index.d.ts
│ │ └── TTCI.d.ts
├── taro-plugin-vue2
│ ├── src
│ │ └── runtime
│ │ │ └── index.ts
│ ├── README.md
│ ├── index.js
│ └── tsconfig.json
├── postcss-html-transform
│ ├── README.md
│ └── index.js
├── taro-extend
│ ├── src
│ │ └── index.js
│ └── README.md
├── css-to-react-native
│ ├── .babelrc
│ └── src
│ │ ├── utils
│ │ ├── allEqual.js
│ │ └── values.js
│ │ └── transforms
│ │ └── rem.js
├── taro-rn-style-transformer
│ ├── __tests__
│ │ └── styles
│ │ │ ├── b.css
│ │ │ ├── b.less
│ │ │ ├── b.scss
│ │ │ ├── b.styl
│ │ │ ├── c.css
│ │ │ ├── variable.scss
│ │ │ ├── b.rn.css
│ │ │ ├── d.scss
│ │ │ ├── d.rn.scss
│ │ │ ├── nest.rn.less
│ │ │ ├── c.less
│ │ │ ├── c.scss
│ │ │ └── c.rn.scss
│ ├── src
│ │ ├── config
│ │ │ └── rn-stylelint.json
│ │ └── transforms
│ │ │ └── StyleSheet
│ │ │ └── index.ts
│ ├── .eslintrc.js
│ ├── jest.config.js
│ └── babel.config.js
├── eslint-config-taro
│ ├── preact.js
│ ├── nerv.js
│ ├── react.js
│ ├── html-tags.js
│ ├── vue.js
│ └── vue3.js
├── taro-plugin-vue3
│ ├── README.md
│ ├── index.js
│ ├── src
│ │ └── runtime
│ │ │ └── plugins.ts
│ └── tsconfig.json
├── stylelint-taro-rn
│ ├── src
│ │ └── utils
│ │ │ ├── isString.js
│ │ │ ├── kebabCase.js
│ │ │ ├── endsWith.js
│ │ │ ├── namespace.js
│ │ │ ├── isCustomProperty.js
│ │ │ ├── hasScssInterpolation.js
│ │ │ └── hasPsvInterpolation.js
│ └── babel.config.js
├── postcss-plugin-constparse
│ ├── README.md
│ └── package.json
├── taro-plugin-react
│ ├── README.md
│ ├── index.js
│ └── tsconfig.json
├── taro-helper
│ ├── jest.config.js
│ ├── index.js
│ ├── .eslintrc.js
│ └── types
│ │ └── babelRegister.d.ts
├── taro-service
│ ├── jest.config.js
│ ├── index.js
│ ├── src
│ │ └── index.ts
│ └── .eslintrc.js
├── taro-runtime
│ ├── src
│ │ ├── interface
│ │ │ ├── element.ts
│ │ │ └── utils.ts
│ │ ├── dom
│ │ │ ├── svg.ts
│ │ │ └── node_types.ts
│ │ ├── options.ts
│ │ ├── __tests__
│ │ │ └── utils.js
│ │ ├── env.ts
│ │ └── bom
│ │ │ └── getComputedStyle.ts
│ └── tsconfig.test.json
├── taro-rn-runner
│ ├── index.js
│ ├── .eslintrc.js
│ ├── README.md
│ └── __tests__
│ │ └── mock
│ │ └── config
│ │ └── dev.js
├── taro-with-weapp
│ ├── index.js
│ ├── README.md
│ ├── tsconfig.json
│ └── babel.config.json
├── taro-plugin-vue-devtools
│ ├── index.js
│ ├── tsconfig.json
│ └── src
│ │ └── runtime.ts
├── taro-router
│ ├── src
│ │ └── index.ts
│ ├── tsconfig.json
│ └── jest.config.js
├── taro-api
│ ├── README.md
│ └── src
│ │ └── utils.js
├── taro-plugin-react-devtools
│ ├── index.js
│ ├── src
│ │ └── loader.ts
│ └── tsconfig.json
├── taro-components-react
│ ├── global.d.ts
│ └── src
│ │ └── components
│ │ ├── view
│ │ └── style
│ │ │ └── index.css
│ │ └── swiper
│ │ └── style
│ │ └── index.css
├── stylelint-config-taro-rn
│ └── screenshots
│ │ └── warning.png
├── babel-plugin-transform-taroapi
│ ├── types.d.ts
│ └── package.json
├── taro-runtime-rn
│ └── .eslintrc.js
├── shared
│ ├── src
│ │ ├── index.ts
│ │ └── shortcuts.ts
│ ├── README.md
│ └── tsconfig.json
├── babel-preset-taro
│ └── .eslintrc.js
└── babel-plugin-transform-react-jsx-to-rn-stylesheet
│ ├── jest.config.js
│ └── babel.config.js
├── examples
├── build-weapp-plugin
│ ├── src
│ │ ├── app.scss
│ │ ├── plugin
│ │ │ ├── pages
│ │ │ │ └── list
│ │ │ │ │ ├── list.scss
│ │ │ │ │ └── list.config.ts
│ │ │ ├── components
│ │ │ │ ├── listItem
│ │ │ │ │ ├── listItem.scss
│ │ │ │ │ └── listItem.config.ts
│ │ │ │ └── avatar
│ │ │ │ │ ├── avatar.config.ts
│ │ │ │ │ └── avatar.scss
│ │ │ ├── doc
│ │ │ │ ├── example.jpeg
│ │ │ │ └── README.md
│ │ │ ├── index.ts
│ │ │ └── plugin.json
│ │ ├── my-export.js
│ │ ├── component
│ │ │ ├── comp.json
│ │ │ ├── comp.wxml
│ │ │ ├── comp.wxss
│ │ │ └── comp.js
│ │ └── pages
│ │ │ └── index
│ │ │ └── index.config.ts
│ ├── .gitignore
│ ├── config
│ │ ├── dev.js
│ │ └── prod.js
│ ├── .eslintrc.js
│ └── babel.config.js
├── custom-tabbar-react
│ ├── src
│ │ ├── app.scss
│ │ ├── custom-tab-bar
│ │ │ └── index.config.ts
│ │ ├── images
│ │ │ ├── tabbar_my.png
│ │ │ ├── tabbar_cart.png
│ │ │ ├── tabbar_cate.png
│ │ │ ├── tabbar_home.png
│ │ │ ├── tabbar_my_on.png
│ │ │ ├── tabbar_cart_on.png
│ │ │ ├── tabbar_cate_on.png
│ │ │ └── tabbar_home_on.png
│ │ └── pages
│ │ │ ├── my
│ │ │ └── index.config.ts
│ │ │ ├── cart
│ │ │ └── index.config.ts
│ │ │ ├── cate
│ │ │ └── index.config.ts
│ │ │ └── index
│ │ │ └── index.config.ts
│ ├── .eslintrc
│ ├── config
│ │ └── dev.js
│ └── babel.config.js
├── custom-tabbar-vue3
│ ├── src
│ │ ├── app.scss
│ │ ├── custom-tab-bar
│ │ │ └── index.config.ts
│ │ ├── images
│ │ │ ├── tabbar_my.png
│ │ │ ├── tabbar_cart.png
│ │ │ ├── tabbar_cate.png
│ │ │ ├── tabbar_home.png
│ │ │ ├── tabbar_my_on.png
│ │ │ ├── tabbar_cart_on.png
│ │ │ ├── tabbar_cate_on.png
│ │ │ └── tabbar_home_on.png
│ │ ├── pages
│ │ │ ├── cart
│ │ │ │ ├── index.config.ts
│ │ │ │ └── index.vue
│ │ │ ├── cate
│ │ │ │ ├── index.config.ts
│ │ │ │ └── index.vue
│ │ │ ├── index
│ │ │ │ ├── index.config.ts
│ │ │ │ └── index.vue
│ │ │ └── my
│ │ │ │ ├── index.config.ts
│ │ │ │ └── index.vue
│ │ └── app.ts
│ ├── .eslintrc.js
│ ├── config
│ │ └── dev.js
│ └── babel.config.js
├── blended-basic
│ ├── miniapp
│ │ ├── components
│ │ │ └── title
│ │ │ │ ├── index.json
│ │ │ │ ├── index.wxml
│ │ │ │ └── index.js
│ │ ├── pages
│ │ │ └── index
│ │ │ │ └── index.json
│ │ ├── sitemap.json
│ │ └── app.wxss
│ ├── taro-project
│ │ ├── src
│ │ │ ├── components
│ │ │ │ └── title
│ │ │ │ │ ├── index.json
│ │ │ │ │ ├── index.wxml
│ │ │ │ │ └── index.js
│ │ │ ├── app.scss
│ │ │ ├── subpackages
│ │ │ │ ├── bar
│ │ │ │ │ ├── index.scss
│ │ │ │ │ └── index.config.js
│ │ │ │ └── foo
│ │ │ │ │ ├── index.scss
│ │ │ │ │ └── index.config.js
│ │ │ ├── pages
│ │ │ │ └── index
│ │ │ │ │ ├── index.scss
│ │ │ │ │ └── index.config.js
│ │ │ └── common
│ │ │ │ ├── index.js
│ │ │ │ └── tools.js
│ │ ├── .eslintrc
│ │ ├── config
│ │ │ └── dev.js
│ │ └── babel.config.js
│ └── .gitignore
├── blended-apart
│ ├── taro-project
│ │ ├── src
│ │ │ ├── app.scss
│ │ │ ├── pages
│ │ │ │ └── index
│ │ │ │ │ ├── index.scss
│ │ │ │ │ └── index.config.js
│ │ │ └── app.config.js
│ │ ├── .eslintrc
│ │ ├── config
│ │ │ └── dev.js
│ │ └── babel.config.js
│ ├── miniapp
│ │ ├── pages
│ │ │ └── index
│ │ │ │ └── index.json
│ │ ├── sitemap.json
│ │ └── app.wxss
│ └── .gitignore
├── blended-taro-component
│ ├── taro-project
│ │ ├── .eslintrc
│ │ ├── src
│ │ │ ├── pages
│ │ │ │ ├── detail
│ │ │ │ │ ├── index.scss
│ │ │ │ │ └── index.config.js
│ │ │ │ └── index
│ │ │ │ │ └── index.config.js
│ │ │ ├── components
│ │ │ │ └── picker
│ │ │ │ │ ├── index.scss
│ │ │ │ │ └── index.config.js
│ │ │ └── app.config.js
│ │ ├── config
│ │ │ └── dev.js
│ │ └── babel.config.js
│ ├── .gitignore
│ └── miniapp
│ │ ├── pages
│ │ └── index
│ │ │ └── index.json
│ │ ├── sitemap.json
│ │ └── app.wxss
└── weapp-independent-subpackages
│ ├── src
│ ├── pages
│ │ ├── sub
│ │ │ └── sub-one
│ │ │ │ ├── index.scss
│ │ │ │ └── index.config.ts
│ │ └── index
│ │ │ ├── index.config.ts
│ │ │ └── index.tsx
│ └── app.ts
│ ├── .eslintrc
│ ├── config
│ └── dev.js
│ └── babel.config.js
├── .commitlintrc.js
├── .prettierrc
├── .stylelintignore
├── babel.config.json
├── commitlint.config.js
├── .github
└── ISSUE_TEMPLATE
│ └── config.yml
├── .gitignore
└── .editorconfig
/packages/taro-cli/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-loader/.gitignore:
--------------------------------------------------------------------------------
1 | lib
--------------------------------------------------------------------------------
/packages/taro-rn-transformer/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-runner-utils/.gitignore:
--------------------------------------------------------------------------------
1 | types
--------------------------------------------------------------------------------
/packages/taro-cli/templates/default/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-react/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 | lib
3 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/.watchmanconfig:
--------------------------------------------------------------------------------
1 | {}
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/.gitignore:
--------------------------------------------------------------------------------
1 | @tarojs
2 |
--------------------------------------------------------------------------------
/packages/taro-rn-transformer/__tests__/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-rn/.gitignore:
--------------------------------------------------------------------------------
1 | apiList.js
2 | libList.js
--------------------------------------------------------------------------------
/packages/taro-qq/.gitignore:
--------------------------------------------------------------------------------
1 | types
2 | !types/shims-qq.d.ts
--------------------------------------------------------------------------------
/packages/taro-router-rn/README.md:
--------------------------------------------------------------------------------
1 | # taro router rn
2 |
--------------------------------------------------------------------------------
/examples/blended-basic/miniapp/components/title/index.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/pages/list/list.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/default/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-cli/templates/default/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-jd/.gitignore:
--------------------------------------------------------------------------------
1 | types
2 | !types/shims-jd.d.ts
3 |
--------------------------------------------------------------------------------
/packages/taro-plugin-html/README.md:
--------------------------------------------------------------------------------
1 | # @tarojs/plugin-html
2 |
--------------------------------------------------------------------------------
/packages/taro-rn-supporter/README.md:
--------------------------------------------------------------------------------
1 | #### 支持集成到现有RN项目的包
2 |
--------------------------------------------------------------------------------
/packages/taro-tt/.gitignore:
--------------------------------------------------------------------------------
1 | types
2 | !types/shims-tt.d.ts
3 |
--------------------------------------------------------------------------------
/packages/taro-h5/__mocks__/styleMock.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/babel/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/nerv/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/react/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/sass/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/vue/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/vue3/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-swan/.gitignore:
--------------------------------------------------------------------------------
1 | types
2 | !types/shims-swan.d.ts
3 |
--------------------------------------------------------------------------------
/packages/taro-weapp/.gitignore:
--------------------------------------------------------------------------------
1 | types
2 | !types/shims-weapp.d.ts
3 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/nerv/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/vue/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/vue3/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/mocks/taro-components.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taroize/.gitignore:
--------------------------------------------------------------------------------
1 | lib
2 | t.js
3 | *.wxml
4 | s.js
5 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/components/title/index.json:
--------------------------------------------------------------------------------
1 | {}
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/components/listItem/listItem.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-alipay/.gitignore:
--------------------------------------------------------------------------------
1 | types
2 | !types/shims-alipay.d.ts
3 |
--------------------------------------------------------------------------------
/packages/taro-components/__mocks__/styleMock.js:
--------------------------------------------------------------------------------
1 | module.exports = {}
2 |
--------------------------------------------------------------------------------
/packages/taro-components/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from './components'
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/config/origin/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/css-modules/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/parse-html/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/prerender/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/subpackages/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/typescript/src/app.less:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/wx-hybrid/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-plugin-mini-ci/src/types.d.ts:
--------------------------------------------------------------------------------
1 | declare module 'tt-ide-cli'
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/babel/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/config/origin/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/react/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/sass/src/app.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/default/src/pages/index/index.scss:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/presets/constant/index.ts:
--------------------------------------------------------------------------------
1 | export * from './hooks'
2 |
--------------------------------------------------------------------------------
/packages/taro-h5/__mocks__/fileMock.js:
--------------------------------------------------------------------------------
1 | module.exports = 'test-file-stub'
2 |
--------------------------------------------------------------------------------
/packages/taro-h5/__mocks__/setEnv.ts:
--------------------------------------------------------------------------------
1 | process.env.NODE_ENV = 'production'
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/compiler-macros/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/vue/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-plugin-vue2/src/runtime/index.ts:
--------------------------------------------------------------------------------
1 | export * from './connect'
2 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/css-modules/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/subpackages/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/typescript/src/app.less:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/examples/blended-apart/taro-project/src/app.scss:
--------------------------------------------------------------------------------
1 | .red {
2 | color: red
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/app.scss:
--------------------------------------------------------------------------------
1 | .red {
2 | color: red
3 | }
4 |
--------------------------------------------------------------------------------
/packages/postcss-html-transform/README.md:
--------------------------------------------------------------------------------
1 | # `postcss-html-transform`
2 |
3 |
4 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/README.md:
--------------------------------------------------------------------------------
1 | # Taro Components for React Native
2 |
3 |
--------------------------------------------------------------------------------
/packages/taro-extend/src/index.js:
--------------------------------------------------------------------------------
1 | export { Zepto as $ } from './jquery/zepto'
2 |
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/not-export-default.txt:
--------------------------------------------------------------------------------
1 | const a = 'b'
2 |
--------------------------------------------------------------------------------
/packages/taro-loader/src/raw.ts:
--------------------------------------------------------------------------------
1 | export function pitch () {
2 | // empty
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/babel/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/nerv/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/react/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/vue3/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/mocks/vue.ts:
--------------------------------------------------------------------------------
1 | export default 'vue-mock'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/saveFile/index.ts:
--------------------------------------------------------------------------------
1 | export { saveFile } from '../file'
2 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/babel/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/compiler-macros/src/app.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/nerv/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/react/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/vue/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/vue3/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taroize/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./lib/src/index').parse
2 |
--------------------------------------------------------------------------------
/examples/blended-apart/miniapp/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/examples/blended-basic/miniapp/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {}
3 | }
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | miniprogram/
3 | .DS_Store
4 |
--------------------------------------------------------------------------------
/packages/css-to-react-native/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-env"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/config/origin/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/parse-html/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/prerender/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/mocks/deps.ts:
--------------------------------------------------------------------------------
1 | export default 'dependencies'
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/mocks/nerv.ts:
--------------------------------------------------------------------------------
1 | export default 'nervjs-mock'
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/mocks/react.ts:
--------------------------------------------------------------------------------
1 | export default 'react-mock'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/b.css:
--------------------------------------------------------------------------------
1 | .b {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/b.less:
--------------------------------------------------------------------------------
1 | .b {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/b.scss:
--------------------------------------------------------------------------------
1 | .b {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/b.styl:
--------------------------------------------------------------------------------
1 | .b {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/c.css:
--------------------------------------------------------------------------------
1 | .c {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/variable.scss:
--------------------------------------------------------------------------------
1 | $base-color: #c6538c;
--------------------------------------------------------------------------------
/packages/taro-rn/script/index.js:
--------------------------------------------------------------------------------
1 | require('./getApiList')
2 | require('./getLibList')
3 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getFileInfo/index.ts:
--------------------------------------------------------------------------------
1 | export { getFileInfo } from '../file'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/uploadFile/index.ts:
--------------------------------------------------------------------------------
1 | export { uploadFile } from '../file'
2 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/config/origin/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/mocks/vue.ts:
--------------------------------------------------------------------------------
1 | export default 'vue-mock'
2 |
--------------------------------------------------------------------------------
/examples/blended-apart/taro-project/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["taro/react"]
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["taro/react"]
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-cli/.gitignore:
--------------------------------------------------------------------------------
1 | templates/*
2 | !templates/default
3 | templates/default/.*
4 |
--------------------------------------------------------------------------------
/packages/taro-jd/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-jd`
2 |
3 | Taro 插件。用于支持编译为京东小程序。
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/compiler-macros/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/b.rn.css:
--------------------------------------------------------------------------------
1 | .brn {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/d.scss:
--------------------------------------------------------------------------------
1 | .d {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/authorize/index.ts:
--------------------------------------------------------------------------------
1 | export { authorize } from '../permission'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/downloadFile/index.ts:
--------------------------------------------------------------------------------
1 | export { downloadFile } from '../file'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getSetting/index.ts:
--------------------------------------------------------------------------------
1 | export { getSetting } from '../permission'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/openSetting/index.ts:
--------------------------------------------------------------------------------
1 | export { openSetting } from '../permission'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/startGyroscope/index.ts:
--------------------------------------------------------------------------------
1 | export { startGyroscope } from '../gyroscope'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/vibrateLong/index.ts:
--------------------------------------------------------------------------------
1 | export { vibrateLong } from '../vibrate'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/vibrateShort/index.ts:
--------------------------------------------------------------------------------
1 | export { vibrateShort } from '../vibrate'
2 |
--------------------------------------------------------------------------------
/packages/taro-tt/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-tt`
2 |
3 | Taro 插件。用于支持编译为头条小程序。
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/compiler-macros/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/subpackages/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/mocks/nerv.ts:
--------------------------------------------------------------------------------
1 | export default 'nervjs-mock'
2 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/mocks/react.ts:
--------------------------------------------------------------------------------
1 | export default 'react-mock'
2 |
--------------------------------------------------------------------------------
/.commitlintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | extends: ['@commitlint/config-conventional']
3 | }
4 |
--------------------------------------------------------------------------------
/.prettierrc:
--------------------------------------------------------------------------------
1 | {
2 | "semi": false,
3 | "singleQuote": true,
4 | "printWidth": 120
5 | }
6 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/taro-project/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["taro/react"]
3 | }
4 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/my-export.js:
--------------------------------------------------------------------------------
1 | module.exports = { whoami: 'Wechat MiniProgram' }
2 |
--------------------------------------------------------------------------------
/packages/eslint-config-taro/preact.js:
--------------------------------------------------------------------------------
1 | module.exports = Object.assign({}, require('./react'))
2 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/setup.ts:
--------------------------------------------------------------------------------
1 | import '@testing-library/jest-native/extend-expect'
2 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/ai/index.ts:
--------------------------------------------------------------------------------
1 | export * from './facial'
2 | export * from './visual'
3 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/types/index.d.ts:
--------------------------------------------------------------------------------
1 | import TaroH5 from './type'
2 |
3 | export = TaroH5
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/config/origin/irrelevant.txt:
--------------------------------------------------------------------------------
1 | I m irrelevant.
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/mocks/taro-react.ts:
--------------------------------------------------------------------------------
1 | export default 'taro-react-mock'
2 |
--------------------------------------------------------------------------------
/packages/taro-qq/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-qq`
2 |
3 | Taro 插件。用于支持编译为 QQ 小程序。
4 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/d.rn.scss:
--------------------------------------------------------------------------------
1 | .drn {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/nest.rn.less:
--------------------------------------------------------------------------------
1 | .nest {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getNetworkType/index.ts:
--------------------------------------------------------------------------------
1 | export { getNetworkType } from '../network'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getSavedFileInfo/index.ts:
--------------------------------------------------------------------------------
1 | export { getSavedFileInfo } from '../file'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getSavedFileList/index.ts:
--------------------------------------------------------------------------------
1 | export { getSavedFileList } from '../file'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getStorageSync/index.ts:
--------------------------------------------------------------------------------
1 | export { getStorageSync } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/hideKeyboard/index.ts:
--------------------------------------------------------------------------------
1 | export { hideKeyboard } from '../keyboard'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/hideToast/index.ts:
--------------------------------------------------------------------------------
1 | export { hideToast } from '../showModal/toast'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/offLocationChange/index.ts:
--------------------------------------------------------------------------------
1 | export { offLocationChange } from '../location'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/onLocationChange/index.ts:
--------------------------------------------------------------------------------
1 | export { onLocationChange } from '../location'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/removeSavedFile/index.ts:
--------------------------------------------------------------------------------
1 | export { removeSavedFile } from '../file'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/setStorageSync/index.ts:
--------------------------------------------------------------------------------
1 | export { setStorageSync } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/showToast/index.ts:
--------------------------------------------------------------------------------
1 | export { showToast } from '../showModal/toast'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/stopGyroscope/index.ts:
--------------------------------------------------------------------------------
1 | export { stopGyroscope } from '../gyroscope'
2 |
--------------------------------------------------------------------------------
/packages/taro-swan/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-swan`
2 |
3 | Taro 插件。用于支持编译为百度小程序。
4 |
--------------------------------------------------------------------------------
/packages/taro-weapp/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-weapp`
2 |
3 | Taro 插件。用于支持编译为微信小程序。
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/miniapp/components/title/index.wxml:
--------------------------------------------------------------------------------
1 |
2 | Title: {{title}}
3 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/subpackages/bar/index.scss:
--------------------------------------------------------------------------------
1 | .blue {
2 | color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-alipay/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-alipay`
2 |
3 | Taro 插件。用于支持编译为支付宝小程序。
4 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/components/CoverImage/index.tsx:
--------------------------------------------------------------------------------
1 | export { default } from '../Image'
2 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/components/CoverView/index.tsx:
--------------------------------------------------------------------------------
1 | export { default } from '../View'
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/config/origin/weapp/index.wxml:
--------------------------------------------------------------------------------
1 | weapp
2 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/mocks/taro-runtime.ts:
--------------------------------------------------------------------------------
1 | export default 'taro-runtime-mock'
2 |
--------------------------------------------------------------------------------
/packages/taro-plugin-vue2/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-vue2`
2 |
3 | Taro 插件。用于支持编译 Vue2。
4 |
--------------------------------------------------------------------------------
/packages/taro-plugin-vue3/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-vue3`
2 |
3 | Taro 插件。用于支持编译 Vue3。
4 |
--------------------------------------------------------------------------------
/packages/taro-rn/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/taro-rn`
2 |
3 | 暴露给 `@tarojs/taro` 的 React Native 端 API。
4 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/clearStorageSync/index.ts:
--------------------------------------------------------------------------------
1 | export { clearStorageSync } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/hideLoading/index.ts:
--------------------------------------------------------------------------------
1 | export { hideLoading } from '../showModal/toast'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/showLoading/index.ts:
--------------------------------------------------------------------------------
1 | export { showLoading } from '../showModal/toast'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/startLocationUpdate/index.ts:
--------------------------------------------------------------------------------
1 | export { startLocationUpdate } from '../location'
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/config/origin/irrelevant.txt:
--------------------------------------------------------------------------------
1 | I m irrelevant.
2 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/mocks/taro-shared.ts:
--------------------------------------------------------------------------------
1 | export default 'taro-shared-mock'
2 |
--------------------------------------------------------------------------------
/.stylelintignore:
--------------------------------------------------------------------------------
1 | examples
2 | __tests__
3 | __mocks__
4 |
5 | node_modules
6 | *.log
7 | *.lock
8 |
--------------------------------------------------------------------------------
/examples/blended-apart/.gitignore:
--------------------------------------------------------------------------------
1 | miniapp/taro
2 | taro-project/dist
3 | **/node_modules
4 | .DS_Store
5 |
--------------------------------------------------------------------------------
/examples/blended-apart/taro-project/src/pages/index/index.scss:
--------------------------------------------------------------------------------
1 | .index {
2 | font-size: 40px;
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/.gitignore:
--------------------------------------------------------------------------------
1 | miniapp/taro
2 | taro-project/dist
3 | **/node_modules
4 | .DS_Store
5 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/components/title/index.wxml:
--------------------------------------------------------------------------------
1 |
2 | Title: {{title}}
3 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/pages/index/index.scss:
--------------------------------------------------------------------------------
1 | .index {
2 | font-size: 40px;
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/subpackages/foo/index.scss:
--------------------------------------------------------------------------------
1 | .yellow {
2 | color: yellow;
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/taro-project/src/pages/detail/index.scss:
--------------------------------------------------------------------------------
1 | .blue {
2 | color: blue
3 | }
4 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/components/avatar/avatar.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 |
3 | }
4 |
--------------------------------------------------------------------------------
/examples/weapp-independent-subpackages/src/pages/sub/sub-one/index.scss:
--------------------------------------------------------------------------------
1 | .red {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/components/CustomWrapper/index.tsx:
--------------------------------------------------------------------------------
1 | export { default } from '../Block'
2 |
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/basic_1.txt:
--------------------------------------------------------------------------------
1 | import { app } from './app'
2 | export default app
3 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/mocks/taro-components.ts:
--------------------------------------------------------------------------------
1 | export default 'taro-components-mock'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/canIUse/index.ts:
--------------------------------------------------------------------------------
1 | export function canIUse(): boolean {
2 | return true
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getScreenBrightness/index.ts:
--------------------------------------------------------------------------------
1 | export { getScreenBrightness } from '../screen'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getStorageInfoSync/index.ts:
--------------------------------------------------------------------------------
1 | export { getStorageInfoSync } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/offGyroscopeChange/index.ts:
--------------------------------------------------------------------------------
1 | export { offGyroscopeChange } from '../gyroscope'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/onGyroscopeChange/index.ts:
--------------------------------------------------------------------------------
1 | export { onGyroscopeChange } from '../gyroscope'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/onUserCaptureScreen/index.ts:
--------------------------------------------------------------------------------
1 | export { onUserCaptureScreen } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/removeStorageSync/index.ts:
--------------------------------------------------------------------------------
1 | export { removeStorageSync } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/setScreenBrightness/index.ts:
--------------------------------------------------------------------------------
1 | export { setScreenBrightness } from '../screen'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/stopLocationUpdate/index.ts:
--------------------------------------------------------------------------------
1 | export { stopLocationUpdate } from '../location'
2 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/config/origin/weapp/index.wxml:
--------------------------------------------------------------------------------
1 | weapp
2 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/taro-project/src/components/picker/index.scss:
--------------------------------------------------------------------------------
1 | .red {
2 | color: red
3 | }
4 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/components/listItem/listItem.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 |
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/custom-tab-bar/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/packages/stylelint-taro-rn/src/utils/isString.js:
--------------------------------------------------------------------------------
1 | export const isString = string => typeof string === 'string'
2 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/types/define.d.ts:
--------------------------------------------------------------------------------
1 | // NOTE: 允许用户自定义的常量
2 | declare const LOCATION_APIKEY: string | undefined
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getFileSystemManager/index.ts:
--------------------------------------------------------------------------------
1 | export { getFileSystemManager } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/offNetworkStatusChange/index.ts:
--------------------------------------------------------------------------------
1 | export { offNetworkStatusChange } from '../network'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/offUserCaptureScreen/index.ts:
--------------------------------------------------------------------------------
1 | export { offUserCaptureScreen } from '../unsupportedApi'
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/onNetworkStatusChange/index.ts:
--------------------------------------------------------------------------------
1 | export { onNetworkStatusChange } from '../network'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/startAccelerometer/index.ts:
--------------------------------------------------------------------------------
1 | export { startAccelerometer } from '../accelerometer'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/stopAccelerometer/index.ts:
--------------------------------------------------------------------------------
1 | export { stopAccelerometer } from '../accelerometer'
2 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/sass/input/pages/index/index.sass:
--------------------------------------------------------------------------------
1 | .index
2 | color: red
3 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/.gitignore:
--------------------------------------------------------------------------------
1 | miniapp/taro
2 | taro-project/dist
3 | **/node_modules
4 | .DS_Store
5 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/component/comp.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {}
4 | }
5 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/custom-tab-bar/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | "component": true
3 | }
4 |
--------------------------------------------------------------------------------
/packages/css-to-react-native/src/utils/allEqual.js:
--------------------------------------------------------------------------------
1 | export const allEqual = arr => arr.every(v => v === arr[0])
2 |
--------------------------------------------------------------------------------
/packages/postcss-plugin-constparse/README.md:
--------------------------------------------------------------------------------
1 | # `postcss-plugin-constparse`
2 |
3 | 在 H5 环境中 `tabbar` 的高度固定在 50px。
4 |
--------------------------------------------------------------------------------
/packages/taro-cli/global.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.json' {
2 | const value: any
3 | export default value
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/style/declaration/color/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | opacity: ''
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-plugin-react/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/plugin-platform-react`
2 |
3 | Taro 插件。用于支持编译 React/PReact/Nerv。
4 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/offDeviceMotionChange/index.ts:
--------------------------------------------------------------------------------
1 | export { offDeviceMotionChange } from '../deviceMotion'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/offKeyboardHeightChange/index.ts:
--------------------------------------------------------------------------------
1 | export { offKeyboardHeightChange } from '../keyboard'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/onAccelerometerChange/index.ts:
--------------------------------------------------------------------------------
1 | export { onAccelerometerChange } from '../accelerometer'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/onDeviceMotionChange/index.ts:
--------------------------------------------------------------------------------
1 | export { onDeviceMotionChange } from '../deviceMotion'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/onKeyboardHeightChange/index.ts:
--------------------------------------------------------------------------------
1 | export { onKeyboardHeightChange } from '../keyboard'
2 |
--------------------------------------------------------------------------------
/packages/taro-router-rn/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | preset: 'jest-expo',
3 | verbose: true
4 | }
5 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/component/comp.wxml:
--------------------------------------------------------------------------------
1 |
2 | 我是小程序的自定义组件
3 |
4 |
--------------------------------------------------------------------------------
/examples/weapp-independent-subpackages/src/app.ts:
--------------------------------------------------------------------------------
1 | export default function (props) {
2 | return props.children
3 | }
4 |
--------------------------------------------------------------------------------
/packages/css-to-react-native/src/utils/values.js:
--------------------------------------------------------------------------------
1 | export const values = obj => Object.keys(obj).map(key => obj[key])
2 |
--------------------------------------------------------------------------------
/packages/taro-helper/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | preset: 'ts-jest',
3 | testEnvironment: 'node'
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/common-style/src/app.scss:
--------------------------------------------------------------------------------
1 | .body {
2 | background-color: #e8e8ed;
3 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/common-style/src/components/title/index.config.js:
--------------------------------------------------------------------------------
1 | export default {}
2 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/c.less:
--------------------------------------------------------------------------------
1 | @import ' ./nest.less ';
2 |
3 | .c {
4 | color: red;
5 | }
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/c.scss:
--------------------------------------------------------------------------------
1 | @import './d.scss';
2 |
3 | .c {
4 | color: red;
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/offAccelerometerChange/index.ts:
--------------------------------------------------------------------------------
1 | export { offAccelerometerChange } from '../accelerometer'
2 |
--------------------------------------------------------------------------------
/packages/taro-service/jest.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | preset: 'ts-jest',
3 | testEnvironment: 'node'
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-tt/src/components-react.ts:
--------------------------------------------------------------------------------
1 | export * from '@tarojs/components/mini'
2 | export const RtcRoom = 'rtc-room'
3 |
--------------------------------------------------------------------------------
/examples/blended-basic/miniapp/components/title/index.js:
--------------------------------------------------------------------------------
1 | Component({
2 | data: {
3 | title: "Hello World"
4 | }
5 | })
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/components/avatar/avatar.scss:
--------------------------------------------------------------------------------
1 | .logo {
2 | width: 200px;
3 | height: 200px;
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-cli/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/config/rn-stylelint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "stylelint-config-taro-rn",
3 | "rules": {
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-components/src/components/cover-view/style/cover-view.scss:
--------------------------------------------------------------------------------
1 | taro-cover-view-core {
2 | display: block;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-components/src/components/navigator/style/index.scss:
--------------------------------------------------------------------------------
1 | .navigator-hover {
2 | background: #efefef;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/common-style/src/components/title/index.scss:
--------------------------------------------------------------------------------
1 | .title {
2 | color: red;
3 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/css-modules/src/index.global.css:
--------------------------------------------------------------------------------
1 | .chomepage {
2 | background: grey;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/custom-tab-bar/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | }
3 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/sass/src/common/global.scss:
--------------------------------------------------------------------------------
1 | .body {
2 | background-color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/wx-hybrid/src/pages/native/native.wxss:
--------------------------------------------------------------------------------
1 | .native {
2 | color: red;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/style/declaration/visibility/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | visibility: ''
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/__tests__/styles/c.rn.scss:
--------------------------------------------------------------------------------
1 | @import './d.scss';
2 |
3 | .crn {
4 | color: red;
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/startDeviceMotionListening/index.ts:
--------------------------------------------------------------------------------
1 | export { startDeviceMotionListening } from '../deviceMotion'
2 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/stopDeviceMotionListening/index.ts:
--------------------------------------------------------------------------------
1 | export { stopDeviceMotionListening } from '../deviceMotion'
2 |
--------------------------------------------------------------------------------
/packages/taro-runtime/src/interface/element.ts:
--------------------------------------------------------------------------------
1 | export interface Attributes {
2 | name: string;
3 | value: string;
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/sass/src/common/global.scss:
--------------------------------------------------------------------------------
1 | .body {
2 | background-color: blue;
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-apart/taro-project/src/app.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | pages: [
3 | 'pages/index/index'
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/examples/weapp-independent-subpackages/src/pages/index/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-components/src/components/picker/style/index.scss:
--------------------------------------------------------------------------------
1 | .weui-picker,
2 | .weui-picker__hd {
3 | font-size: 12px;
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-helper/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/css-modules/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 | .cwrapper {
2 | font-size: 36px;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-rn-runner/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-runtime/src/interface/utils.ts:
--------------------------------------------------------------------------------
1 | export type Func = (...args: any[]) => any
2 | export type Ctx = Record
3 |
--------------------------------------------------------------------------------
/packages/taro-service/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/css-modules/src/index.global.css:
--------------------------------------------------------------------------------
1 | .chomepage {
2 | background: grey;
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-with-weapp/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/examples/blended-apart/taro-project/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: 'Taro 分包页'
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/components/title/index.js:
--------------------------------------------------------------------------------
1 | Component({
2 | data: {
3 | title: "Hello World"
4 | }
5 | })
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/subpackages/bar/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: 'bar'
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/subpackages/foo/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: 'foo'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/vue/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-cli/templates/default/_gitignore:
--------------------------------------------------------------------------------
1 | dist/
2 | deploy_versions/
3 | .temp/
4 | .rn_temp/
5 | node_modules/
6 | .DS_Store
7 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/types/api.d.ts:
--------------------------------------------------------------------------------
1 | declare module '@tarojs/api' {
2 | import Taro from "@tarojs/taro"
3 | export = Taro
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/vue-imported.txt:
--------------------------------------------------------------------------------
1 | import Vue from 'vue'
2 | import { app } from './app'
3 | export default app
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/app.css:
--------------------------------------------------------------------------------
1 | page {
2 | width: '100%';
3 | height: '100%';
4 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/wx-hybrid/src/utils/util.js:
--------------------------------------------------------------------------------
1 | export function add (a, b) {
2 | return a + b
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-plugin-html/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-plugin-mini-ci/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-plugin-react/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-plugin-vue2/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-plugin-vue3/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/scanCode/icon_pic.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-rn/src/lib/scanCode/icon_pic.png
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/showModal/error.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-rn/src/lib/showModal/error.png
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/showModal/loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-rn/src/lib/showModal/loading.png
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/showModal/success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-rn/src/lib/showModal/success.png
--------------------------------------------------------------------------------
/packages/taro-runner-utils/README.md:
--------------------------------------------------------------------------------
1 | ### `@tarojs/runner-utils`
2 |
3 | 暴露给 `@tarojs/mini-runner` 和 `@tarojs/webpack-runner` 的公用工具函数。
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/css-modules/src/pages/index/index.css:
--------------------------------------------------------------------------------
1 | .cwrapper {
2 | font-size: 36px;
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/taro-project/src/pages/detail/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: 'Detail'
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/taro-project/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '测试页'
3 | }
4 |
--------------------------------------------------------------------------------
/examples/weapp-independent-subpackages/src/pages/sub/sub-one/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '独立分包'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/postcss-html-transform/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/default/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/nerv/src/pages/index/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/thumb.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/thumb.png
--------------------------------------------------------------------------------
/packages/taro-components/vue3.d.ts:
--------------------------------------------------------------------------------
1 | declare module '@tarojs/components' {
2 | export * from '@tarojs/components/types/index.vue3'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/ui/custom-component.ts:
--------------------------------------------------------------------------------
1 | import Taro from '@tarojs/api'
2 |
3 | // 自定义组件
4 | export const nextTick = Taro.nextTick
5 |
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/react-imported.txt:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { app } from './app'
3 | export default app
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/custom-tab-bar/index.css:
--------------------------------------------------------------------------------
1 | .icon {
2 | width: 68px;
3 | height: 68px;
4 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/css/sub-common.css:
--------------------------------------------------------------------------------
1 | .sub-common {
2 | content: 'sub-common';
3 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/css/sub-vendors.css:
--------------------------------------------------------------------------------
1 | .sub-vendors {
2 | content: 'sub-vendors';
3 | }
--------------------------------------------------------------------------------
/packages/taro-plugin-vue-devtools/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/scanCode/icon_close.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-rn/src/lib/scanCode/icon_close.png
--------------------------------------------------------------------------------
/packages/taro-router/src/index.ts:
--------------------------------------------------------------------------------
1 | export { history } from './history'
2 | export * from './api'
3 | export { createRouter } from './router'
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/mocks/taro-h5.ts:
--------------------------------------------------------------------------------
1 | export function createRouter () {}
2 | export function initPxTransform () {}
3 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/common/index.js:
--------------------------------------------------------------------------------
1 | export function printCommon () {
2 | console.log('I should be in main package')
3 | }
4 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/common/tools.js:
--------------------------------------------------------------------------------
1 | export function printTool () {
2 | console.log('I should be in sub package')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-api/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/api`
2 |
3 | 暴露给 @tarojs/taro 的所有端的公有 API。`@tarojs/api` 会跨 node/浏览器/小程序/React Native 使用,不得使用/包含平台特有特性。
4 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/doctor/interface.ts:
--------------------------------------------------------------------------------
1 | export interface IErrorLine {
2 | desc: string;
3 | valid: boolean;
4 | solution?: string;
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-cli/templates/default/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '首页'
3 | })
4 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/__tests__/1x1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/__tests__/1x1.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/loading.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/loading.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/babel/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/nerv/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/react/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/sass/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/subpackages/src/packageA/detail/index.css:
--------------------------------------------------------------------------------
1 | .detail {
2 | width: 100%;
3 | height: 100%;
4 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/vue/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/vue3/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-plugin-react-devtools/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/src/config/rn-stylelint.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "stylelint-config-taro-rn",
3 | "rules": {
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-rn-supporter/src/index.ts:
--------------------------------------------------------------------------------
1 | import { Supporter } from './Support'
2 | export default { Supporter }
3 | module.exports = Supporter
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/subpackages/src/packageA/detail/index.css:
--------------------------------------------------------------------------------
1 | .detail {
2 | width: 100%;
3 | height: 100%;
4 | }
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/pages/list/list.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | "componentGenerics": {
3 | "mp-comp": true
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_my.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_my.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_my.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_my.png
--------------------------------------------------------------------------------
/packages/stylelint-taro-rn/src/utils/kebabCase.js:
--------------------------------------------------------------------------------
1 | export const kebabCase = string =>
2 | string.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()
3 |
--------------------------------------------------------------------------------
/packages/taro-components-react/global.d.ts:
--------------------------------------------------------------------------------
1 | declare namespace JSX {
2 | interface IntrinsicElements {
3 | [elemName: string]: any;
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/back.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/back.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/info.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/warn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/warn.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/video/full.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/video/full.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/video/mute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/video/mute.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/video/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/video/play.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/audio/style/index.scss:
--------------------------------------------------------------------------------
1 | @charset "UTF-8";
2 |
3 | audio {
4 | max-width: 100%;
5 | outline: none;
6 | }
7 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/config/origin/alias/utils/index.js:
--------------------------------------------------------------------------------
1 | export function say () {
2 | console.log('little cat')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/config/origin/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/parse-html/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/prerender/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/pages/about/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '关于'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/typescript/src/pages/index/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/getEnv/index.ts:
--------------------------------------------------------------------------------
1 | import { ENV_TYPE } from '../ENV_TYPE'
2 |
3 | export function getEnv(): string {
4 | return ENV_TYPE.RN
5 | }
--------------------------------------------------------------------------------
/packages/taro-runtime/src/dom/svg.ts:
--------------------------------------------------------------------------------
1 | import { TaroElement } from './element'
2 |
3 | // for Vue3
4 | export class SVGElement extends TaroElement {}
5 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/babel/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/config/origin/alias/utils/index.js:
--------------------------------------------------------------------------------
1 | export function say () {
2 | console.log('little cat')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/nerv/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/react/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/sass/input/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/sass/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/vue/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/vue3/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/doc/example.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/build-weapp-plugin/src/plugin/doc/example.jpeg
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/index.ts:
--------------------------------------------------------------------------------
1 | export function sayHello () {
2 | console.log('Hello plugin!')
3 | }
4 |
5 | export const answer = 42
6 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_cart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_cart.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_cate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_cate.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_home.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_my_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_my_on.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_cart.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_cart.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_cate.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_cate.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_home.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_home.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_my_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_my_on.png
--------------------------------------------------------------------------------
/packages/stylelint-taro-rn/src/utils/endsWith.js:
--------------------------------------------------------------------------------
1 | export const endsWith = (str, suffix) =>
2 | str.indexOf(suffix, str.length - suffix.length) !== -1
3 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/cancel.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/cancel.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/circle.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/clear.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/clear.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/delete.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/delete.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/search.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/search.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/success.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/waiting.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/waiting.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/loading-warn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/loading-warn.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/video/pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/video/pause.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/video/shrink.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/video/shrink.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/video/unmute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/video/unmute.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/video/volume.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/video/volume.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/common-style/src/pages/about/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '关于'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/common-style/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/css-modules/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/pages/detail/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '详情页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/packageA/detail/index.css:
--------------------------------------------------------------------------------
1 | .detail {
2 | width: 100%;
3 | height: 100%;
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/subpackages/src/packageA/my/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '个人中心页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/subpackages/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/wx-hybrid/src/components/tab/tab.json:
--------------------------------------------------------------------------------
1 | {
2 | "component": true,
3 | "usingComponents": {
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/types/vue/index.d.ts:
--------------------------------------------------------------------------------
1 |
2 | declare namespace Vue {
3 | interface ComponentOptions{}
4 | }
5 |
6 | declare interface Vue {}
7 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/config/origin/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/css-modules/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/subpackages/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/typescript/src/pages/index/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_cart_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_cart_on.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_cate_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_cate_on.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/images/tabbar_home_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-react/src/images/tabbar_home_on.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_cart_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_cart_on.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_cate_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_cate_on.png
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/images/tabbar_home_on.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/examples/custom-tabbar-vue3/src/images/tabbar_home_on.png
--------------------------------------------------------------------------------
/packages/stylelint-config-taro-rn/screenshots/warning.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/stylelint-config-taro-rn/screenshots/warning.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/download.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/download.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/safe_warn.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/safe_warn.png
--------------------------------------------------------------------------------
/packages/taro-h5/src/index.ts:
--------------------------------------------------------------------------------
1 | import taro from './api/taro'
2 |
3 | export * from './api/index'
4 | export * from './api/taro'
5 |
6 | export default taro
7 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/css/sub-common.module.css:
--------------------------------------------------------------------------------
1 | .sub-common-module {
2 | content: 'sub-common-module';
3 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/css/sub-vendors.module.css:
--------------------------------------------------------------------------------
1 | .sub-vendors-module {
2 | content: 'sub-vendors-module';
3 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/packageA/my/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '个人中心页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/packageB/list/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '列表页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/utils/consoleLogMain.js:
--------------------------------------------------------------------------------
1 | export default () => {
2 | console.log('Main package')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/subpackages/src/packageA/detail/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '详情页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/utils/constants.ts:
--------------------------------------------------------------------------------
1 | export const QUICKAPP_SPECIAL_COMPONENTS = new Set([
2 | 'View',
3 | 'Text',
4 | 'Block'
5 | ])
6 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/config/origin/alias/files/index/index.js:
--------------------------------------------------------------------------------
1 | import { say } from '@/utils'
2 |
3 | console.log('say: ', say())
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/subpackages/src/packageA/detail/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '详情页'
3 | }
4 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/pages/my/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '个人中心',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/cart/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '购物车',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/cate/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '分类页',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/index/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '首页',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/my/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '个人中心',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/info_circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/info_circle.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/safe_success.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/safe_success.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/cover-image/style/index.scss:
--------------------------------------------------------------------------------
1 | taro-cover-image-core {
2 | overflow: hidden;
3 | width: 320px;
4 | height: 240px;
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-components/src/components/picker/constant.ts:
--------------------------------------------------------------------------------
1 | export const TOP = 102
2 | export const LINE_HEIGHT = 34
3 | export const MASK_HEIGHT = LINE_HEIGHT * 7
4 |
--------------------------------------------------------------------------------
/packages/taro-components/src/components/video/images/full.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components/src/components/video/images/full.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/video/images/mute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components/src/components/video/images/mute.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/video/images/play.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components/src/components/video/images/play.png
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/rename-app.txt:
--------------------------------------------------------------------------------
1 | class App extends Component {
2 | render () {
3 | return null
4 | }
5 | }
6 |
7 | export default App
8 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/packageA/detail/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '详情页'
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/subpackages/src/packageA/common.js:
--------------------------------------------------------------------------------
1 | export function someCommon (text) {
2 | console.log('log something: ', text)
3 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/wx-hybrid/src/components/tab/tab.wxml:
--------------------------------------------------------------------------------
1 |
2 | {{myProperty}}
3 |
4 |
--------------------------------------------------------------------------------
/packages/taro-plugin-mini-ci/types/QRCode.d.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * 生产二维码输出到控制台
3 | * @param url 链接地址
4 | */
5 | export default function generateQrCode(url: string): void;
6 |
--------------------------------------------------------------------------------
/packages/taro-with-weapp/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/with-weapp`
2 |
3 | 暴露给 `@tarojs/taroize` 的高阶函数。
4 |
5 | `withWeapp` 接受一个小程序规范的 `Page/App` 构造器参数,转换为对应框架规范的组件实例。
6 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/pages/cart/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '购物车',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/pages/cate/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '分类页',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/src/pages/index/index.config.ts:
--------------------------------------------------------------------------------
1 | export default definePageConfig({
2 | navigationBarTitleText: '首页',
3 | "usingComponents": {}
4 | })
5 |
--------------------------------------------------------------------------------
/packages/stylelint-taro-rn/src/utils/namespace.js:
--------------------------------------------------------------------------------
1 | const prefix = 'taro-rn'
2 |
3 | export function namespace (ruleName) {
4 | return `${prefix}/${ruleName}`
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/success_circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/success_circle.png
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/waiting_circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/waiting_circle.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/video/images/pause.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components/src/components/video/images/pause.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/video/images/shrink.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components/src/components/video/images/shrink.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/video/images/unmute.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components/src/components/video/images/unmute.png
--------------------------------------------------------------------------------
/packages/taro-components/src/components/video/images/volume.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components/src/components/video/images/volume.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/utils/testExcludeString.js:
--------------------------------------------------------------------------------
1 | export default () => {
2 | console.log('testExcludeString')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-plugin-vue3/src/runtime/plugins.ts:
--------------------------------------------------------------------------------
1 | export const setGlobalDataPlugin = {
2 | install: (app, data) => {
3 | app.taroGlobalData = data
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/__tests__/__mock__/mockVibrate.js:
--------------------------------------------------------------------------------
1 | const Vibration = {
2 | vibrate: jest.fn(),
3 | cancel: jest.fn(),
4 | }
5 |
6 | export default Vibration
7 |
--------------------------------------------------------------------------------
/babel.config.json:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | ["@babel/preset-env", {
4 | "targets": {
5 | "node": "current"
6 | }
7 | }]
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/component/comp.wxss:
--------------------------------------------------------------------------------
1 | .container {
2 | border: 1px solid black;
3 | background-color: #ffaaff;
4 | padding: 8px;
5 | margin: 8px;
6 | }
7 |
--------------------------------------------------------------------------------
/packages/taro-cli/bin/taro:
--------------------------------------------------------------------------------
1 | #! /usr/bin/env node
2 |
3 | require('../dist/util').printPkgVersion()
4 |
5 | const CLI = require('../dist/cli').default
6 | new CLI().run()
7 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/assets/icons/success_no_circle.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-components-rn/src/assets/icons/success_no_circle.png
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/ui/sticky.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 置顶
4 | export const setTopBarText = temporarilyNotSupport('setTopBarText')
5 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/utils/testExcludeFunction.js:
--------------------------------------------------------------------------------
1 | export default () => {
2 | console.log('testExcludeFunction')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-react/README.md:
--------------------------------------------------------------------------------
1 | # @tarojs/react
2 |
3 | 基于 `react-reconciler` 的小程序专用 React 渲染器,连接 `@tarojs/runtime 的 DOM 实例,相当于小程序版的 `react-dom`,暴露的 API 也和 `react-dom` 保持一致。
4 |
--------------------------------------------------------------------------------
/packages/taro-runtime/src/options.ts:
--------------------------------------------------------------------------------
1 | import type { Options } from './interface'
2 |
3 | export const options: Options = {
4 | prerender: true,
5 | debug: false
6 | }
7 |
--------------------------------------------------------------------------------
/commitlint.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | extends: ['@commitlint/config-conventional'],
3 | rules: {
4 | 'body-max-line-length': [0, 'always', Infinity]
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/babel-plugin-transform-taroapi/types.d.ts:
--------------------------------------------------------------------------------
1 | declare module '@tarojs/taro-h5/dist/taroApis' {
2 | export const apis: {
3 | [key: string]: boolean
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/config/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | OUTPUT_DIR: 'dist',
3 | SOURCE_DIR: 'src',
4 | TEMP_DIR: '.temp',
5 | NPM_DIR: 'npm',
6 | ENTRY: 'app'
7 | }
8 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/media/map.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 地图
4 | export const createMapContext = temporarilyNotSupport('createMapContext')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/worker/index.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // Worker
4 | export const createWorker = temporarilyNotSupport('createWorker')
5 |
--------------------------------------------------------------------------------
/packages/taro-jd/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 | module.exports.JD = require('./dist/index.js').JD
4 |
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/react-imported-2.txt:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import ReactDOM from 'react-dom'
3 | import { app } from './app'
4 | export default app
5 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/utils/consoleLogSubVendors.js:
--------------------------------------------------------------------------------
1 | export default () => {
2 | console.log('This is packageA vendors')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-qq/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.QQ = require('./dist/index.js').QQ
3 | module.exports.default = module.exports
4 |
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/src/transforms/StyleSheet/index.ts:
--------------------------------------------------------------------------------
1 | import StyleSheetValidation from './StyleSheetValidation'
2 |
3 | export {
4 | StyleSheetValidation
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-router-rn/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/taro-runtime/tsconfig.test.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.root.json",
3 | "compilerOptions": {
4 | "jsx": "react",
5 | "allowJs": true
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packages/taro-tt/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 | module.exports.TT = require('./dist/index.js').TT
4 |
--------------------------------------------------------------------------------
/packages/css-to-react-native/src/transforms/rem.js:
--------------------------------------------------------------------------------
1 | export const remToPx = value => {
2 | return value.replace(/(\d*\.?\d+)rem/g, (match, m1) => parseFloat(m1, 10) * 16 + 'px')
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-components/src/components/canvas/style/index.scss:
--------------------------------------------------------------------------------
1 | taro-canvas-core {
2 | display: block;
3 | position: relative;
4 | width: 300px;
5 | height: 150px;
6 | }
7 |
--------------------------------------------------------------------------------
/packages/taro-components/types/Block.d.ts:
--------------------------------------------------------------------------------
1 | import { ComponentType } from 'react'
2 |
3 | /**
4 | * @ignore
5 | */
6 | declare const Block: ComponentType
7 |
8 | export { Block }
9 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/alipay/index.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // AliPay
4 | export const getOpenUserInfo = temporarilyNotSupport('getOpenUserInfo')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/device/crypto.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 加密
4 | export const getRandomValues = temporarilyNotSupport('getRandomValues')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/network/tcp.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // TCP 通信
4 | export const createTCPSocket = temporarilyNotSupport('createTCPSocket')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/network/udp.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // UDP 通信
4 | export const createUDPSocket = temporarilyNotSupport('createUDPSocket')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/address.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 收货地址
4 | export const chooseAddress = temporarilyNotSupport('chooseAddress')
5 |
--------------------------------------------------------------------------------
/packages/taro-runtime-rn/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/taro-swan/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 | module.exports.Swan = require('./dist/index.js').Swan
4 |
--------------------------------------------------------------------------------
/packages/taro-weapp/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 | module.exports.Weapp = require('./dist/index.js').Weapp
4 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/mocks/taro-framework.ts:
--------------------------------------------------------------------------------
1 | export function createReactApp () {}
2 | export function createVueApp () {}
3 | export function createVue3App () {}
4 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 | contact_links:
3 | - name: 新建一个新的 Issue
4 | url: https://issue.taro.zone/
5 | about: 请点击 「Open」 按钮打开新链接创建 Issue
6 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["taro/react"],
3 | "rules": {
4 | "react/jsx-uses-react": "off",
5 | "react/react-in-jsx-scope": "off"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/cate/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | 我是分类页!
4 |
5 |
6 |
7 |
9 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/my/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | 我是个人中心!
4 |
5 |
6 |
7 |
9 |
--------------------------------------------------------------------------------
/packages/shared/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from './is'
2 | export { Shortcuts } from './shortcuts'
3 | export * from './components'
4 | export * from './utils'
5 | export * from './native-apis'
6 |
--------------------------------------------------------------------------------
/packages/taro-alipay/index.js:
--------------------------------------------------------------------------------
1 | module.exports = require('./dist/index.js').default
2 | module.exports.default = module.exports
3 | module.exports.Alipay = require('./dist/index.js').Alipay
4 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/base/crypto.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 加密
4 | export const getUserCryptoManager = temporarilyNotSupport('getUserCryptoManager')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/media/camera.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 相机
4 | export const createCameraContext = temporarilyNotSupport('createCameraContext')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/group.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 微信群
4 | export const getGroupEnterInfo = temporarilyNotSupport('getGroupEnterInfo')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/red-package.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 微信红包
4 | export const showRedPackage = temporarilyNotSupport('showRedPackage')
5 |
--------------------------------------------------------------------------------
/packages/taro-jd/src/apis.ts:
--------------------------------------------------------------------------------
1 | import { processApis } from '@tarojs/shared'
2 |
3 | declare const jd: any
4 |
5 | export function initNativeApi (taro) {
6 | processApis(taro, jd)
7 | }
8 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/mini-split-chunks/src/utils/consoleLogSubCommon.js:
--------------------------------------------------------------------------------
1 | export default (subpackage) => {
2 | console.log(`Subpackage: ${subpackage}`)
3 | }
4 |
--------------------------------------------------------------------------------
/packages/taro-runner-utils/__tests__/styles/mixins.scss:
--------------------------------------------------------------------------------
1 | @mixin transform($property) {
2 | -webkit-transform: $property;
3 | -ms-transform: $property;
4 | transform: $property;
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-h5/README.md:
--------------------------------------------------------------------------------
1 | # @tarojs/taro-h5
2 |
3 | 暴露给 `@tarojs/taro` 的 H5 端 API。
4 |
5 | 需要配合 `babel-plugin-transform-taroapi` 才能使用 ES6 default import 的语法,相关配置详情在 `babel-preset-taro` 中。
6 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/account.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 帐号信息
4 | export const getAccountInfoSync = temporarilyNotSupport('getAccountInfoSync')
5 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/nav.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/nav.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/view.png
--------------------------------------------------------------------------------
/packages/taro-rn-style-transformer/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/taro-rn/babel.config.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | presets: [
3 | 'module:metro-react-native-babel-preset',
4 | 'babel-preset-expo'
5 | ],
6 | plugins: ['jest-hoist'],
7 | }
8 |
--------------------------------------------------------------------------------
/packages/taro-router-rn/src/index.ts:
--------------------------------------------------------------------------------
1 | export * from './router'
2 | export * from './provider'
3 | export * from './rootNavigation'
4 | export * from './tabBar'
5 | export * from './navigationBar'
6 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/config/prod.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"production"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-react/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/.eslintrc.js:
--------------------------------------------------------------------------------
1 | // ESLint 检查 .vue 文件需要单独配置编辑器:
2 | // https://eslint.vuejs.org/user-guide/#editor-integrations
3 | module.exports = {
4 | 'extends': ['taro/vue3']
5 | }
6 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/examples/weapp-independent-subpackages/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": ["taro/react"],
3 | "rules": {
4 | "react/jsx-uses-react": "off",
5 | "react/react-in-jsx-scope": "off"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/media/media-recorder.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 画面录制器
4 | export const createMediaRecorder = temporarilyNotSupport('createMediaRecorder')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/media/video-decoder.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 视频解码器
4 | export const createVideoDecoder = temporarilyNotSupport('createVideoDecoder')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/license-plate.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 车牌
4 | export const chooseLicensePlate = temporarilyNotSupport('chooseLicensePlate')
5 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/nav_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/nav_red.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-map/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-map',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/map.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-runtime/src/__tests__/utils.js:
--------------------------------------------------------------------------------
1 |
2 | export const delay = (ms = 2) => {
3 | return new Promise(resolve => {
4 | setTimeout(() => {
5 | resolve()
6 | }, ms)
7 | })
8 | }
9 |
--------------------------------------------------------------------------------
/examples/blended-apart/taro-project/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/examples/blended-basic/taro-project/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页',
3 | usingComponents: {
4 | title: '@/components/title/index'
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/taro-project/src/components/picker/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: 'Picker',
3 | styleIsolation: 'isolated',
4 | virtualHost: true
5 | }
6 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | "extends": ["taro/react"],
3 | "rules": {
4 | "react/jsx-uses-react": "off",
5 | "react/react-in-jsx-scope": "off"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/packages/eslint-config-taro/nerv.js:
--------------------------------------------------------------------------------
1 | module.exports = Object.assign({}, require('./index'), {
2 | settings: {
3 | react: {
4 | pragma: 'Nerv',
5 | version: '15.0'
6 | }
7 | }
8 | })
9 |
--------------------------------------------------------------------------------
/packages/taro-cli/templates/default/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/media/video-processing.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 音视频合成
4 | export const createMediaContainer = temporarilyNotSupport('createMediaContainer')
5 |
--------------------------------------------------------------------------------
/packages/taro-jd/src/runtime-utils.ts:
--------------------------------------------------------------------------------
1 | import { initNativeApi } from './apis'
2 |
3 | export { initNativeApi }
4 | export * from './components'
5 | export const hostConfig = {
6 | initNativeApi
7 | }
8 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/config/origin/alias/files/index/index.js:
--------------------------------------------------------------------------------
1 | import { say } from '@/utils'
2 |
3 | export default function miao () {
4 | console.log('say: ', say())
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/nav.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/nav.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/view_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/tabbar/src/assets/view_red.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-image/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-image',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/image.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-input/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-input',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/input.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-label/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-label',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/label.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-video/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-video',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/video.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-plugin-react-devtools/src/loader.ts:
--------------------------------------------------------------------------------
1 | export default function (str) {
2 | str = str.replace(/__REACT_DEVTOOLS_GLOBAL_HOOK__/g, 'window.__REACT_DEVTOOLS_GLOBAL_HOOK__')
3 | return str
4 | }
5 |
--------------------------------------------------------------------------------
/packages/taro-rn/src/lib/base64ToArrayBuffer/index.ts:
--------------------------------------------------------------------------------
1 | import { toByteArray } from 'base64-js'
2 |
3 | export function base64ToArrayBuffer(base64: string): ArrayBuffer {
4 | return toByteArray(base64)
5 | }
--------------------------------------------------------------------------------
/examples/weapp-independent-subpackages/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/packages/eslint-config-taro/react.js:
--------------------------------------------------------------------------------
1 | module.exports = Object.assign({}, require('./index'), {
2 | settings: {
3 | react: {
4 | pragma: 'React',
5 | version: 'detect'
6 | }
7 | }
8 | })
9 |
--------------------------------------------------------------------------------
/packages/taro-cli/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules,
7 | 'no-console': 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-extend/README.md:
--------------------------------------------------------------------------------
1 | # `taro-extend`
2 |
3 | > TODO: description
4 |
5 | ## Usage
6 |
7 | ```
8 | const taroExtend = require('taro-extend');
9 |
10 | // TODO: DEMONSTRATE API
11 | ```
12 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/device/accessibility.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 无障碍
4 | export const checkIsOpenAccessibility = temporarilyNotSupport('checkIsOpenAccessibility')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/ui/menu.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 菜单
4 | export const getMenuButtonBoundingClientRect = temporarilyNotSupport('getMenuButtonBoundingClientRect')
5 |
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/react2.txt:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 |
3 | class A extends Component {
4 | render () {
5 | return React.createElement('div')
6 | }
7 | }
8 |
9 | export default A
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/__snapshots__/mini-split-chunks.spec.ts.snap:
--------------------------------------------------------------------------------
1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
2 |
3 | exports[`mini-split-chunks should process mini-split-chunks 1`] = `50`;
4 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/view.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/view.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-camera/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-camera',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/camera.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-canvas/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-canvas',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/canvas.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-picker/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-picker',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/picker.html'
5 | }
6 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/miniapp/pages/index/index.json:
--------------------------------------------------------------------------------
1 | {
2 | "usingComponents": {
3 | "detail": "../../taro/pages/detail/index",
4 | "picker": "../../taro/components/picker/index"
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/taro-project/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/packages/shared/README.md:
--------------------------------------------------------------------------------
1 | # `@tarojs/shared`
2 |
3 | Taro 内部使用的 utils。包含了常用的类型判断、错误断言、组件类型/声明/参数等。`@tarojs/shared` 会跨 node/浏览器/小程序/React Native 使用,不得使用平台特有特性。
4 |
5 | 引入此包的必须采用 ES6 引用单个模块语法,且打包配置 external 不得包括此包。
6 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/nerv/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/vue/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/customer-service.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 微信客服
4 | export const openCustomerServiceChat = temporarilyNotSupport('openCustomerServiceChat')
5 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/subscribe-message.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 订阅消息
4 | export const requestSubscribeMessage = temporarilyNotSupport('requestSubscribeMessage')
5 |
--------------------------------------------------------------------------------
/packages/taro-helper/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules,
7 | 'no-console': 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/nav_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/nav_red.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/view_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/aliuq/taro/next/packages/taro-mini-runner/src/__tests__/fixtures/custom-tabbar/src/assets/view_red.png
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/taro-textarea/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name: 'taro-textarea',
3 | subcomponent: 'I:',
4 | url: 'https://doc.quickapp.cn/widgets/textarea.html'
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/template/comp.ts:
--------------------------------------------------------------------------------
1 | /* eslint-disable no-undef */
2 | import { createRecursiveComponentConfig } from '@tarojs/runtime'
3 | // @ts-ignore
4 | Component(createRecursiveComponentConfig())
5 |
--------------------------------------------------------------------------------
/packages/taro-rn-runner/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules,
7 | 'no-console': 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-cli/src/__tests__/fixtures/default/config/dev.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | env: {
3 | NODE_ENV: '"development"'
4 | },
5 | defineConstants: {
6 | },
7 | mini: {},
8 | h5: {}
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/components/Camera/styles.tsx:
--------------------------------------------------------------------------------
1 | import { StyleSheet } from 'react-native'
2 |
3 | export default StyleSheet.create({
4 | camera: {
5 | width: 300,
6 | height: 300
7 | }
8 | })
9 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/route/index.ts:
--------------------------------------------------------------------------------
1 | // 路由
2 | export {
3 | switchTab,
4 | reLaunch,
5 | redirectTo,
6 | navigateTo,
7 | navigateBack
8 | } from '@tarojs/router'
9 |
10 | // FIXME 方法导出类型未对齐,后续修复
11 |
--------------------------------------------------------------------------------
/packages/taro-loader/__tests__/fixtures/syntax-tsx.txt:
--------------------------------------------------------------------------------
1 | const a: string = ''
2 |
3 | class A extends Component {
4 | render () {
5 | return
6 | }
7 | }
8 |
9 | export default A
10 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/style/declaration/list/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | 'list-style': 'I:',
3 | 'list-style-image': 'I:',
4 | 'list-style-position': 'I:',
5 | 'list-style-type': 'I:'
6 | }
7 |
--------------------------------------------------------------------------------
/packages/taro-rn-supporter/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules,
7 | 'no-console': 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-runner-utils/__tests__/styles/variables.scss:
--------------------------------------------------------------------------------
1 | $color-ui-info: #78A4FA !default;
2 | $color-ui-positive: #13CE66 !default;
3 | $color-ui-negative: #FF4949 !default;
4 | $color-ui-warning: #FFC82C !default;
5 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules,
7 | 'no-console': 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/examples/blended-apart/miniapp/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/examples/blended-basic/miniapp/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/sass/src/pages/index/index.scss:
--------------------------------------------------------------------------------
1 | .index {
2 | width: 100%;
3 | .list {
4 | display: flex;
5 | .list-item {
6 | width: 20px;
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/wx-hybrid/src/pages/index/index.config.js:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页',
3 | usingComponents: {
4 | 'tab': '../../components/tab/tab'
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/loaders/quickappStyleLoader.ts:
--------------------------------------------------------------------------------
1 | import styleRewriter from '../quickapp/style-rewriter'
2 |
3 | export default function quickappStyleLoader (source) {
4 | return styleRewriter(source)
5 | }
6 |
--------------------------------------------------------------------------------
/packages/taro-components-rn/src/components/Label/PropsType.tsx:
--------------------------------------------------------------------------------
1 | import { StyleProp, ViewStyle } from 'react-native'
2 |
3 | export interface LabelProps {
4 | children?: React.ReactNode;
5 | style?: StyleProp;
6 | }
7 |
--------------------------------------------------------------------------------
/packages/taro-components/src/components/view/style/index.scss:
--------------------------------------------------------------------------------
1 | body,
2 | html {
3 | user-select: none;
4 | -webkit-tap-highlight-color: rgb(0 0 0 / 0%);
5 | }
6 |
7 | taro-view-core {
8 | display: block;
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-h5/src/api/open-api/card.ts:
--------------------------------------------------------------------------------
1 | import { temporarilyNotSupport } from '../utils'
2 |
3 | // 卡券
4 | export const openCard = temporarilyNotSupport('openCard')
5 | export const addCard = temporarilyNotSupport('addCard')
6 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/wx-hybrid/src/pages/native/native.wxml:
--------------------------------------------------------------------------------
1 |
2 | {{text}}{{x}}
3 |
4 |
5 |
--------------------------------------------------------------------------------
/packages/taro-plugin-mini-ci/src/QRCode.ts:
--------------------------------------------------------------------------------
1 | /**
2 | * 生产二维码输出到控制台
3 | * @param url 链接地址
4 | */
5 | export default function generateQrCode (url: string) {
6 | require('qrcode-terminal').generate(url, { small: true })
7 | }
8 |
--------------------------------------------------------------------------------
/packages/taro-react/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../../tsconfig.root.json",
3 | "compilerOptions": {
4 | "baseUrl": ".",
5 | "module": "ESNext",
6 | },
7 | "include": [
8 | "./src"
9 | ]
10 | }
11 |
--------------------------------------------------------------------------------
/packages/taro-rn-transformer/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules,
7 | 'no-use-before-define': 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-webpack-runner/src/__tests__/fixtures/sass/src/pages/index/index.scss:
--------------------------------------------------------------------------------
1 | .index {
2 | width: 100%;
3 | .list {
4 | display: flex;
5 | .list-item {
6 | width: 20px;
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/examples/blended-taro-component/miniapp/sitemap.json:
--------------------------------------------------------------------------------
1 | {
2 | "desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
3 | "rules": [{
4 | "action": "allow",
5 | "page": "*"
6 | }]
7 | }
--------------------------------------------------------------------------------
/packages/babel-preset-taro/.eslintrc.js:
--------------------------------------------------------------------------------
1 | const config = require('../../.eslintrc.js')
2 |
3 | module.exports = {
4 | ...config,
5 | rules: {
6 | ...config.rules,
7 | 'no-template-curly-in-string': 0
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-h5/__mocks__/taro-runtime.ts:
--------------------------------------------------------------------------------
1 | export default 'taro-runtime-mock'
2 |
3 | export const window = {}
4 | export function createReactApp () {}
5 | export function createVueApp () {}
6 | export function createVue3App () {}
7 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/__tests__/fixtures/typescript/src/pages/index/index.less:
--------------------------------------------------------------------------------
1 | @width: 10px;
2 | @height: @width + 10px;
3 |
4 | .body {
5 | #header {
6 | width: @width;
7 | height: @height;
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/packages/taro-mini-runner/src/quickapp/template/tag/span/index.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | name (node) {
3 | if (node.parent && node.parent.name === 'div') {
4 | return 'text'
5 | }
6 | return node.name
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/packages/taro-service/src/index.ts:
--------------------------------------------------------------------------------
1 | import Kernel from './Kernel'
2 | import { TaroPlatformBase } from './platform-plugin-base'
3 |
4 | export { Kernel }
5 | export { TaroPlatformBase }
6 | export default { Kernel, TaroPlatformBase }
7 |
--------------------------------------------------------------------------------
/packages/taro-tt/src/runtime-utils.ts:
--------------------------------------------------------------------------------
1 | import { initNativeApi } from './apis'
2 |
3 | export { initNativeApi }
4 | export * from './components'
5 | export * from './apis-list'
6 | export const hostConfig = {
7 | initNativeApi
8 | }
9 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/pages/index/index.config.ts:
--------------------------------------------------------------------------------
1 | export default {
2 | navigationBarTitleText: '首页',
3 | usingComponents: {
4 | 'avatar': 'plugin://myPlugin/avatar',
5 | "mp-comp": "../../component/comp"
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/examples/build-weapp-plugin/src/plugin/plugin.json:
--------------------------------------------------------------------------------
1 | {
2 | "publicComponents": {
3 | "avatar": "components/avatar/avatar"
4 | },
5 | "pages": {
6 | "list": "pages/list/list"
7 | },
8 | "main": "index.ts"
9 | }
10 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/cart/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | 我是购物车!
4 |
5 |
6 |
7 |
12 |
--------------------------------------------------------------------------------
/examples/custom-tabbar-vue3/src/pages/index/index.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 | 我是首页!
4 |
5 |
6 |
7 |
12 |
--------------------------------------------------------------------------------
/packages/eslint-config-taro/html-tags.js:
--------------------------------------------------------------------------------
1 | // elements-of-html
2 | // https://github.com/w3c/elements-of-html
3 |
4 | module.exports = [
5 | {
6 | element: 'select',
7 | message: '请使用 Picker 组件代替