• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

tsevdos/Gulp-boilerplate-for-web-designers: Gulp boilerplate for web designers

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

tsevdos/Gulp-boilerplate-for-web-designers

开源软件地址(OpenSource Url):

https://github.com/tsevdos/Gulp-boilerplate-for-web-designers

开源编程语言(OpenSource Language):

JavaScript 98.9%

开源软件介绍(OpenSource Introduction):

Gulp boilerplate for web designers

Gulp boilerplate for web designers provides directory and file structure to aid web-designers kickstart their next project. It will help you develop and deploy any html-based (and more) templates. Some out of the box features :

  • OOCSS and SMACSS (Scalable and Modular Architecture for CSS) ready infrastructure
  • Compile Sass files
  • Autoprefix styles (you only need to write the web-standard version)
  • Compass support
  • Compiles and lints Coffee scripts files
  • JsLinter
  • CSS and JS minification
  • Compiles Jade
  • Image optimization

Dependencies

You need to install SASS and compass ruby gems. To do that make sure you have ruby installed and then type the below commands: gem update --system gem install sass gem install compass

Installation

Follow the Getting Started with Gulp for an in-depth look at setting up Grunt, but basically:

  1. Boot up terminal
  2. Make sure to have Node.js installed
  3. Install gulp globally npm install -g gulp
  4. cd to your project folder
  5. Git clone (git clone [email protected]:tsevdos/Gulp-boilerplate-for-web-designers.git) or download and extract the zip file
  6. Install Gulp and required grunt tasks by typing npm install
  7. Run gulp

File structure

Your development environment is in the app directory - you do all the work there. Whenever you are ready you can build the work by running the gulp task (the default task). This task will generate a public directory that will contain all your files (CSS, JS, HTML and images) optimized and ready to distribute/upload/share.

Tasks

You can run the below tasks.

  1. gulp (default task) : Creates a public directory with all the optimized files (read File structure section for more details).
  2. gulp watch : Probably the most usable task. Just run this task and whatever file you edit any file (html, scss, coffee, js, etc.) it passes it through the appropriate pipeline (task).
  3. gulp styles : This task compiles all the Sass files and autoprefixes. After that it saves the generated CSS files expanded into the development directory and the minified version into the public directory.
  4. gulp coffee : This task lints and compiles your coffee script files (you must include them into the js directory).
  5. gulp lintscripts : This task lints all javascripts files except from those located under the vendor directory.
  6. gulp scripts : This task will concatanate all scripts into one using the order you'll specify. The public version of this file will also be minified.
  7. gulp images : This task will optimize all images (with jpg, png and gif extension) under the img folder.
  8. gulp jade : This task will compile your jade templates.
  9. gulp markup : This task will pretify your html files.
  10. gulp clean : This support task cleans (deletes all the contents of) the public directory in order to prepare it for the build (default task).

TODO:

  • Add a gulp-live-server reload task



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap