@pipflow/core

1.2.3 • Public • Published

@pipflow/core

Wrapping Gulp's build process.

It provides a series of out-of-the-box build tasks , can cover from html, css, javascript to static resources , local servers , the entire front-end project build process , greatly simplifying and optimizing the configuration process of Gulp .

基于Gulp构建流程的封装。

它提供了一系列开箱即用的构建任务,可以涵盖从 html、css、javascript 到静态资源、本地服务器的整个前端项目构建流程,极大地简化和优化了Gulp的配置过程。

Install

npm install --save-dev @pipflow/core

Usage

const gulp = require('gulp')
const {
  htmlTask,
  scriptTask,
  styleTask,
  imageTask,
  staticTask,
  copyTask,
  archiveTask,
  removeTask,
  userTask,
  eslintTask,
  createServer
} = require('@pipflow/core')

exports.buildHtml = done => {
  return htmlTask({
    input: 'src/**/*.{html,ejs}',
    compiler: 'ejs'
  }, done)
}

exports.buildScript = done => {
  return scriptTask({
    input: 'src/**/*.{js,mjs}',
    compiler: 'babel'
  }, done)
}

exports.buildStyle = done => {
  return styleTask({
    input: 'src/**/*.{css,less}',
    compiler: 'less'
  }, done)
}

// ...

Documents 📚

Read the Docs to Learn More.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.30latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.30
1.2.257
1.2.154
1.2.088
1.1.47
1.1.34
1.1.21
1.1.10
1.1.00
1.0.00
0.13.00
0.12.01
0.11.00
0.10.00
0.9.30
0.9.20
0.9.10
0.9.00
0.8.00
0.7.20
0.7.10
0.7.00
0.6.00
0.5.10
0.5.00
0.4.10
0.4.00
0.3.10
0.3.00
0.2.10
0.1.10
0.1.00

Package Sidebar

Install

npm i @pipflow/core

Weekly Downloads

212

Version

1.2.3

License

MIT

Unpacked Size

59.8 kB

Total Files

24

Last publish

Collaborators

  • mengqing723