Giter Site home page Giter Site logo

gulp-demo's Introduction

基于gulp的前端自动化构建工程

项目结构

- config
  - index.js           服务端配置
  - local.js           开发环境配置
  - production         生产环境配置
- public
  - dist               生产打包目录
  - src                开发源目录
  - vendor             第三方资源目录
- views_local          开发环境模板
- views_production     生产环境模板
- gulp.js              gulp配置文件
- server.js            服务启动文件

less目录

- common
  - animation.less     动画
  - layout.less        布局(header, footer, layout等)
  - reset.less         初始化
- component            组件(button, modal等)
- mixin                混合
- module               模块
- variables
  - theme.less         主题
  - variables.less     变量
- public
  - index.less         入口

图片目录

- icons                图标
- module               模块
- common               公用图片(雪碧图等)

Usage

 npm install

静态开发(切图)

 gulp bs

服务端开发

 gulp watch
 npm run start

上线打包部署

 gulp build
 npm run production

gulp-demo's People

Contributors

caesar-cat avatar 424152733 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.