-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Maya Shavin
committed
Nov 3, 2020
1 parent
03d2889
commit 49f0e71
Showing
9 changed files
with
75 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# `api` | ||
# `@mayas/cld-api` | ||
|
||
> TODO: description | ||
> More friendly API Wrapper for Cloudinary | ||
## Usage | ||
|
||
``` | ||
const api = require('api'); | ||
```js | ||
const api = require('@mayas/cld-api'); | ||
|
||
// TODO: DEMONSTRATE API | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
# `gs-cld-transformer` | ||
# `@mayas/gridsome-plugin-cld` | ||
|
||
> TODO: description | ||
> Cloudinary plugin for Gridsome | ||
## Usage | ||
|
||
``` | ||
const gsCldTransformer = require('gs-cld-transformer'); | ||
// TODO: DEMONSTRATE API | ||
```js | ||
/*gridsome.config.js*/ | ||
export default { | ||
plugins: [ | ||
{ | ||
use: "@mayas/gridsome-plugin-cld", | ||
options: { | ||
cloudName: process.env.CLOUDNAME, | ||
apiKey: process.env.API_KEY, | ||
apiSecret: process.env.API_SECRET, | ||
} | ||
}, | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
# `@mayas/gridsome-source-cld` | ||
|
||
> TODO: description | ||
> Cloudinary Source plugin for Gridsome | ||
## Installation | ||
|
||
```bash | ||
yarn add @mayas/gridsome-source-cld | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
export default { | ||
plugins: [ | ||
{ | ||
use: '@mayas/gridsome-source-cld', | ||
options: { | ||
cloudName: process.env.CLOUDNAME, | ||
apiKey: process.env.API_KEY, | ||
apiSecret: process.env.API_SECRET, | ||
resourceOptions: { | ||
type: "upload", | ||
prefix: 'examples', | ||
max_results: 50 | ||
}, | ||
// transformations: { | ||
// width: 200, | ||
// height: 200, | ||
// gravity: 'auto:subject', | ||
// crop: 'fill', | ||
// } | ||
}, | ||
}, | ||
] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# `gs-image-node` | ||
|
||
> TODO: description | ||
> WIP - Please do not use | ||
## Usage | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
# `gridsome-transformer-image` | ||
|
||
> TODO: description | ||
> Image transformer for Gridsome | ||
## Usage | ||
|
||
``` | ||
const gridsomeTransformerImage = require('gridsome-transformer-image'); | ||
// TODO: DEMONSTRATE API | ||
```js | ||
export default { | ||
transformers: { | ||
image: { | ||
uploadOptions: { | ||
folder: 'examples', | ||
}, | ||
loader: { | ||
type: 'cloudinary', | ||
cloudName: process.env.CLOUDNAME, | ||
apiKey: process.env.API_KEY, | ||
apiSecret: process.env.API_SECRET, | ||
} | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Installing 'webpack-cli' (running 'yarn add -D webpack-cli')... | ||
yarn add v1.22.10 | ||
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. |