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

bitbull-team/magento2-gulpfile: Simple Gulpfile for Magento2

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

开源软件名称(OpenSource Name):

bitbull-team/magento2-gulpfile

开源软件地址(OpenSource Url):

https://github.com/bitbull-team/magento2-gulpfile

开源编程语言(OpenSource Language):

JavaScript 100.0%

开源软件介绍(OpenSource Introduction):

BITBULL MAGENTO2 GULPFILE

Simple Gulpfile for Magento2

Why?

This project is originated from the need to make faster the frontend workflow of Magento 2. More info here: http://www.bitbull.it/blog/la-compilazione-del-less-in-magento2/

Usage

  1. Place the gulpfile.js and the package.json in the root of your project.

  2. Install the required modules:

     npm install /  yarn install  
    
  3. Create a configuration file dev/tools/gulp/themes.js with the following contents.

     module.exports = {
     <Theme>: {
       "src": [
         "vendor/<Vendor>/<Theme-name>",
         "vendor/<Vendor>/<Module-name>"
         ],
       "dest": "pub/static/frontend/<Vendor>/<Theme-name>",
       "locale": [locale,locale],
       "lang": "less",
       "area": "frontend",
       "vendor": <Vendor>,
       "name": <Theme-name>,
       "files": [
         "css/styles-m",
         "css/styles-l"
        ]
      }
     };
    

src: Array of theme and modules you want to compile in format "vendor//"

dest: Path in pub/static of your theme

area: area, one of (frontend|adminhtml|doc),

name: theme name in format theme-name,

locale: array of language to compile,

files: Files to compile

Commands

  1. Task watch. Watches for less changes in vendor modules/themes and compile them in pub/static..

     gulp watch --Theme-name
    
  2. Task clean. Clean old assets and run deployments commands.

     gulp clean --Theme-name
    
  3. Task clean cache. Clean cache.

     gulp clean-cache --Theme-name
    

Licence

OSL - Open Software Licence 3.0

Changelog

  • 3.1.0 Compile in different locales
  • 3.0.0 Added build and clean tasks
  • 2.0.0 Added sourcemaps
  • 1.0.0 First release

Developer

Irene Iaccio(@nuovecode) http://www.bitbull.it

Copyright

(c) 2016 Bitbull Srl




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
loikg/gulpfile.js: My personal gulpfile.js发布时间:2022-06-21
下一篇:
sanyueyu/gulp-mock-server: to be the most simple gulp mock tool in the world发布时间:2022-06-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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