All Projects → webpersonalserver → wx-mini

webpersonalserver / wx-mini

Licence: other
运用webpack编译构建小程序的脚手架(稳定版)

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to wx-mini

generator-speedseed
Oriented to components, allow create/choice template, multiple configuration with easy maintenance
Stars: ✭ 13 (-38.1%)
Mutual labels:  gulp, webpack3
generator-vars-jekyll
Generator for raw web app with CircleCI, Jekyll, Webpack, Express + more.
Stars: ✭ 18 (-14.29%)
Mutual labels:  gulp
gulp-shopify-theme
Shopify theme synchronisation during development
Stars: ✭ 26 (+23.81%)
Mutual labels:  gulp
aesto
Free Ghost theme with membership support. Minimal content focused design with multi author supported.
Stars: ✭ 31 (+47.62%)
Mutual labels:  gulp
generator-sf
Yeoman generator that scaffolds out a Symfony PHP app including Browsersync, various CSS preprocessors, jspm, webpack, browserify and Service Worker
Stars: ✭ 14 (-33.33%)
Mutual labels:  gulp
vue-picture-viewer
一款基于Vue2x的图片预览插件
Stars: ✭ 16 (-23.81%)
Mutual labels:  webpack3
code-line-daily
A line of code of the day.
Stars: ✭ 17 (-19.05%)
Mutual labels:  gulp
react-redux-immutable-webpack-ssr-starter
React + React-Router 4 + Redux + ImmutableJS + Bootstrap + webpack 3 with with Server side rendering, Hot Reload and redux-devtools STARTER
Stars: ✭ 21 (+0%)
Mutual labels:  webpack3
gulp-asciidoctor
gulp-asciidoctor
Stars: ✭ 14 (-33.33%)
Mutual labels:  gulp
gulp-boilerplate
Gulp boilerplate
Stars: ✭ 24 (+14.29%)
Mutual labels:  gulp
gulp-recess
[DEPRECATED] Lint CSS and LESS with RECESS
Stars: ✭ 42 (+100%)
Mutual labels:  gulp
animecenter
The source code for animecenter
Stars: ✭ 16 (-23.81%)
Mutual labels:  gulp
frontendkickstarter
Gulp 4.0 configuration for static sites development
Stars: ✭ 31 (+47.62%)
Mutual labels:  gulp
webpack-multiple-pages
自由代码分割、react/vue共存、支持高清方案、代码自动校验与格式化
Stars: ✭ 64 (+204.76%)
Mutual labels:  webpack3
Prometheus
🌈 A Clean And Modern Ghost Theme with Progressive Web Apps (PWA)
Stars: ✭ 94 (+347.62%)
Mutual labels:  gulp
campus-leaflets
校园传单是一个使用 Node.js、MongoDB、Koa、EJS、MDL、Less、RequireJS 和 Gulp 开发的 Node 应用程序。
Stars: ✭ 16 (-23.81%)
Mutual labels:  gulp
gulp-version-append
Gulp plugin to append version from package.json to static file url to avoid caching
Stars: ✭ 18 (-14.29%)
Mutual labels:  gulp
bro-start
🚗💨 Blazing fast webpack setup for static websites
Stars: ✭ 12 (-42.86%)
Mutual labels:  webpack3
gulp-starter-kit
My Gulp Starter Kit
Stars: ✭ 91 (+333.33%)
Mutual labels:  gulp
Asteroids
Yep, a gulp-ready-nunjucks-lover-sass-powered-and-humanstxt-included html starter kit!
Stars: ✭ 15 (-28.57%)
Mutual labels:  gulp

wx-mini

使用 webpack, babel, scss 开发的微信小程序项目脚手架

本项目重要开发工具本版说明

  • webpack 3.8.1
  • yarn 1.9.4
  • node 8.11.1
  • npm 5.6.0
  • gulp 3.9.1

功能

  • 支持引用 node_modules 模块
  • 支持通过配置 alias 来避免 ../../../ 之类的模块引用
  • 通过 babel 支持更丰富的 ES6 兼容,包括 async/await
  • 内置 promiselodashlodash 按需引入相应模块,不会全部引入)
  • 使用 scss 编写 .wxss 文件,内置了一些有用的 mixinsextends
  • 提供 ENVIRONMENTprocess.env.NODE_ENV 全局常量辅助开发
  • 支持 eslint 基础代码检测

开始使用

确保安装了 Node.js (>= v4.2) 和 yarnnpm

  1. git clone 此项目
  2. 通过命令行工具 cd 到这个目录,执行npm installyarn 安装依赖模块
  3. 执行 npm run devyarn dev 开始开发
  4. 通过微信开发者工具,添加 dist 目录到项目上

内置命令

  • 执行命令 npm run devyarn dev 运行项目(不带有压缩项目的功能)
  • 执行命令 npm run buildyarn build 生产编译打包项目(不带有压缩项目的功能)
  • 执行命令 npm run minifyyarn minify 生产编译压缩打包项目(带有压缩项目的功能)

项目目录结构说明

wx-mini
|---------dist                            项目编译打包后的文件
|---------src                             项目开发文件
          |-----------components                      开发组件文件
          |-----------images                          项目所用图标或图片文件
          |-----------pages                           页面开发文件
                      |--------index                      首页
                               |------index.js                首页js
                               |------index.json              首页json
                               |------index.scss              首页scss
                               |------index.xml               首页xml
          |-----------sass                            项目全局或公用scss文件
          |-----------utils                           项目公用方法或工具类方法
          |-----------wxs                             项目公用过滤器
          |-----------app.js                          小程序主js文件
          |-----------app.json                        小程序主json配置文件
          |-----------app.wxss                        小程序主wxss样式文件
|---------gulpfile.js                     项目压缩的脚本配置文件
|---------package.json                    npm初始文件
|---------README.md                       项目说明文件
|---------webpack.config.babel.js         项目编译打包配置文件
|---------.eslintrc                       js代码规范检测配置文件
|---------.babelrc                        es6转换
|---------.gitignore                      上传git时,指定忽略上传文件的配置文件

注意事项

  • 每次启动项目后,都需重新打开微信开发者工具
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].