Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Fix generated image styles path
Browse files Browse the repository at this point in the history
  • Loading branch information
Wtower committed Jan 26, 2017
1 parent c97c8ee commit 0b89cfd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ CHANGELOG
v0.5.4
------

Date: upcoming
Minor updates and fixes

Date: Thu 26 Jan, 2017

- Update gulpfile-ninecms to v0.4.0
- Fix generated image styles path

v0.5.3
------
Expand Down
3 changes: 2 additions & 1 deletion generators/app/templates/services/image-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
var Promise = require('bluebird');
var path = require('path');
var fs = Promise.promisifyAll(require('fs'));
var gm = require('gm').subClass({imageMagick: true});
var gm = require('gm');
Promise.promisifyAll(gm.prototype);

/**
Expand All @@ -29,6 +29,7 @@ var outputFilename = function(name, image) {
* @returns {*|Promise}
*/
var check = function(images, options) {
options.path = path.join(__dirname, '..', options.path);
return Promise.map(images, function(image) {
return fs.statAsync(path.join(options.path, outputFilename(options.name, image.image)))
.catch(function () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"eslint": "^3.1.1",
"eslint-config-xo-space": "^0.15.0",
"fs-extra": "^1.0.0",
"fs-extra": "^2.0.0",
"gulp": "^3.9.0",
"gulp-coveralls": "^0.1.4",
"gulp-eslint": "^3.0.1",
Expand Down

0 comments on commit 0b89cfd

Please sign in to comment.