Skip to content

xinconan/tinyapp-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinyapp-template

A simple template for alipay miniapp with scss

目录结构

生成的目录结构:

+----scss  // 存放scss源码,目录结构对应小程序的目录结构
  +----components  // 自定义组件
    -- diy-img.scss // your component
  +---- pages
    -- home.scss
    -- other page.scss
  app.scss
+----source  // 存放小程序目录
  +----components  // 自定义组件
    +----diy-img
      -- diy-img.acss
      -- diy-img.axml
      -- diy-img.js
      -- diy-img.json
  +----pages  
    +-- home  // 首页
      -- home.acss  // build css
      -- home.axml
      -- home.js
      -- home.json
    +-- other page
  --- app.acss
  --- app.js
  --- app.json

--- gulpfile.js  // gulp打包配置文件
--- package.json  // 配置文件,项目依赖

开发

安装依赖npm install,监听scss:

# dev
npm run watch
# build
npm run build

source是小程序的源码目录, 在支付宝开发者工具中,只需要打开source目录即可进行调试和预览。

License

MIT

About

template for alipay miniapp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published