Skip to content

Commit 12345d3

Browse files
authored
Release/1.1.0 (#205)
* chore(npm): update npm dependencies and new linting rules * chore(release): release version 1.1.0
1 parent 7e9d881 commit 12345d3

File tree

11 files changed

+3746
-2269
lines changed

11 files changed

+3746
-2269
lines changed

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
node_modules
1+
node_modules/*
22
.eslintrc.js
33
commitizen.config.js
44
commitlint.config.js

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
node: true,
66
},
77
parserOptions: {
8-
ecmaVersion: 2017,
8+
ecmaVersion: 2018,
99
},
1010
plugins: ['prettier', 'jsdoc', 'promise', 'sonarjs'],
1111
extends: [

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.1.0 (2020-07-18)
4+
5+
- Add `outputStylesheetPath` option. Big thank to [@kenfoo](https://github.com/kenfoo).
6+
- Update minor dependencies.
7+
38
## 1.0.0 (2019-11-02)
49

510
- Switch from exports to module.exports syntax.

gulpfile.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { task, src, dest, series } = require('gulp');
22
const postcss = require('gulp-postcss');
33
const rename = require('gulp-rename');
4-
const eslint = require('gulp-eslint');
54
const mocha = require('gulp-mocha');
65
const del = require('del');
76
const easysprite = require('./index.js');
@@ -30,15 +29,11 @@ task('runDemo', (done) => {
3029
done();
3130
});
3231

33-
task('linting', () => {
34-
return src('**/*.js').pipe(eslint()); // hint (optional)
35-
});
36-
3732
task('runTest', () => {
3833
return src('test/*.test.js', { read: false }).pipe(mocha());
3934
});
4035

4136
// task('project', series('project:basic'));
4237
task('demo', series('clean:demo', 'runDemo'));
43-
task('test', series('linting', 'runTest'));
38+
task('test', series('runTest'));
4439
task('default', series('test'));

lib/constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file Exported variable constants.
3-
* @module lib/constants
3+
* @module constants
44
*/
55

66
/** @constant {string} */

lib/run-spritesmith.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ function buildSpritesmithConfig(spriteImages, spriteGroup) {
1919

2020
// Merge the src path property and existing plugin options into a new
2121
// master configuration object for spritesmith.
22-
const config = Object.assign({}, opts, {
23-
src: spriteImages.map((image) => image.path),
24-
});
22+
const config = { ...opts, src: spriteImages.map((image) => image.path) };
2523

2624
// Enlarge padding for retina images.
2725
if (areAllRetina(spriteImages)) {

lib/sprites.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { promisify } = require('util');
22
const path = require('path');
33
const { writeFile } = require('fs');
4-
const mkdirp = promisify(require('mkdirp'));
4+
const mkdirp = require('mkdirp');
55
const ansi = require('ansi-colors');
66

77
const writeFileAsync = promisify(writeFile);

lib/update-references.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file Updates CSS background property references.
3-
* @module lib/update-references
3+
* @module update-references
44
*/
55

66
const path = require('path');

0 commit comments

Comments
 (0)