Skip to content

Commit

Permalink
Merge pull request #21 from olliethedev/feat/blog-plugin
Browse files Browse the repository at this point in the history
Feat/blog plugin
  • Loading branch information
olliethedev authored Oct 27, 2023
2 parents a56d21c + c77edc7 commit bb892fd
Show file tree
Hide file tree
Showing 9 changed files with 82 additions and 19 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Packages | Description
[Create Model Transformer](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-graphql-create-model-transformer) | Creates a model on trigger event (ex. Cognito Conf)
[Send Email Transformer](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-graphql-send-email-transformer) | Sends an email on DynamoDB mutation
[Process Image Transformer](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-graphql-process-image-transformer) | Transforms images in S3
[Blog Plugin](https://github.com/olliethedev/amplifiers/tree/master/packages/amplify-util-blog) | Adds blog functionality to your Amplify project

## Development ##
- This project uses workspaces. To install dependencies run `npm install -ws` from the root directory.
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.17",
"version": "1.1.18",
"private": true,
"workspaces": [
"./packages/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-graphql-amplifiers-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amplifiers/amplify-graphql-amplifiers-core",
"version": "1.1.17",
"version": "1.1.18",
"description": "Amplify GraphQL @createModel transformer. This directive is intended to be used for creating a new model once a Cognito Event is fired.",
"keywords": [
"aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amplifiers/amplify-graphql-create-model-transformer",
"version": "1.1.17",
"version": "1.1.18",
"description": "Amplify GraphQL @createModel transformer. This directive is intended to be used for creating a new model once a Cognito Event is fired.",
"keywords": [
"aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amplifiers/amplify-graphql-process-image-transformer",
"version": "1.1.17",
"version": "1.1.18",
"description": "This directive allows you to process images.",
"keywords": [
"aws",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amplifiers/amplify-graphql-send-email-transformer",
"version": "1.1.17",
"version": "1.1.18",
"description": "Amplify GraphQL @sendEmail transformer.",
"keywords": [
"aws",
Expand Down
47 changes: 46 additions & 1 deletion packages/amplify-util-blog/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,46 @@
wip
# Amplify Util Blog

Amplify Util Blog is a utility plugin for the Amplify CLI that helps you add blog functionality to your Amplify project. It provides commands to add and remove blog related resources, and it also updates your GraphQL schema, parameters, transformer configuration, and UI elements to support blog features.

## Features

- Adds Post and Tag models to your GraphQL schema.
- Adds blog related UI components to your project.
- Updates parameters configuration with Typesense related parameters to enable search.
- Updates transformer configuration to include `amplify-graphql-typesense-transformer` to enable search.
- Supports only JavaScript/TypeScript React projects.

## Commands

- `version`: Displays the version of the plugin.
- `help`: Provides help information for the plugin.
- `add`: Adds blog related resources to your project.
- `remove`: Removes blog related resources from your project.


## Installation

To use this plugin, you need to install it globally:
```bash
npm install -g @amplifiers/amplify-util-blog
```

Then, you can use the `amplify plugin add` command to add it to your Amplify CLI:
```bash
amplify plugin add /usr/local/lib/node_modules/@amplifiers/amplify-util-blog
```

Follow the prompts to add the `amplify-util-blog` plugin.

## Usage

To add blog functionality to your project, run:
```bash
amplify amplify-util-blog add
```

To remove blog functionality from your project, run:
```bash
amplify amplify-util-blog remove
```

29 changes: 23 additions & 6 deletions packages/amplify-util-blog/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{
"name": "@amplifiers/amplify-util-blog",
"version": "1.1.17",
"description": "",
"version": "1.1.18",
"description": "Amplify Util Blog is a utility plugin for the Amplify CLI that helps you add blog functionality to your Amplify project.",
"keywords": [
"aws",
"amplify",
"grapqhl",
"serverless",
"plugin",
"blog",
"ui"
],
"main": "index.js",
"files": [
"commands/**/*",
Expand All @@ -12,10 +21,18 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"compile": "echo WIP"
},
"author": "",
"license": "ISC",
"dependencies": {
},"dependencies": {
"fs-extra": "^11.1.1"
},
"author": "olliethedev",
"license": "MIT",
"bugs": {
"url": "https://github.com/olliethedev/amplifiers/issues"
},
"homepage": "https://github.com/olliethedev/amplifiers#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/olliethedev/amplifiers.git",
"directory": "packages/amplify-util-blog"
}
}

0 comments on commit bb892fd

Please sign in to comment.