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

jamesward/gulp-starter

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

开源软件名称(OpenSource Name):

jamesward/gulp-starter

开源软件地址(OpenSource Url):

https://github.com/jamesward/gulp-starter

开源编程语言(OpenSource Language):

Shell 59.0%

开源软件介绍(OpenSource Introduction):

Gulp Starter

This Gulp starter project provides a basis for a JavaScript UI (just the client-side). It provides:

  • Example AngularJS & Bootstrap app
  • Asset pipeline for LESS, JavaScript, images, and HTML that does basic compilation and syntax checking in development mode and minification for production mode
  • Development server with LiveReload integration
  • Production server used to test the production assets
  • Transparent Bower integration

Project Layout

app/html      ->  HTML assets
app/img       ->  Image assets
app/js        ->  JavaScript assets
app/less      ->  LESS assets
bower.json    ->  Bower / client-side dependencies
gulpfile.js   ->  The Gulp build definition
package.json  ->  The NPM build definition

Setup

  1. Git clone this repo

  2. Install Node.js / npm

  3. Fetch the dependencies with npm:

     npm update
    
  4. Install Gulp

     npm install -g gulp
    
  5. Verify Gulp works

     gulp
    

Use the Gulp Build

  • Run the dev mode server

      gulp dev
    

    This runs a local server: http://localhost:5000

    Changes to any of the source files (in the app dir) will automatically be available in the running server. If LiveReload is enabled your browser will automatically be refreshed.

  • Run the prod mode server

      gulp prod
    

    This runs a local server: http://localhost:5000

  • Update Bower dependencies by simply modifying the bower.json file. No need to actually run bower as this build will do it for you.

  • Generate assets for production

      gulp dist
    

    Everything will be in the dist directory.

  • Cleanup

      gulp clean
    

    Note: Do not combine the clean task with other tasks on the command line because they run in parallel.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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