All Projects → mqyqingfeng → lnv-mobile-base

mqyqingfeng / lnv-mobile-base

Licence: other
移动端开发脚手架-基于gulp的使用zepto、handlebars、sass并且带移动端适配方案(flexible.js)的前端工作流,旨在帮助移动端项目的开发

Programming Languages

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

Projects that are alternatives of or similar to lnv-mobile-base

Baumeister
👷 The aim of this project is to help you to build your things. From Bootstrap themes over static websites to single page applications.
Stars: ✭ 171 (+317.07%)
Mutual labels:  handlebars, scaffold
Panini
A super simple flat file generator.
Stars: ✭ 562 (+1270.73%)
Mutual labels:  gulp, handlebars
generator-veams
Scaffold modern frontend web apps or web pages with a static site generator (Assemble or Mangony), Grunt and/or Gulp, Sass and Bower. Use modern frameworks like Bourbon, Bootstrap or Foundation and structure your JavaScript with ES Harmony support.
Stars: ✭ 45 (+9.76%)
Mutual labels:  gulp, scaffold
Template
A super-simple way to create new projects based on templates.
Stars: ✭ 120 (+192.68%)
Mutual labels:  handlebars, scaffold
Gulp Site Generator
A static site generator using Gulp
Stars: ✭ 183 (+346.34%)
Mutual labels:  gulp, handlebars
bootstrap-gulp-starter-template
Bootstrap 4 + Gulp 4 + Panini for improve front-end development workflow
Stars: ✭ 67 (+63.41%)
Mutual labels:  gulp, handlebars
Assemble
Community
Stars: ✭ 3,995 (+9643.9%)
Mutual labels:  gulp, scaffold
Generator Gulp Express Webapp
Yeoman generator for building a simple web app using express + gulp. This project contains proper project and build structure to be easily extensible.
Stars: ✭ 8 (-80.49%)
Mutual labels:  gulp, scaffold
Gulp Hb
A sane Gulp plugin to compile Handlebars templates. Useful as a static site generator.
Stars: ✭ 145 (+253.66%)
Mutual labels:  gulp, handlebars
Generator Gulp Plugin Boilerplate
Scaffold out a Gulp plugin boilerplate
Stars: ✭ 46 (+12.2%)
Mutual labels:  gulp, scaffold
generator-starterkit
Yeoman that scaffolds out a front end starterkit. 📦
Stars: ✭ 29 (-29.27%)
Mutual labels:  gulp, scaffold
Generator Chrome Extension Kickstart
Scaffold out a Web Extension http://yeoman.io
Stars: ✭ 232 (+465.85%)
Mutual labels:  gulp, scaffold
startover
Startover is a boilerplate for developing static websites. With Startover you don't have to start over!
Stars: ✭ 15 (-63.41%)
Mutual labels:  gulp, handlebars
handlebars.c
C implementation of handlebars.js
Stars: ✭ 31 (-24.39%)
Mutual labels:  handlebars
mark.js
mark.js用于标记选中的文字,自定义插入标签
Stars: ✭ 27 (-34.15%)
Mutual labels:  gulp
is-my-train-delayed
An Angular web app built on Heroku with Node & Express. Shows information about delayed trains, and displays that in an easily consumable manner.
Stars: ✭ 15 (-63.41%)
Mutual labels:  gulp
ts-scaffold
🏗 ts-scaffold - Scaffold project for Typescript projects, with Unit Tests and basic dependencies set up
Stars: ✭ 13 (-68.29%)
Mutual labels:  scaffold
lead
Sink your streams.
Stars: ✭ 14 (-65.85%)
Mutual labels:  gulp
modular
Scaffold a react monorepo and its component parts.
Stars: ✭ 13 (-68.29%)
Mutual labels:  scaffold
matcha-bot
MatchaBot is a code generator. You can use matchabot to create an entire project, or to generate code inside an existing project consistently.
Stars: ✭ 14 (-65.85%)
Mutual labels:  handlebars

移动端开发脚手架

基于 gulp 的使用 zepto、handlebars、sass 并且带移动端适配方案(flexible.js)的前端工作流,旨在帮助移动端项目的开发。

背景

在移动端项目的开发中,我们会遇到诸如移动端技术选型、移动端适配、预处理器语言的使用规范和编译、各种繁琐的工作(压缩、合并、内联、雪碧图、CSS前缀……)等问题,在一遍又一遍的重复劳动中,我们需要一个能够结合最佳实践的项目初始文件,本套工作流就是以这个目的进行构建,旨在提高移动端项目开发效率。

技术选型

  • zepto.js + deferred.js + callbacks.js + touch.js(库)
  • flexible.js(移动端rem适配方案)
  • handlebars(模板引擎)
  • gulp(自动化构建工具)
  • sass(预处理器语言)

功能

  1. Sass 编译
  2. CSS JS 图片压缩
  3. CSS JS 合并
  4. CSS JS 内联
  5. HTML 的 include 功能
  6. Autoprefixer
  7. 自动刷新
  8. 去缓存
  9. 提供Handlebars模板文件的预编译
  10. 提供常用功能函数
  11. 雪碧图
  12. ESLint
  13. rem 移动端适配方案
  14. 内置样式与 WeUI 样式相同的 loading、dialog 组件

教程

针对移动端的前端工作流

共 13 篇,讲解了本套脚手架的各个方面。

使用

git clone git@github.com:mqyqingfeng/lnv-mobile-base.git

cd lnv-mobile-base

开发和编译

1.开发时使用:

gulp

当你开启 gulp 命令后,不要关闭终端,gulp 会监控 src 目录下的变化,根据文件的不同进行对应的操作。

2.最终构建:

gulp build

当你执行 gulp build 命令后,会自动压缩、合并、内联、去缓存,这是最终的上线版本。

说明

如果有疑问或者发现错误,可以在 issues 进行提问或勘误。

如果对你有所帮助,欢迎 star,对作者也是一种鼓励。

License

MIT

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].