All Projects → vincentSea → Gulp Cli

vincentSea / Gulp Cli

使用gulp前端自动化构建工具搭建前端项目,作为初始化项目

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gulp Cli

angular-material-boilerplate
A straightforward and well structured boilerplate based on Google's Angular Material project.
Stars: ✭ 28 (-76.47%)
Mutual labels:  gulp, eslint
100 Days Of Code Frontend
Curriculum for learning front-end development during #100DaysOfCode.
Stars: ✭ 2,419 (+1932.77%)
Mutual labels:  gulp, eslint
react-ssr-spa
Server side rendered single page app using reactjs official libraries.
Stars: ✭ 30 (-74.79%)
Mutual labels:  gulp, eslint
webpack-gulp-wordpress-starter-theme
A WordPress theme with Webpack & Gulp
Stars: ✭ 110 (-7.56%)
Mutual labels:  gulp, eslint
2life-server
💌 双生:遇见另一半的美好:)(服务端)
Stars: ✭ 66 (-44.54%)
Mutual labels:  gulp, eslint
Generator Fountain Webapp
Yeoman 'fountain' generator to start a webapp
Stars: ✭ 985 (+727.73%)
Mutual labels:  gulp, eslint
gulp-webpack-boilerplate
A good foundation for your next frontend project.
Stars: ✭ 56 (-52.94%)
Mutual labels:  gulp, eslint
Generator Dhboilerplate
Boilerplate made by David Hellmann
Stars: ✭ 54 (-54.62%)
Mutual labels:  gulp, eslint
Typescript Eslint Language Service
TypeScript language service plugin for ESLint
Stars: ✭ 108 (-9.24%)
Mutual labels:  eslint
Eslint Plugin Css Modules
Project status: NOT MAINTAINED; Checks that you are using the existent css/scss classes, no more no less
Stars: ✭ 115 (-3.36%)
Mutual labels:  eslint
Portfolio one Page Template
Free responsive one page portfolio template
Stars: ✭ 106 (-10.92%)
Mutual labels:  gulp
React Starter
A basic template that consists of the essential elements that are required to start building a React (v16.3) application using Webpack (v4)
Stars: ✭ 108 (-9.24%)
Mutual labels:  eslint
React Redux Auth0 Kit
Minimal starter boilerplate project with CRA, React, Redux, React Router and Auth0 authentication
Stars: ✭ 115 (-3.36%)
Mutual labels:  eslint
Lecture Frontend Dev Env
"[인프런] 프론트엔드 개발환경의 이해와 실습" 강의 실습 자료입니다.
Stars: ✭ 108 (-9.24%)
Mutual labels:  eslint
Static Site Boilerplate
A better workflow for building modern static websites.
Stars: ✭ 1,633 (+1272.27%)
Mutual labels:  eslint
Git Guppy
Simple git-hook integration for your gulp workflows.
Stars: ✭ 105 (-11.76%)
Mutual labels:  gulp
Node Flowtype Boilerplate
This boilerplate repository is outdated and no longer maintained. Instead, I strongly recommend to use TypeScript.
Stars: ✭ 104 (-12.61%)
Mutual labels:  eslint
Phaser Kinetic Scrolling Plugin
Kinetic Scrolling plugin for Canvas using Phaser Framework
Stars: ✭ 117 (-1.68%)
Mutual labels:  gulp
Ember Cli Eslint
Ember CLI addon for linting Ember projects with ESLint
Stars: ✭ 116 (-2.52%)
Mutual labels:  eslint
Csdwheels
一套基于原生JavaScript开发的插件,无依赖、体积小
Stars: ✭ 114 (-4.2%)
Mutual labels:  gulp

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

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

项目启动

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

// 单任务命令
执行压缩: gulp zip
编译页面: gulp html
编译脚本: gulp script
编译样式: gulp styles
语法检测: gulp eslint
压缩图片: gulp images

项目地址

  • 如对你有帮助,希望给个Star !哈哈哈!!
git clone https://github.com/vincentSea/gulp-cli.git

项目目录

├── README.md         # 项目说明
├── config            # gulp路径配置
├── dist              # 打包路径
|
├── gulpfile.js       # gulp配置文件
├── package.json      # 依赖包
|
├── src               # 项目文件夹
│   ├── include       # 公用页面引入
│   ├── index.html    # 首页
│   ├── static        # 资源文件夹
│   │   ├── images    # 图库
│   │   ├── js        # 脚本
│   │   └── styles    # 样式(scss, css)
│   └── views         # 页面
|
├── static            # 打包到dist中static文件中
└── webpack.config.js # webpack配置文件

项目约定

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

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

2、使用scss预处理

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

3、static文件夹

  • 一级目录中static文件夹,可以存放不需要编译的文件内容,比如一些插件,图片,字体文件等
  • 每次npm run dev or build 都会把static文件夹下的内容,打包到dist/static里

代理模式

  • config/index.js文件中配置

例子如下

 middleware: [
  proxy.proxyPrase(
    {
      target: 'http://v3.wufazhuce.com:8000/api',
      route: '/api'
    }
  )
]

使用Eslint

config/index.js文件

useEslint: false // 是否启用eslint

使用webpack

  • 集成webpack功能,可以自行选择

config/index.js文件

useWebpack: false // 是否启用webpack

小生后话

  • 此前端自动化构建框架,只是为了简单方便

  • 可以随便根据自己的要求去进行修改配置

  • 如有设计不合理地方,可以提出,我乃虚心听取

  • 项目地址 如对你有帮助,希望给个Star !哈哈哈!!

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