Skip to content

Commit

Permalink
fix package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Maya Shavin committed Nov 4, 2020
1 parent 7b32b46 commit 6068670
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 17,578 deletions.
17,560 changes: 0 additions & 17,560 deletions package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
"optimization",
"api"
],
"gitHead": "b1c5d7f2e4cbce4d3c7ab8dd96cbc333465c4f0b"
"gitHead": "7b32b4663c80dcd58faf76248fc8e96528a6d597"
}
2 changes: 1 addition & 1 deletion packages/demo/gridsome.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ module.exports = {
}
],
transformers: {
image: {
img: {
uploadOptions: {
folder: 'examples',
},
Expand Down
4 changes: 2 additions & 2 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"gridsome": "^0.7.0",
"gridsome-plugin-cloudinary": "^0.0.8",
"gridsome-source-cloudinary": "^0.0.8",
"gridsome-transformer-image": "^0.0.8",
"gridsome-transformer-img": "^0.0.8",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-cli": "^4.1.0"
},
"gitHead": "b1c5d7f2e4cbce4d3c7ab8dd96cbc333465c4f0b",
"gitHead": "7b32b4663c80dcd58faf76248fc8e96528a6d597",
"devDependencies": {
"gridsome-plugin-tailwindcss": "^3.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/gs-cld-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "b1c5d7f2e4cbce4d3c7ab8dd96cbc333465c4f0b"
"gitHead": "7b32b4663c80dcd58faf76248fc8e96528a6d597"
}
2 changes: 1 addition & 1 deletion packages/gs-cld-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "b1c5d7f2e4cbce4d3c7ab8dd96cbc333465c4f0b"
"gitHead": "7b32b4663c80dcd58faf76248fc8e96528a6d597"
}
2 changes: 1 addition & 1 deletion packages/gs-image-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"bugs": {
"url": "https://github.com/mayashavin/gridsome-plugin-cloudinary/issues"
},
"gitHead": "b1c5d7f2e4cbce4d3c7ab8dd96cbc333465c4f0b"
"gitHead": "7b32b4663c80dcd58faf76248fc8e96528a6d597"
}
8 changes: 4 additions & 4 deletions packages/gs-transformer-image/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# `gridsome-transformer-image`
# `gridsome-transformer-img`

> Image transformer for Gridsome with options for optimization loader.
> Images transformer for Gridsome with options for optimization loader.
## Installation

```bash
yarn add gridsome-transformer-image
yarn add gridsome-transformer-img
```

## Usage

```js
export default {
transformers: {
image: {
img: {
uploadOptions: {
folder: 'examples',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

const gridsomeTransformerImage = require('..');

describe('gridsome-transformer-image', () => {
describe('@mayas/gridsome-transformer-image', () => {
it('needs tests');
});
4 changes: 2 additions & 2 deletions packages/gs-transformer-image/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ImageTransformer {
return ['image/png', 'image/jpeg', 'image/gif', 'image/webp']
}

constructor(options) {
constructor(options = {}) {
this._options = options

if (options.loader && options.loader.type === 'cloudinary') {
Expand Down Expand Up @@ -43,7 +43,7 @@ class ImageTransformer {
}
}

if (this._options.loader.type === 'cloudinary') {
if (this._options.loader && this._options.loader.type === 'cloudinary') {
const CldImage = require('./types/CldImage')
node.image = {
type: new graphql.GraphQLObjectType(CldImage),
Expand Down
6 changes: 3 additions & 3 deletions packages/gs-transformer-image/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "gridsome-transformer-image",
"name": "gridsome-transformer-img",
"version": "0.0.8",
"description": "Transformer for image node",
"author": "Maya Shavin <maya@cloudinary.com>",
"homepage": "https://github.com/mayashavin/gridsome-plugin-cloudinary/tree/master/packages/gridsome-transformer-image#readme",
"homepage": "https://github.com/mayashavin/gridsome-plugin-cloudinary/tree/master/packages/gs-transformer-image#readme",
"license": "MIT",
"main": "lib/index.js",
"directories": {
Expand Down Expand Up @@ -37,5 +37,5 @@
"publishConfig": {
"access": "public"
},
"gitHead": "b1c5d7f2e4cbce4d3c7ab8dd96cbc333465c4f0b"
"gitHead": "7b32b4663c80dcd58faf76248fc8e96528a6d597"
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"@mayas/cld-api": ["api/lib"],
"gridsome-source-cloudinary": ["gs-cld-source/lib"],
"gridsome-plugin-cloudinary": ["gs-cld-plugin/lib"],
"gridsome-transformer-image": ["gs-transformer-image/lib"]
"@mayas/gridsome-transformer-img": ["gs-transformer-image/lib"]
}
}
}
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2956,6 +2956,11 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.5.tgz#e92d3b8f76583efa26c1a63a21c9d3c1143daa29"
integrity sha512-H5Wn24s/ZOukBmDn03nnGTp18A60ny9AmCwnEcgJiTgSGsCO7k+NWP7zjCCbhlcnVCoI+co52dUAt9GMhOSULw==

"@types/node@^14.14.6":
version "14.14.6"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.6.tgz#146d3da57b3c636cc0d1769396ce1cfa8991147f"
integrity sha512-6QlRuqsQ/Ox/aJEQWBEJG7A9+u7oSYl3mem/K8IzxXG/kAGbV1YPD9Bg9Zw3vyxC/YP+zONKwy8hGkSt1jxFMw==

"@types/normalize-package-data@^2.4.0":
version "2.4.0"
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
Expand Down

0 comments on commit 6068670

Please sign in to comment.