You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3.4 KiB
3.4 KiB
Documentation for developpers
This package is the the main SeaCMS package.
Installation
- install
git - install
composer - clone repository
git clone https://git.defis.info/SeaCMS/seacms.git seacms- choose the folder name by replacing
seacmsin the command line by the wanted path or (equivalent togit clone)
mkdir seacms cd seacms git init git remote add origin https://git.defis.info/SeaCMS/seacms.git git fetch --all git checkout master - choose the folder name by replacing
- then start
composer install
If you want use one dependency in local
- create the file
main-config.jsonin 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 updatein command line - be careful not to push
composer.lockto main repo if you don't know what you are doing
If trouble during composer update, you can:
- clear cache
composer cc - delete folder
vendorbeforecomposer update
TODO
- set contact addresses into
CODE_OF_CONDUCT.mdfiles - update
composer.jsonfile as described below - create a
SUPPORT.mdfile at the root - update content of
.github/CONTRIBUTING.md - check content of
.github/PULL_REQUEST_TEMPLATE.md - update docs (French + English) for installation
composer.json file
This files needs to be updated.
Currently, it uses "minimum-stability": "dev", to allow usage of alpha revisions of packages.
TODO
add these fields :
"name": "TODO To be defined",
"description": "TODO to complete",
"homepage": "TODO To set",
"authors": [
{
"name": "xxx",
"email": "TODO complete",
"homepage": "TODO complete",
"role": "Developer"
},
{
"name": "xxx",
"email": "TODO complete",
"homepage": "TODO complete",
"role": "Developer"
},
],
"support": {
"email": "support@example.org",
"issues": "url",
"source": "url",
"docs": "url",
"chat": "url",
"rss": "url",
},
"funding": [
{
"type": "patreon",
"url": "https://www.patreon.com/phpdoctrine"
},
{
"type": "tidelift",
"url": "https://tidelift.com/subscription/pkg/packagist-doctrine_doctrine-bundle"
},
{
"type": "other",
"url": "https://www.doctrine-project.org/sponsorship.html"
}
]
.github folder
It was choosen to name the folder as .github to allow compatibility for forks on GitHUb even if the folder could be named .gitea.
reserved folders' name
vendorfor composernode_modulesfornpmandyarnarchivesfor archives' creationsitesfor subsites on a farmpublicfor assetspublic/imgpublic/jspublic/css, ....pfor main content path