Skip to content

Commit

Permalink
Release/1.1.0 (#205)
Browse files Browse the repository at this point in the history
* chore(npm): update npm dependencies and new linting rules

* chore(release): release version 1.1.0
  • Loading branch information
patrickcate authored Jul 18, 2020
1 parent 7e9d881 commit 12345d3
Show file tree
Hide file tree
Showing 11 changed files with 3,746 additions and 2,269 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
node_modules/*
.eslintrc.js
commitizen.config.js
commitlint.config.js
Expand Down
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
node: true,
},
parserOptions: {
ecmaVersion: 2017,
ecmaVersion: 2018,
},
plugins: ['prettier', 'jsdoc', 'promise', 'sonarjs'],
extends: [
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.1.0 (2020-07-18)

- Add `outputStylesheetPath` option. Big thank to [@kenfoo](https://github.com/kenfoo).
- Update minor dependencies.

## 1.0.0 (2019-11-02)

- Switch from exports to module.exports syntax.
Expand Down
7 changes: 1 addition & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { task, src, dest, series } = require('gulp');
const postcss = require('gulp-postcss');
const rename = require('gulp-rename');
const eslint = require('gulp-eslint');
const mocha = require('gulp-mocha');
const del = require('del');
const easysprite = require('./index.js');
Expand Down Expand Up @@ -30,15 +29,11 @@ task('runDemo', (done) => {
done();
});

task('linting', () => {
return src('**/*.js').pipe(eslint()); // hint (optional)
});

task('runTest', () => {
return src('test/*.test.js', { read: false }).pipe(mocha());
});

// task('project', series('project:basic'));
task('demo', series('clean:demo', 'runDemo'));
task('test', series('linting', 'runTest'));
task('test', series('runTest'));
task('default', series('test'));
2 changes: 1 addition & 1 deletion lib/constants.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Exported variable constants.
* @module lib/constants
* @module constants
*/

/** @constant {string} */
Expand Down
4 changes: 1 addition & 3 deletions lib/run-spritesmith.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ function buildSpritesmithConfig(spriteImages, spriteGroup) {

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

// Enlarge padding for retina images.
if (areAllRetina(spriteImages)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/sprites.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { promisify } = require('util');
const path = require('path');
const { writeFile } = require('fs');
const mkdirp = promisify(require('mkdirp'));
const mkdirp = require('mkdirp');
const ansi = require('ansi-colors');

const writeFileAsync = promisify(writeFile);
Expand Down
2 changes: 1 addition & 1 deletion lib/update-references.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file Updates CSS background property references.
* @module lib/update-references
* @module update-references
*/

const path = require('path');
Expand Down
Loading

0 comments on commit 12345d3

Please sign in to comment.