# wcx-pages

> gulp website

Latest version **0.0.4** (published 2021-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install wcx-pages
pnpm add wcx-pages
yarn add wcx-pages
bun add wcx-pages
```

Provides the command `wcx-pages`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2021-01-12 |
| First published | 2020-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 20 |
| Unpacked size | 9.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | gavin_wang |

## Links

- npm: https://www.npmjs.com/package/wcx-pages
- npm.io page: https://npm.io/package/wcx-pages

## Dependencies (20)

- [del](https://npm.io/package/del.md) ^6.0.0
- [gulp](https://npm.io/package/gulp.md) ^4.0.2
- [gulp-if](https://npm.io/package/gulp-if.md) ^3.0.0
- [js-yaml](https://npm.io/package/js-yaml.md) ^3.14.0
- [postcss](https://npm.io/package/postcss.md) ^8.1.4
- [gulp-sass](https://npm.io/package/gulp-sass.md) ^4.1.0
- [gulp-swig](https://npm.io/package/gulp-swig.md) ^0.9.1
- [gulp-babel](https://npm.io/package/gulp-babel.md) ^8.0.0
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.12.3
- [gulp-uglify](https://npm.io/package/gulp-uglify.md) ^3.0.2
- [gulp-useref](https://npm.io/package/gulp-useref.md) ^5.0.0
- [autoprefixer](https://npm.io/package/autoprefixer.md) ^10.0.1
- [browser-sync](https://npm.io/package/browser-sync.md) ^2.26.13
- [gulp-htmlmin](https://npm.io/package/gulp-htmlmin.md) ^5.0.1
- [gulp-plumber](https://npm.io/package/gulp-plumber.md) ^1.2.1
- [gulp-postcss](https://npm.io/package/gulp-postcss.md) ^9.0.0
- [gulp-rev-all](https://npm.io/package/gulp-rev-all.md) ^2.0.3
- [gulp-imagemin](https://npm.io/package/gulp-imagemin.md) ^7.1.0
- [gulp-clean-css](https://npm.io/package/gulp-clean-css.md) ^4.3.0
- [gulp-load-plugins](https://npm.io/package/gulp-load-plugins.md) ^2.0.5

## Recent versions

- 0.0.4 (latest) — 2021-01-12
- 0.0.3 — 2020-12-31
- 0.0.2 — 2020-10-27
- 0.0.1 — 2020-10-27

## README

# Gulp Pages

#### 安装教程
```bash
yarn add wcx-pages -D
```

#### 使用说明
```json
...
"scripts": {
  ...
  "clean": "wcx-pages clean",
  "dev": "wcx-pages dev",
  "build": "wcx-pages build",
  "start": "wcx-pages start"
  ...
},
...
```

`gulp.config.js` 配置参数
```Javascript
{
  // 源代码
  source: 'src',

  // 构建输出目标
  destination: 'dist',

  // 无须编译静态资源
  public: 'public',

  // browser-sync options
  browserSyncNotify: false,
  browserSyncOpen: false,
  port: 3006,

  // sass options
  sassOptions: {
    outputStyle: 'compressed',
  },

  // babel options
  babelOptions: {
    presets: ['@babel/preset-env'],
  },
  // uglify options
  uglifyOptions: {
    compress: { drop_console: true }
  },

  // autoprefixer osptions
  autoprefixerOptions: {},

  // imagemin options
  imageminOptions: {},

  // htmlmin options
  htmlminOptions: {
    collapseWhitespace: true,
    minifyCSS: true,
    minifyJS: true,
    processConditionalComments: true,
    removeComments: true,
    removeEmptyAttributes: true,
    removeScriptTypeAttributes: true,
    removeStyleLinkTypeAttributes: true
  },

  // 相对路径 相对于源代码文件夹
  paths: {
    styles: 'assets/styles/*.scss',
    scripts: 'assets/scripts/*.js',
    pages: '*.html',
    fonts: 'assets/fonts/**/*.{eot,svg,ttf,woff,woff2}',
    images: 'assets/images/**/*.{jpg,jpeg,svg,png,webp}',
  },
  ignore: {
    styles: ['assets/styles/_*.scss'],
    scripts: [],
    pages: ['{layouts|partials}/*.html'],
    fonts: [],
    images: [],
  },
}
```

---
_Source: https://npm.io/package/wcx-pages · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
