Skip to content

Commit

Permalink
Fix naming (#5)
Browse files Browse the repository at this point in the history
* Fix naming

* 4.3.1
  • Loading branch information
andre487 committed Dec 27, 2023
1 parent f546d06 commit d7e4a23
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# gulp-clean-css
# gulp-cleaner-css

This is a fork of [gulp-clean-css](https://github.com/scniro/gulp-clean-css) with updated dependencies.

[![Run tests](https://github.com/andre487/gulp-cleaner-css/actions/workflows/run-tests.yml/badge.svg)](https://github.com/andre487/gulp-cleaner-css/actions/workflows/run-tests.yml)
[![Coverage Status](https://coveralls.io/repos/github/andre487/gulp-cleaner-css/badge.svg)](https://coveralls.io/github/andre487/gulp-cleaner-css)
[![Downloads](https://img.shields.io/npm/dm/gulp-cleaner-css.svg?style=flat-square)](https://www.npmjs.com/package/gulp-cleaner-css)
[![NPM Version](https://img.shields.io/npm/v/gulp-cleaner-css.svg?style=flat-square)](https://www.npmjs.com/package/gulp-cleaner-css)

> [gulp](http://gulpjs.com/) plugin to minify CSS, using [clean-css](https://github.com/jakubpawlowicz/clean-css)
>
> This is a fork of [gulp-clean-css](https://github.com/scniro/gulp-clean-css) with updated dependencies.
## Regarding Issues

Expand Down Expand Up @@ -40,7 +40,7 @@ gulp.task('minify-css', () => {

#### callback

Useful for returning details from the underlying [`minify()`](https://github.com/jakubpawlowicz/clean-css#using-api) call. An example use case could include logging `stats` of the minified file. In addition to the default object, `gulp-clean-css` provides the file `name` and `path` for further analysis.
Useful for returning details from the underlying [`minify()`](https://github.com/jakubpawlowicz/clean-css#using-api) call. An example use case could include logging `stats` of the minified file. In addition to the default object, `gulp-cleaner-css` provides the file `name` and `path` for further analysis.

```javascript
const gulp = require('gulp');
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = (options, callback) => {
return cb(null, file);
}
if (file.isStream()) {
this.emit('error', new PluginError('gulp-clean-css', 'Streaming not supported!'));
this.emit('error', new PluginError('gulp-cleaner-css', 'Streaming not supported!'));
return cb(null, file);
}

Expand Down
8 changes: 4 additions & 4 deletions index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const expect = chai.expect;
chai.should();
chai.use(require('chai-string'));

describe('gulp-clean-css: init', () => {
describe('gulp-cleaner-css: init', () => {

it('should return the gulp-clean-css object: required export', () => {
it('should return the gulp-cleaner-css object: required export', () => {
expect(cleanCSS).to.exist;
});
});

describe('gulp-clean-css: base functionality', () => {
describe('gulp-cleaner-css: base functionality', () => {

it('should play nicely with other plugins: gulp-sass: before', done => {

Expand Down Expand Up @@ -282,7 +282,7 @@ describe('gulp-clean-css: base functionality', () => {
});
});

describe('gulp-clean-css: rebase', () => {
describe('gulp-cleaner-css: rebase', () => {

it('should not rebase files by default - do not resolve relative files', done => {

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "gulp-cleaner-css",
"description": "Minify css with clean-css.",
"homepage": "https://github.com/andre487/gulp-cleaner-css#readme",
"version": "4.3.0",
"version": "4.3.1",
"author": "scniro",
"contributors": [
"andre487"
Expand All @@ -27,6 +27,7 @@
"minify-css",
"gulp-minify-css",
"gulp-clean-css",
"gulp-cleaner-css",
"gulpplugin",
"gulpfriendly"
],
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/sourcemaps-load/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>gulp-clean-css: source maps</title>
<title>gulp-cleaner-css: source maps</title>

<link rel="stylesheet" href="min/test-sass.min.css"/>
</head>
<body>
<p>source maps</p>
</body>
</html>
</html>
4 changes: 2 additions & 2 deletions test/fixtures/sourcemaps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>gulp-clean-css: source maps</title>
<title>gulp-cleaner-css: source maps</title>

<link rel="stylesheet" href="sourcemapped.generated.css"/>
</head>
<body>
<p>source maps</p>
</body>
</html>
</html>

0 comments on commit d7e4a23

Please sign in to comment.