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

Commit

Permalink
Merge branch 'release/4.0.1' into v4
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Oct 5, 2022
2 parents 9fcef72 + 7827600 commit a03280f
Show file tree
Hide file tree
Showing 7 changed files with 430 additions and 384 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file.

## 4.0.1 - 2022.10.05
### Changed
* Added `allow-plugins` to `composer.json` so CI tests can run
* Updated docs for more explicit install instructions ([#43](https://github.com/nystudio107/craft-connect/pull/43))

## 4.0.0 - 2022.05.17
### Added
* Initial Craft CMS 4 release
Expand Down
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/quality-score.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-connect/?branch=v1) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/coverage.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-connect/?branch=v1) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/build.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-connect/build-status/v1) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/code-intelligence.svg?b=v1)](https://scrutinizer-ci.com/code-intelligence)

# Connect plugin for Craft CMS 4.x
# Connect plugin for Craft CMS

Allows you to connect to external databases and perform db queries

![Screenshot](./docs/docs/resources/img/plugin-logo.png)

## Requirements

This plugin requires Craft CMS 4.0.0 or later.
This plugin requires Craft CMS 3.0.0 or later, or Craft CMS 4.0.0 or later.

## Installation

Expand All @@ -22,9 +22,13 @@ To install the plugin, follow these instructions.

composer require nystudio107/craft-connect

This will install the latest version. If you wish to install the Craft CMS 3.x compatible version, run this Composer command:

composer require nystudio107/craft-connect "^1.0.0"

3. Install the plugin via `./craft install/plugin connect` via the CLI, or in the Control Panel, go to Settings → Plugins and click the “Install” button for Connect.

Or you can install the plugin via the **Plugin Store** in the Craft CMS CP.
Or you can install the plugin via the **Plugin Store** in the Craft CMS 3 CP.

## Documentation

Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-connect",
"description": "Allows you to connect to external databases and perform db queries",
"type": "craft-plugin",
"version": "4.0.0",
"version": "4.0.1",
"keywords": [
"craft",
"cms",
Expand All @@ -27,6 +27,12 @@
"require": {
"craftcms/cms": "^4.0.0"
},
"config": {
"allow-plugins": {
"craftcms/plugin-installer": true,
"yiisoft/yii2-composer": true
}
},
"autoload": {
"psr-4": {
"nystudio107\\connect\\": "src/"
Expand Down
12 changes: 10 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,38 +5,46 @@ DOCKERRUN=docker container run \
--rm \
-p 3002:3002 \
-t \
-v `pwd`:/app \
-v "${CURDIR}":/app \
${CONTAINER}:${TAG}
DOCSDEST?=../../../sites/nystudio107/web/docs/minify
DOCSDEST?=../../../sites/nystudio107/web/docs/connect

.PHONY: docker build dev fix install lint clean npm

# Start the Docker container
docker:
docker build \
. \
-t ${CONTAINER}:${TAG} \
--build-arg TAG=${TAG} \
--no-cache
# Build the production docs
build: docker install
${DOCKERRUN} \
run docs:build
rm -rf ${DOCSDEST}
mv ./docs/.vitepress/dist ${DOCSDEST}
# Start up the dev server
dev: docker install
${DOCKERRUN} \
run docs:dev
# Fix the docs via textlint
fix: docker install
${DOCKERRUN} \
run docs:fix
# Run an npm install
install: docker
${DOCKERRUN} \
install
# Lint the docs via textlint
lint: docker install
${DOCKERRUN} \
run docs:lint
# Remove node_modules/* & package-lock.json
clean:
rm -rf node_modules/
rm -f package-lock.json
# Run the passed in npm command
npm: docker
${DOCKERRUN} \
$(filter-out $@,$(MAKECMDGOALS))
Expand Down
8 changes: 6 additions & 2 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/quality-score.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-connect/?branch=v1) [![Code Coverage](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/coverage.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-connect/?branch=v1) [![Build Status](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/build.png?b=v1)](https://scrutinizer-ci.com/g/nystudio107/craft-connect/build-status/v1) [![Code Intelligence Status](https://scrutinizer-ci.com/g/nystudio107/craft-connect/badges/code-intelligence.svg?b=v1)](https://scrutinizer-ci.com/code-intelligence)

# Connect plugin for Craft CMS 3.x
# Connect plugin for Craft CMS

Allows you to connect to external databases and perform db queries

![Screenshot](./resources/img/plugin-logo.png)

## Requirements

This plugin requires Craft CMS 3.0.0 or later.
This plugin requires Craft CMS 3.0.0 or later, or Craft CMS 4.0.0 or later.

## Installation

Expand All @@ -22,6 +22,10 @@ To install the plugin, follow these instructions.

composer require nystudio107/craft-connect

This will install the latest version. If you wish to install the Craft CMS 3.x compatible version, run this Composer command:

composer require nystudio107/craft-connect "^1.0.0"

3. Install the plugin via `./craft install/plugin connect` via the CLI, or in the Control Panel, go to Settings → Plugins and click the “Install” button for Connect.

Or you can install the plugin via the **Plugin Store** in the Craft CMS 3 CP.
Expand Down
Loading

0 comments on commit a03280f

Please sign in to comment.