feat(composer-plugin): finish to configure

This commit is contained in:
Jérémy Dufraisse 2023-03-13 19:30:09 +01:00
parent 9b4e1920e6
commit ef589d549e
3 changed files with 79 additions and 108 deletions

View File

@ -41,81 +41,32 @@
},
"repositories": {
"picocms/pico": {
"type": "path",
"url": "../pico",
"options": {
"name": "picocms/pico",
"versions": {
"picocms/pico": "dev-fix-compatibility-php8",
"symlink": true
}
}
"type": "vcs",
"url": "https://git.defis.info/SeaCMS/pico"
},
"seacms/seacms-api": {
"type": "path",
"url": "../seacms-api",
"options": {
"name": "seacms/seacms-api",
"versions": {
"seacms/seacms-api": "dev-master",
"symlink": true
}
}
"type": "vcs",
"url": "https://git.defis.info/SeaCMS/seacms-api"
},
"seacms/seacms-app": {
"type": "path",
"url": "../seacms-app",
"options": {
"name": "seacms/seacms-app",
"versions": {
"seacms/seacms-app": "dev-master",
"symlink": true
}
}
"type": "vcs",
"url": "https://git.defis.info/SeaCMS/seacms-app"
},
"seacms/seacms-auth": {
"type": "path",
"url": "../seacms-auth",
"options": {
"name": "seacms/seacms-auth",
"versions": {
"seacms/seacms-auth": "dev-master",
"symlink": true
}
}
"type": "vcs",
"url": "https://git.defis.info/SeaCMS/seacms-auth"
},
"seacms/composer-plugin": {
"type": "path",
"url": "../composer-plugin",
"options": {
"name": "seacms/composer-plugin",
"versions": {
"seacms/composer-plugin": "dev-master",
"symlink": true
}
}
"type": "vcs",
"url": "https://git.defis.info/SeaCMS/composer-plugin"
},
"seacms/pico-content-editor": {
"type": "path",
"url": "../pico-content-editor",
"options": {
"name": "seacms/pico-content-editor",
"versions": {
"seacms/pico-content-editor": "dev-master",
"symlink": true
}
}
"type": "vcs",
"url": "https://git.defis.info/SeaCMS/pico-content-editor"
},
"seacms/seacms-theme": {
"type": "path",
"url": "../seacms-theme",
"options": {
"name": "seacms/seacms-theme",
"versions": {
"seacms/seacms-theme": "dev-master",
"symlink": true
}
}
"type": "vcs",
"url": "https://git.defis.info/SeaCMS/seacms-theme"
}
}
}

82
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "9a32b0ec8335523b4a2efbbd4e8f8389",
"content-hash": "0c4bf840d079233bc33002d3e9ed1559",
"packages": [
{
"name": "erusev/parsedown",
@ -189,9 +189,9 @@
{
"name": "picocms/pico",
"version": "dev-fix-compatibility-php8",
"dist": {
"type": "path",
"url": "../pico",
"source": {
"type": "git",
"url": "https://git.defis.info/SeaCMS/pico",
"reference": "0187138622d9c8776be3324ed904abd6371c256f"
},
"require": {
@ -266,9 +266,7 @@
"issues": "https://github.com/picocms/Pico/issues",
"source": "https://github.com/picocms/Pico"
},
"transport-options": {
"relative": true
}
"time": "2023-03-10T23:35:40+00:00"
},
{
"name": "pixel418/markdownify",
@ -330,10 +328,10 @@
{
"name": "seacms/app",
"version": "dev-master",
"dist": {
"type": "path",
"url": "../seacms-app",
"reference": "f0c54299bbd5bf6b372e1f6275d3ac2d0ce51619"
"source": {
"type": "git",
"url": "https://git.defis.info/SeaCMS/seacms-app",
"reference": "262012d5d4a3f3495ae03cd1b7680458cc30f015"
},
"require": {
"ext-dom": "*",
@ -350,6 +348,7 @@
"suggest": {
"picocms/pico-theme": "Default pico theme : revision ^3.0"
},
"default-branch": true,
"type": "library",
"extra": {
"pico-plugin-dir": "vendor/picocms/plugins/",
@ -385,17 +384,15 @@
"license": [
"EUPL-1.2"
],
"transport-options": {
"relative": true
}
"time": "2023-03-13T17:44:18+00:00"
},
{
"name": "seacms/composer-plugin",
"version": "dev-master",
"dist": {
"type": "path",
"url": "../composer-plugin",
"reference": "4826be297c84d7ac37796e7e923b61910c939b60"
"source": {
"type": "git",
"url": "https://git.defis.info/SeaCMS/composer-plugin",
"reference": "3a1a8da8100369347fc69e4eb96a9b7c7b552fad"
},
"require": {
"composer-plugin-api": "^2.3",
@ -404,6 +401,7 @@
"replace": {
"symfony/finder": "*"
},
"default-branch": true,
"type": "composer-plugin",
"extra": {
"class": "Seacms\\ComposerInstaller\\Plugin"
@ -434,16 +432,14 @@
"issues": "https://git.defis.info/SeaCMS/composer-plugin/issues",
"source": "https://git.defis.info/SeaCMS/composer-plugin"
},
"transport-options": {
"relative": true
}
"time": "2023-03-13T18:22:14+00:00"
},
{
"name": "seacms/pico-content-editor",
"version": "dev-master",
"dist": {
"type": "path",
"url": "../pico-content-editor",
"source": {
"type": "git",
"url": "https://git.defis.info/SeaCMS/pico-content-editor",
"reference": "da5ed742f3eb4e4af466eb278754168715ec8b8d"
},
"require": {
@ -452,6 +448,7 @@
"seacms/seacms-api": "dev-master",
"seacms/seacms-auth": "dev-master"
},
"default-branch": true,
"type": "pico-plugin",
"autoload": {
"psr-4": {
@ -495,21 +492,20 @@
"issues": "https://git.defis.info/SeaCMS/pico-content-editor/issues",
"source": "https://git.defis.info/SeaCMS/pico-content-editor"
},
"transport-options": {
"relative": true
}
"time": "2023-03-11T12:39:32+00:00"
},
{
"name": "seacms/seacms-api",
"version": "dev-master",
"dist": {
"type": "path",
"url": "../seacms-api",
"source": {
"type": "git",
"url": "https://git.defis.info/SeaCMS/seacms-api",
"reference": "f5b81d351454f2b7fe4c09d462f7802241ca94d1"
},
"require": {
"php": "^8.0"
},
"default-branch": true,
"type": "pico-plugin",
"autoload": {
"psr-4": {
@ -542,22 +538,21 @@
"issues": "https://git.defis.info/SeaCMS/seacms-api/issues",
"source": "https://git.defis.info/SeaCMS/seacms-api"
},
"transport-options": {
"relative": true
}
"time": "2023-03-02T17:19:44+00:00"
},
{
"name": "seacms/seacms-auth",
"version": "dev-master",
"dist": {
"type": "path",
"url": "../seacms-auth",
"source": {
"type": "git",
"url": "https://git.defis.info/SeaCMS/seacms-auth",
"reference": "eef1cad3ccb4deda8f9fbccf01880e0040be3c97"
},
"require": {
"php": "^8.0",
"seacms/seacms-api": "dev-master"
},
"default-branch": true,
"type": "pico-plugin",
"autoload": {
"classmap": [
@ -587,22 +582,21 @@
"issues": "https://git.defis.info/SeaCMS/seacms-auth/issues",
"source": "https://git.defis.info/SeaCMS/seacms-auth"
},
"transport-options": {
"relative": true
}
"time": "2023-03-11T17:16:33+00:00"
},
{
"name": "seacms/seacms-theme",
"version": "dev-master",
"dist": {
"type": "path",
"url": "../seacms-theme",
"source": {
"type": "git",
"url": "https://git.defis.info/SeaCMS/seacms-theme",
"reference": "7e0717491f77b2e7b2716e903b07a808178fe52d"
},
"require": {
"seacms/app": "dev-master",
"seacms/pico-content-editor": "dev-master"
},
"default-branch": true,
"type": "pico-theme",
"extra": {
"installer-name": "seacms"
@ -619,9 +613,7 @@
"seacms",
"seacms-theme"
],
"transport-options": {
"relative": true
}
"time": "2023-03-11T12:42:13+00:00"
},
{
"name": "symfony/polyfill-ctype",

View File

@ -22,6 +22,34 @@ This package is the the main SeaCMS package.
```
- then start `composer install`
### If you want use one dependency in local
- create the file `main-config.json` in root folder
- keep on branch `master`
- put this This will use symlink to these folders only if existing
```
{
"local-repositories": {
"composer-plugin": "seacms/composer-plugin",
"pico-content-editor": "seacms/pico-content-editor",
"pico": {
"packageName": "picocms/pico",
"version": "dev-fix-compatibility-php8"
},
"seacms-app": "seacms/seacms-app",
"seacms-api": "seacms/seacms-api",
"seacms-auth": "seacms/seacms-auth",
"seacms-theme": "seacms/seacms-theme"
}
}
```
- type `composer update` in command line
- be careful not to push `composer.lock` to main repo if you don't know what you are doing
If trouble during `composer update`, you can:
1. clear cache `composer cc`
2. delete folder `vendor` before `composer update`
## TODO
- [ ] set contact addresses into `CODE_OF_CONDUCT.md` files