Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

cddgulp

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cddgulp

给基于gulp的脚手架项目

latest
Source
npmnpm
Version
1.0.0-1
Version published
Weekly downloads
15
114.29%
Maintainers
1
Weekly downloads
 
Created
Source

cddgulp

版本:1.0.0

1.0版本终于发布,晚上了各种功能。

说明

这是一个关于gulp脚手架的项目主要实现的功能如下
  • 实时预览
  • babel支持
  • 压缩js
  • 在项目完成时进行打包复制到别的文件夹"../../packageNew/.."
  • 压缩图片
  • 对静态资源进行hash添加指纹

使用方法

以下命令都必须要进入app目录才能实现

命令

1.开发

yarn dev

或者

gulp dev

该命令会执行开发的一些列动作,包括:

  • 复制html,css,js,img,网络字体
  • 生成dist文件夹,把资源都复制到其中
  • hash
  • 打开浏览器,进行实时预览开发

2.开启compass/sass功能,进行样式文件的开发分立

该功能也能够实现实时预览效果

命名

compass watch

3.打包

命令:

yarn build

或者

gulp build

该命令会把dist文件中的东西进行打包,然后添加指纹,之后压缩,文件命名方式为build+小时+日期+月份的方式。

FAQs

Package last updated on 24 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts