${projectName}
====
${description}
## 开发前阅读
此项目是基于 `okam` 开发框架开发的小程序项目,开发前先了解:[Okam 的使用](https://ecomfe.github.io/okam)
## 快速开始
### 准备工作
* 安装 Node (`Node >= 8` && `npm >= 3`)
* 执行 `npm install`
### 开发
* 百度小程序运行命令
* `npm run dev`: 带 watch 开发模式
* `npm run dev:clean`: 删掉构建产物(不包括项目配置文件)并重新构建且带 watch 开发模式
* `npm run dev:server`: 带 watch && 开发 Server 开发模式
* `npm run prod`: 生产环境构建(没有 watch && 开发 Server)
* 微信小程序运行命令
* `npm run dev:wx:` 微信小程序开发构建
* `npm run dev:wx:clean`: 微信小程序:删掉构建产物(不包括项目配置文件)并重新构建且带 watch 开发模式
* `npm run dev:wx:server`: 带 watch && 开发 Server 开发模式
* `npm run prod:wx`: 微信小程序生产环境构建(没有 watch && 开发 Server)
* 支付宝小程序运行命令
* `npm run dev:ant`: 微信小程序开发构建
* `npm run dev:ant:clean`: 微信小程序:删掉构建产物(不包括项目配置文件)并重新构建且带 watch 开发模式
* `npm run dev:ant:server`:带 watch && 开发 Server 开发模式
* `npm run prod:ant`: 微信小程序生产环境构建(没有 watch && 开发 Server)
* 头条小程序运行命令
* `npm run dev:tt`: 微信小程序开发构建
* `npm run dev:tt:clean`: 微信小程序:删掉构建产物(不包括项目配置文件)并重新构建且带 watch 开发模式
* `npm run dev:tt:server`:带 watch && 开发 Server 开发模式
* `npm run prod:tt`: 微信小程序生产环境构建(没有 watch && 开发 Server)
* 快应用小程序运行命令
* `npm run dev:quick`: 快应用小程序开发构建
* `npm run dev:quick:clean`: 快应用小程序:删掉构建产物(不包括项目配置文件)并重新构建且带 watch 开发模式
* `npm run dev:quick:server`:带 watch && 开发 Server 开发模式
* `npm run prod:quick`: 快应用小程序生产环境构建(没有 watch && 开发 Server)
### 注意
#### 快应用开发
* 需要全局安装 `hap` : `npm install adb-devtools -g`
* 手机需要安装 `rpk` 包,[详见](https://doc.quickapp.cn/)
* 快应用与小程序差异较多,框架提供基础功能,`UI` API, 对齐部分,需要开发对齐,详见示例 `src/common/component/Button`
### 目录结构说明
```
.
├── README.md
├── package.json
├── doc // 缓存项目源图片或者其它文档目录
├── dist // 百度小程序 构建产物,开发工具得选择该构建产物目录作为项目根目录方能预览
├── wx_dist // 微信小程序 构建产物,开发工具得选择该构建产物目录作为项目根目录方能预览
├── ant_dist // 支付宝小程序 构建产物,开发工具得选择该构建产物目录作为项目根目录方能预览
├── tt_dist // 头条小程序 构建产物,开发工具得选择该构建产物目录作为项目根目录方能预览
├── .tinyimgcache // 图片压缩的缓存信息,不可删掉,否则会导致图片重复压缩
├── project.json5 // 小程序项目配置文件,除了语法使用 JS 对象形式,配置说明参考官方小程序说明
├── scripts // 构建相关脚本
│ ├── build.js // 构建入口脚本
│ ├── base.config.js // 基础构建配置文件
│ ├── init-quick-app.js // 快应用初始构建配置文件
│ ├── quick.config.js // 快应用构建配置文件
│ ├── base.config.js // 基础构建配置文件
│ ├── tt.config.js // 头条小程序构建配置文件
│ ├── ant.config.js // 支付宝小程序构建配置文件
│ ├── wx.config.js // 微信小程序构建配置文件
│ └── swan.config.js // 百度 Swan 小程序构建配置文件
└── src // 项目源码
├── app.${scriptExt} // 小程序入口脚本
├── app.${styleExt} // 小程序入口样式
├── common // 项目公共代码
│ ├── img // 项目图片资源
│ ├── tpl // 项目公共模板文件
│ └── ...
├── components // 自定义组件
└── pages // 小程序页面集合
├── home // 首页
├── ...
└── ...
```
<% if: ${lint} !== 'lintnone' %>
### 代码规范说明
<% if: ${lint} === 'fecs' %>
fecs: https://github.com/ecomfe/fecs
<% /if %>
<% if: ${lint} === 'eslint' %>
eslint: https://github.com/ecomfe/eslint-config
<% /if %>
<% /if %>
### 文档
* [okam 使用教程](https://ecomfe.github.io/okam)
* [百度小程序](https://smartprogram.baidu.com/docs/develop/tutorial/codedir)
* [微信小程序](https://developers.weixin.qq.com/miniprogram/dev/index.html)
* [支付宝小程序](https://docs.alipay.com/mini/developer/getting-started)
* [头条小程序](https://microapp.bytedance.com/docs/framework/)
* [快应用](https://doc.quickapp.cn/)
没有合适的资源?快使用搜索试试~ 我知道了~
小程序开发框架_JavaScript_Vue_下载.zip
共874个文件
js:513个
md:68个
vue:58个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 139 浏览量
2023-04-25
11:11:01
上传
评论
收藏 1.73MB ZIP 举报
温馨提示
小程序开发框架_JavaScript_Vue_下载.zip
资源推荐
资源详情
资源评论
收起资源包目录
小程序开发框架_JavaScript_Vue_下载.zip (874个子文件)
add-button.acss 227B
hello.acss 54B
add-button.axml 194B
hello.axml 58B
vue.css 12KB
app.css 1KB
app.css 139B
app.css 139B
app.css 139B
app.css 125B
Hello.css 110B
Simple.css 110B
common.css 93B
common.css 93B
index.css 58B
b.css 43B
.editorconfig 263B
editorconfig 263B
.editorconfig 263B
bdfont.eot 3KB
font.eot 0B
test.babel6.expect 130B
test.babel7.expect 129B
.fecsignore 138B
.fecsignore 95B
.fecsignore 92B
.fecsignore 82B
.fecsignore 82B
.fecsignore 72B
fecsignore 72B
.fecsignore 72B
.fecsignore 72B
.fecsrc 202B
.fecsrc 202B
.fecsrc 201B
.fecsrc 201B
.fecsrc 201B
fecsrc 125B
.fecsrc 125B
.frameworkinfo 114B
a.gif 0B
.gitignore 1KB
gitignore 1KB
.gitignore 1KB
.gitignore 136B
.gitignore 80B
.gitignore 31B
.gitignore 23B
.gitignore 23B
.gitignore 23B
.gitignore 0B
.gitignore 0B
.gitignore 0B
.gitignore 0B
index.html 2KB
favicon.ico 5KB
jiandanfanyi.jpg 10KB
docsify.min.js 55KB
index.spec.js 28KB
index.spec.js 22KB
api.spec.js 21KB
Component.spec.js 19KB
base.js 18KB
watch.spec.js 18KB
BuildManager.js 15KB
index.js 13KB
array.spec.js 13KB
event.spec.js 12KB
array.spec.js 12KB
array.spec.js 12KB
FileFactory.js 11KB
ComputedObserver.js 10KB
index.js 10KB
api.js 10KB
broadcast.spec.js 10KB
index.js 10KB
visitor.js 10KB
quick-app-json.js 10KB
component.js 10KB
builtin.js 9KB
index.js 9KB
Page.spec.js 9KB
Observer.js 9KB
App.spec.js 9KB
base.js 8KB
processor.js 8KB
index.spec.js 8KB
ref.spec.js 8KB
tpl.js 8KB
index.spec.js 7KB
init-view.js 7KB
helper.js 7KB
init-babel.js 7KB
FileOutput.js 7KB
helper.js 7KB
postcss-plugin-quickcss.js 7KB
filter.spec.js 6KB
component.js 6KB
match-media-params.js 6KB
helper.js 6KB
共 874 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功