Coder Social home page Coder Social logo

blog-miniprogram-wordpress's Introduction

博客小程序版

在线预览

项目启动

替换微信小程序配置文件

// src/project.config.json
{
  "appid": "替换为自己的小程序id",
  "projectname": "自己的小程序名"
}

安装依赖

$ yarn
# or
$ npm i

启动项目

$ yarn dev
# 打开微信开发者工具选择dist目录即可,微信开发者工具只用于调试,不写代码

打包项目

$ yarn build

项目规范

目录说明

gulp-wechat
├─.babelrc
├─.editorconfig
├─.eslintignore
├─.eslintrc.js
├─.npmrc
├─README.md
├─package.json
├─yarn.lock
├─src
|  ├─_var.scss // 项目公用scss变量(注:下划线开头的scss不会被编译成文件)
|  ├─app.js // 小程序启动入口文件
|  ├─app.json // 小程序配置项
|  ├─app.scss // 公用scss
|  ├─project.config.json // 小程序项目配置
|  ├─sitemap.json // 小程序站点地图
|  ├─utils // 公用工具类
|  |   ├─const.js // 全局公用变量
|  |   ├─date.js // 时间转换工具类
|  |   └index.js
|  ├─request // 公用请求方法
|  |    └index.js
|  ├─pages // 小程序页面目录
|  |   ├─logs
|  |   |  ├─logs.js
|  |   |  ├─logs.json
|  |   |  ├─logs.scss
|  |   |  └logs.wxml
|  |   ├─index
|  |   |   ├─index.js
|  |   |   ├─index.json
|  |   |   ├─index.scss
|  |   |   └index.wxml
|  ├─image
|  |   ├─icon_API.png
|  |   ├─icon_API_HL.png
|  |   ├─icon_component.png
|  |   └icon_component_HL.png
|  ├─components // 小程序组件
├─gulpfile.babel.js // 项目启动配置文件
|  ├─common.js
|  ├─copyTask.js
|  ├─imageTask.js
|  ├─index.js
|  ├─jsTask.js
|  ├─pageTask.js
|  └scssTask.js

blog-miniprogram-wordpress's People

Contributors

d-xuanmo avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.