Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeekMiniProgram
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huanglu
GeekMiniProgram
Commits
b2bf5c2e
Commit
b2bf5c2e
authored
May 29, 2020
by
huanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: 编辑readme文档
parent
8e43737e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
20 deletions
+2
-20
README.md
README.md
+2
-20
No files found.
README.md
View file @
b2bf5c2e
...
@@ -44,13 +44,14 @@ module.exports = {
...
@@ -44,13 +44,14 @@ module.exports = {
}
}
```
```
-
config 目录下放置的配置文件
-
config 目录下放置的配置文件
-
build
.js 放置打包、 代理、mock等配置数据
-
config
.js 放置打包、 代理、mock等配置数据
-
其他文件是 taro 框架在打包时需要的配置文件
-
其他文件是 taro 框架在打包时需要的配置文件
-
本项目使用 dva 做全局状态管理
-
本项目使用 dva 做全局状态管理
-
src/models 目录下配置全局的状态数据,在该文件夹新增model文件,会自动注入到 src/models/index.ts 文件夹下
-
src/models 目录下配置全局的状态数据,在该文件夹新增model文件,会自动注入到 src/models/index.ts 文件夹下
-
在页面文件夹下,添加的model.ts 文件,会自动注入到 dva 中
-
在页面文件夹下,添加的model.ts 文件,会自动注入到 dva 中
-
dva 中的 modal 需要 通过 export default 方式导出
-
dva 中的 modal 需要 通过 export default 方式导出
-
安装 bigfish-extension 插件, 有 action 的智能提示
-
使用方式如下
-
使用方式如下
```
typescript
```
typescript
...
@@ -91,21 +92,3 @@ export default <DvaModel<CommonModels>> {
...
@@ -91,21 +92,3 @@ export default <DvaModel<CommonModels>> {
-
src/pages 目录下放置小程序的页面文件
-
src/pages 目录下放置小程序的页面文件
-
src/subpages 目录下放置小程序的分包的目录
-
src/subpages 目录下放置小程序的分包的目录
-
package.json 文件下 的 fastgeek 字段的值 不要删除,很重要,在 使用 fastgeek 进行编译和部署时,会使用到
-
package.json 文件下 的 fastgeek 字段的值 不要删除,很重要,在 使用 fastgeek 进行编译和部署时,会使用到
```
"build:weapp": "taro build --type weapp",
"build:swan": "taro build --type swan",
"build:alipay": "taro build --type alipay",
"build:tt": "taro build --type tt",
"build:h5": "taro build --type h5",
"build:rn": "taro build --type rn",
"build:qq": "taro build --type qq",
"build:quickapp": "taro build --type quickapp",
"dev:weapp": "npm run build:weapp -- --watch",
"dev:swan": "npm run build:swan -- --watch",
"dev:alipay": "npm run build:alipay -- --watch",
"dev:tt": "npm run build:tt -- --watch",
"dev:h5": "npm run build:h5 -- --watch",
"dev:rn": "npm run build:rn -- --watch",
"dev:qq": "npm run build:qq -- --watch",
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment