望仙谷(旅游)

邹能昇 1d3130cd5f minsu page 1 semana atrás
.vscode 66f00d63c9 created page 1 mês atrás
common-page 66f00d63c9 created page 1 mês atrás
components 66f00d63c9 created page 1 mês atrás
libs 66f00d63c9 created page 1 mês atrás
miniprogram_npm 66f00d63c9 created page 1 mês atrás
nova-diypage 66f00d63c9 created page 1 mês atrás
nova-tourism 1d3130cd5f minsu page 1 semana atrás
pages 66f00d63c9 created page 1 mês atrás
styles 66f00d63c9 created page 1 mês atrás
test 66f00d63c9 created page 1 mês atrás
utils 66f00d63c9 created page 1 mês atrás
.gitignore 2abd130ea0 delete node_modeles 1 mês atrás
README.md 0da563decb created package 1 mês atrás
app.js 66f00d63c9 created page 1 mês atrás
app.json 66f00d63c9 created page 1 mês atrás
app.wxss 66f00d63c9 created page 1 mês atrás
config.js e94ab870a1 minsu page 1 semana atrás
exportToPlugin.js 66f00d63c9 created page 1 mês atrás
index.js 66f00d63c9 created page 1 mês atrás
index.json 66f00d63c9 created page 1 mês atrás
index.wxml 66f00d63c9 created page 1 mês atrás
index.wxss 66f00d63c9 created page 1 mês atrás
karma.conf.js 66f00d63c9 created page 1 mês atrás
package-lock.json 66f00d63c9 created page 1 mês atrás
package.json 66f00d63c9 created page 1 mês atrás
project.config.json e94ab870a1 minsu page 1 semana atrás
project.private.config.json 66f00d63c9 created page 1 mês atrás
settings.json 66f00d63c9 created page 1 mês atrás
sitemap.json 66f00d63c9 created page 1 mês atrás

README.md

WAPP 微信小程序:小程序页面、样式、MOCK数据规范

NovaWapp脚手架工具

初始化子项目

# 安装依赖
npm i
# 初始化子项目
npm run nova init nova-doctor
# 开发者工具选择 nova-wapp 目录启动项目

项目结构

  • 子项目配置文件目录:/config/<project> 目录为
    • config.js 账套及三方参数配置文件
    • app.json 小程序项目分包依赖文件
  • 开发者首先需要加载子项目的配置文件才能正常运行子项目
    • 例如:npm run nova init nova-doctor
    • 将nova-doctor精英内推项目配置文件,复制到当前项目进行开发
  • 更多目录介绍请查看:目录及开发规范

    命令帮助

    npm run nova help

    > node .release-tool.js help
    usage: .release-tool.js <command>
    
    命令:
    .release-tool.js list            列出所有可用小程序清单
    .release-tool.js init <appname>  初始化小程序:根据appname
    
    选项:
    --help     显示帮助信息                                                 [布尔]
    --version  显示版本号                                                   [布尔]
    

NovaWapp技术文档

# 调试打包 完整
rm -r dist/docs/*
jsdoc -c .config-jsdoc.json
cp -r docs/* dist/docs/
http-server ./dist/docs/
# 调试打包
npm run docs

# 发布上线
rsync -avPW dist/docs/ root@server.fmode.cn:/var/www/ng-fmode/wapp/
scp -r dist/docs/* root@server.fmode.cn:/var/www/ng-fmode/wapp/