Giter VIP home page Giter VIP logo

gulp-init's Introduction

基于gulp搭建的前端自动化构建

适用于中小型项目,快速构建前端项目框架。比如运营活动页,官网类,简单移动端项目,小demo测试等

项目启动

// 常用命令
开发环境: npm run dev
生产环境: npm run build

// 单任务命令
执行压缩: gulp zip
编译页面: gulp html
编译脚本: gulp script
编译样式: gulp styles
语法检测: gulp eslint
压缩图片: gulp images
git clone https://github.com/LeesinChen/gulp-init.git

项目目录

├── README.md         # 项目说明
├── config            # gulp路径配置
├── dist              # 打包路径
|
├── gulpfile.js       # gulp配置文件
├── package.json      # 依赖包
|
├── src               # 项目文件夹
│   └── jd_finance    # 项目目录
│        ├── image    # 图库
|        ├── less     # less
│        ├── js       # 脚本
│        └── styles   # 样式(scss, css)
│  
|
└── webpack.config.js # webpack配置文件

项目约定

1、 使用严格的 eslint 规范 文档链接

  • 如果不想使用eslint,可以gulpfile文件中去掉该任务

2、使用less预处理

  • 可以根据个人喜好,去配置不同的预处理工具

## 使用Eslint 
config/index.js文件

useEslint: false // 是否启用eslint


## 使用webpack
* 集成webpack功能,可以自行选择

config/index.js文件

useWebpack: false // 是否启用webpack

gulp-init's People

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.