mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Compare commits
171 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
603ffc064b | ||
|
9372698a6b | ||
|
3887540da7 | ||
|
635d8be6fc | ||
|
036f173a38 | ||
|
6b966add42 | ||
|
3445801412 | ||
|
a8f62aab68 | ||
|
7264db0e34 | ||
|
b18c0372f2 | ||
|
bd202820de | ||
|
5ce684af70 | ||
|
ea654c1c9e | ||
|
f2f7455177 | ||
|
f38f39761e | ||
|
e9fcd38f52 | ||
|
5e497fa85f | ||
|
1049f90978 | ||
|
44a3fdb0ea | ||
|
f10a0206af | ||
|
4886a740ad | ||
|
ed70400f9c | ||
|
0d52cbc913 | ||
|
62c49cac6d | ||
|
ce944e8417 | ||
|
58ada1c9ed | ||
|
07e1b32a53 | ||
|
0b89a51c0c | ||
|
9c3ffd47c5 | ||
|
fe1be1b8b7 | ||
|
6a500ec454 | ||
|
04f9beecf5 | ||
|
7bc208e571 | ||
|
4f62379f58 | ||
|
19c057efee | ||
|
8691390ad9 | ||
|
030e0d60fa | ||
|
a19303860f | ||
|
4d67d06700 | ||
|
56462207b6 | ||
|
5b756664cc | ||
|
4219d455d5 | ||
|
a8d6ffdeab | ||
|
4eea3f390a | ||
|
45921d29de | ||
|
57195eab03 | ||
|
7c06e8cbd1 | ||
|
612ff2922b | ||
|
3a5f852d31 | ||
|
db70cb692a | ||
|
8fe8bf5bec | ||
|
f19d383c68 | ||
|
fea0ee4a96 | ||
|
7b08763477 | ||
|
6e5f726df7 | ||
|
3ed95a2fc3 | ||
|
bba20c5159 | ||
|
ce4615980c | ||
|
567236f2e8 | ||
|
d75e848a71 | ||
|
9a342a58ee | ||
|
55f6e03f6e | ||
|
e1d2cd30e6 | ||
|
345f091fd4 | ||
|
0bc751ad90 | ||
|
e48b1662a8 | ||
|
54a8b8ce8f | ||
|
081282cac1 | ||
|
2065c471ed | ||
|
7ee712f47c | ||
|
d1fcd1c061 | ||
|
e93ef98999 | ||
|
be9d875141 | ||
|
ab68119de6 | ||
|
9487628f7a | ||
|
26e55e5226 | ||
|
6bb9c73137 | ||
|
c90a8d3729 | ||
|
221b39bb27 | ||
|
4e1fa260ee | ||
|
69df70b045 | ||
|
4e47962d23 | ||
|
5811293a74 | ||
|
6961632875 | ||
|
37f30ca54e | ||
|
643a3bded3 | ||
|
821589a018 | ||
|
0ff05595bb | ||
|
9e637f7e07 | ||
|
870ba6f55d | ||
|
3e2629a602 | ||
|
da876a829c | ||
|
d48994d993 | ||
|
b594a257ca | ||
|
7be811a914 | ||
|
523372bc15 | ||
|
44728e4d9b | ||
|
495b9442d5 | ||
|
f955099b6e | ||
|
25332311ea | ||
|
4ea1f7082b | ||
|
0a57853c60 | ||
|
4ddf1a901e | ||
|
1b561f8d80 | ||
|
6035ccd689 | ||
|
65b2a72843 | ||
|
ae68dc4299 | ||
|
1ac80f05a8 | ||
|
80d1bdf621 | ||
|
d76bd7d66e | ||
|
daa0bf08ae | ||
|
be7e4c8730 | ||
|
fb77893766 | ||
|
27231bf315 | ||
|
074c9dc45c | ||
|
63830aec7f | ||
|
5877d0ecce | ||
|
9f2a17337a | ||
|
ffd0a85bd3 | ||
|
d6bcc27fb5 | ||
|
46f687ab5a | ||
|
3f9e2618c2 | ||
|
6851935652 | ||
|
02ca9d772a | ||
|
6bb01369f5 | ||
|
c921509259 | ||
|
966f7343d5 | ||
|
e5840dfbeb | ||
|
03cab91539 | ||
|
87ae55539e | ||
|
8f62bb9488 | ||
|
a3bc3d80c5 | ||
|
54265626f1 | ||
|
3bf4d1f34c | ||
|
e3230a7371 | ||
|
56b9c16880 | ||
|
93f8699b65 | ||
|
b171632ccd | ||
|
626d7c9f99 | ||
|
d01cf63018 | ||
|
03c2c996c5 | ||
|
0ae3823eeb | ||
|
7de2991fa3 | ||
|
70580acb2b | ||
|
be4ff49c12 | ||
|
c1d94643a4 | ||
|
9171342ec2 | ||
|
e4acec30c8 | ||
|
d4af206393 | ||
|
a968e7ad47 | ||
|
09a2f6e298 | ||
|
002cb6b61d | ||
|
0eede14f45 | ||
|
43b8000fd6 | ||
|
3e7294ea70 | ||
|
cfba4cbe36 | ||
|
83f78fc40e | ||
|
c9a4efe29d | ||
|
c0d9fd4869 | ||
|
810f719f86 | ||
|
e8614b59bb | ||
|
9fe50bb42b | ||
|
0f02f2364f | ||
|
f04beea2f3 | ||
|
a302acfa5a | ||
|
b66e851dda | ||
|
90f54ccfe9 | ||
|
fa3c87f61e | ||
|
fa67bc614b | ||
|
05fd5a9a96 | ||
|
caf0bc12f7 |
20
.cow.json
20
.cow.json
@ -1,9 +1,7 @@
|
|||||||
{
|
{
|
||||||
"github-slug": "silverstripe/silverstripe-installer",
|
"github-slug": "silverstripe/silverstripe-installer",
|
||||||
"changelog-holder": "silverstripe/framework",
|
|
||||||
"changelog-path": "docs/en/04_Changelogs/{stability}/{version}.md",
|
|
||||||
"child-stability-inherit": true,
|
"child-stability-inherit": true,
|
||||||
"dependency-constraint": "exact",
|
"dependency-constraint": "loose",
|
||||||
"vendors": [
|
"vendors": [
|
||||||
"silverstripe"
|
"silverstripe"
|
||||||
],
|
],
|
||||||
@ -13,21 +11,5 @@
|
|||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"silverstripe/recipe-plugin"
|
"silverstripe/recipe-plugin"
|
||||||
],
|
|
||||||
"archives": [
|
|
||||||
{
|
|
||||||
"recipe": "silverstripe/recipe-core",
|
|
||||||
"files": [
|
|
||||||
"SilverStripe-framework-v{version}.zip",
|
|
||||||
"SilverStripe-framework-v{version}.tar.gz"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"recipe": "silverstripe/installer",
|
|
||||||
"files": [
|
|
||||||
"SilverStripe-cms-v{version}.zip",
|
|
||||||
"SilverStripe-cms-v{version}.tar.gz"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
79
.cow/changelog.md.twig
Normal file
79
.cow/changelog.md.twig
Normal file
@ -0,0 +1,79 @@
|
|||||||
|
# {{ version }}
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
A full list of module versions included in CMS Recipe {{ version }} is provided below. We recommend referencing recipes in your dependencies, rather than individual modules, to simplify version tracking. See [Recipes](/getting_started/).
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Included module versions</summary>
|
||||||
|
|
||||||
|
| Module | Version |
|
||||||
|
| ------ | ------- |
|
||||||
|
| silverstripe/admin | x.x.x |
|
||||||
|
| silverstripe/asset-admin | x.x.x |
|
||||||
|
| silverstripe/assets | x.x.x |
|
||||||
|
| silverstripe/campaign-admin | x.x.x |
|
||||||
|
| silverstripe/cms | x.x.x |
|
||||||
|
| silverstripe/config | x.x.x |
|
||||||
|
| silverstripe/errorpage | x.x.x |
|
||||||
|
| silverstripe/framework | x.x.x |
|
||||||
|
| silverstripe/graphql | x.x.x |
|
||||||
|
| silverstripe/login-forms | x.x.x |
|
||||||
|
| silverstripe/mimevalidator | x.x.x |
|
||||||
|
| silverstripe/reports | x.x.x |
|
||||||
|
| silverstripe/siteconfig | x.x.x |
|
||||||
|
| silverstripe/versioned | x.x.x |
|
||||||
|
| silverstripe/versioned-admin | x.x.x |
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
|
{% if version.stability == 'rc' %}
|
||||||
|
|
||||||
|
## Release Candidate
|
||||||
|
|
||||||
|
This version of Silverstripe CMS is a **release candidate** for an upcoming stable version, and should not be applied to production websites. We encourage developers to test this version in development / testing environments and [report any issues they encounter via GitHub](/contributing/issues_and_bugs/).
|
||||||
|
|
||||||
|
{% elseif version.stable %}
|
||||||
|
|
||||||
|
Upgrading to Recipe {{ version }} is recommended for all sites. This upgrade can be carried out by any development team familiar with Silverstripe.
|
||||||
|
|
||||||
|
## Security considerations
|
||||||
|
|
||||||
|
This release includes security fixes. Please see the release announcements for more detailed
|
||||||
|
descriptions of each. We highly encourage upgrading your project to include the latest security patches nonetheless.
|
||||||
|
|
||||||
|
We have provided a high-level severity rating of the vulnerabilities below based on the CVSS score, however please note this could vary based on the specifics of each project. You can [read the severity rating definitions in the Silverstripe CMS release process](/contributing/release_process/#severity-rating).
|
||||||
|
|
||||||
|
* [CVE-0000-0000 The Issue Title](https://www.silverstripe.org/download/security-releases/CVE-0000-0000) Severity: {# Critical/ High/ Medium/ Low #}
|
||||||
|
* [CVE-0000-0001 The Issue Title](https://www.silverstripe.org/download/security-releases/CVE-0000-0001) Severity: {# Critical/ High/ Medium/ Low #}
|
||||||
|
|
||||||
|
## New features
|
||||||
|
|
||||||
|
The [release announcement](#) includes the note worthy features, but be sure to review the change log for full detail.
|
||||||
|
|
||||||
|
{# other upgrade notes here #}
|
||||||
|
|
||||||
|
## Known issues
|
||||||
|
|
||||||
|
{#
|
||||||
|
* [Known issue](GitHub link)
|
||||||
|
#}
|
||||||
|
|
||||||
|
### Expected test failures
|
||||||
|
|
||||||
|
The following PHPUnit test failures are expected and do not represent functional issues:
|
||||||
|
|
||||||
|
{#
|
||||||
|
* List test failures here
|
||||||
|
#}
|
||||||
|
|
||||||
|
```
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
...
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{{ logs }}
|
@ -2,8 +2,11 @@
|
|||||||
# https://docs.silverstripe.org/en/4/getting_started/environment_management/#core-environment-variables
|
# https://docs.silverstripe.org/en/4/getting_started/environment_management/#core-environment-variables
|
||||||
|
|
||||||
# DB credentials
|
# DB credentials
|
||||||
SS_DATABASE_CLASS="MySQLPDODatabase"
|
SS_DATABASE_CLASS="MySQLDatabase"
|
||||||
SS_DATABASE_SERVER="localhost"
|
SS_DATABASE_SERVER="localhost"
|
||||||
SS_DATABASE_USERNAME="<user>"
|
SS_DATABASE_USERNAME="<user>"
|
||||||
SS_DATABASE_PASSWORD="<password>"
|
SS_DATABASE_PASSWORD="<password>"
|
||||||
SS_DATABASE_NAME="<database>"
|
SS_DATABASE_NAME="<database>"
|
||||||
|
|
||||||
|
# WARNING: in a live environment, change this to "live" instead of dev
|
||||||
|
SS_ENVIRONMENT_TYPE="dev"
|
||||||
|
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1,4 +1,6 @@
|
|||||||
|
.github export-ignore
|
||||||
.cow.json export-ignore
|
.cow.json export-ignore
|
||||||
|
.cow export-ignore
|
||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
.travis.yml export-ignore
|
.travis.yml export-ignore
|
||||||
behat.yml export-ignore
|
behat.yml export-ignore
|
||||||
|
27
.github/workflows/ci.yml
vendored
Normal file
27
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ci:
|
||||||
|
name: CI
|
||||||
|
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
|
||||||
|
with:
|
||||||
|
# installer contains a sample behat.yml file, though there are no behat tests to run
|
||||||
|
endtoend: false
|
||||||
|
# require the following in ci.yml rather than composer.json require-dev specifically for installer because unlike
|
||||||
|
# regular modules, require-dev will get installed to projects during `composer create-project silverstripe/installer`
|
||||||
|
composer_require_extra: silverstripe/recipe-testing:^2 silverstripe/frameworktest:^0.4.2 mikey179/vfsstream:^1.6.10
|
||||||
|
extra_jobs: |
|
||||||
|
- endtoend: true
|
||||||
|
endtoend_suite: admin
|
||||||
|
endtoend_config: vendor/silverstripe/admin/behat.yml
|
||||||
|
- endtoend: true
|
||||||
|
endtoend_suite: asset-admin
|
||||||
|
endtoend_config: vendor/silverstripe/asset-admin/behat.yml
|
||||||
|
- endtoend: true
|
||||||
|
endtoend_suite: cms
|
||||||
|
endtoend_config: vendor/silverstripe/cms/behat.yml
|
16
.github/workflows/dispatch-ci.yml
vendored
Normal file
16
.github/workflows/dispatch-ci.yml
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: Dispatch CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
# At 4:00 PM and 5:00 PM
|
||||||
|
schedule:
|
||||||
|
- cron: '0 16,17 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
dispatch-ci:
|
||||||
|
name: Dispatch CI
|
||||||
|
# Only run cron on the silverstripe account
|
||||||
|
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Dispatch CI
|
||||||
|
uses: silverstripe/gha-dispatch-ci@v1
|
17
.github/workflows/keepalive.yml
vendored
Normal file
17
.github/workflows/keepalive.yml
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
name: Keepalive
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
# The 8th of every month at 4:50pm UTC
|
||||||
|
schedule:
|
||||||
|
- cron: '50 16 8 * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
keepalive:
|
||||||
|
name: Keepalive
|
||||||
|
# Only run cron on the silverstripe account
|
||||||
|
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Keepalive
|
||||||
|
uses: silverstripe/gha-keepalive@v1
|
6
.gitignore
vendored
6
.gitignore
vendored
@ -2,5 +2,7 @@
|
|||||||
/.env
|
/.env
|
||||||
/vendor/
|
/vendor/
|
||||||
/themes/simple/
|
/themes/simple/
|
||||||
/resources/
|
/_resources/
|
||||||
/public/resources/
|
/public/_resources/
|
||||||
|
/.graphql-generated/
|
||||||
|
/public/_graphql/
|
||||||
|
0
.graphql-generated/_manifest_exclude
Normal file
0
.graphql-generated/_manifest_exclude
Normal file
110
.travis.yml
110
.travis.yml
@ -1,110 +0,0 @@
|
|||||||
language: php
|
|
||||||
|
|
||||||
dist: trusty
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get install chromium-chromedriver
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.composer/cache/files
|
|
||||||
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- tidy
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- TRAVIS_NODE_VERSION="6"
|
|
||||||
- COMPOSER_ROOT_VERSION="4.3.x-dev"
|
|
||||||
- DISPLAY=":99"
|
|
||||||
- XVFBARGS=":99 -ac -screen 0 1024x768x16"
|
|
||||||
- SS_BASE_URL="http://localhost:8080/"
|
|
||||||
- SS_ENVIRONMENT_TYPE="dev"
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
fast_finish: true
|
|
||||||
include:
|
|
||||||
# Core php tests
|
|
||||||
- php: 5.6
|
|
||||||
env:
|
|
||||||
- PHPUNIT_TEST=core
|
|
||||||
- DB=MYSQL
|
|
||||||
- PDO=1
|
|
||||||
- php: 7.1
|
|
||||||
env:
|
|
||||||
- PHPUNIT_TEST=framework
|
|
||||||
- DB=MYSQL
|
|
||||||
- php: 7.3
|
|
||||||
env:
|
|
||||||
- PHPUNIT_TEST=core
|
|
||||||
- DB=PGSQL
|
|
||||||
# admin php tests
|
|
||||||
- php: 7.0
|
|
||||||
env:
|
|
||||||
- PHPUNIT_TEST=admin
|
|
||||||
- DB=PGSQL
|
|
||||||
- php: 7.2
|
|
||||||
env:
|
|
||||||
- PHPUNIT_TEST=admin
|
|
||||||
- DB=MYSQL
|
|
||||||
- PDO=1
|
|
||||||
# behat tests
|
|
||||||
- php: 7.0
|
|
||||||
env:
|
|
||||||
- BEHAT_TEST="@framework"
|
|
||||||
- DB=MYSQL
|
|
||||||
- php: 7.0
|
|
||||||
env:
|
|
||||||
- BEHAT_TEST="@cms"
|
|
||||||
- DB=MYSQL
|
|
||||||
- php: 7.0
|
|
||||||
env:
|
|
||||||
- BEHAT_TEST="@asset-admin"
|
|
||||||
- DB=MYSQL
|
|
||||||
- php: 5.6
|
|
||||||
env:
|
|
||||||
- HEALTH_TEST=1
|
|
||||||
- DB=MYSQL
|
|
||||||
- PDO=1
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
# Extra $PATH
|
|
||||||
- export PATH=/usr/lib/chromium-browser/:$PATH
|
|
||||||
|
|
||||||
# Init PHP
|
|
||||||
- phpenv rehash
|
|
||||||
- phpenv config-rm xdebug.ini || true
|
|
||||||
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
|
|
||||||
|
|
||||||
# Install composer dependencies
|
|
||||||
- composer validate
|
|
||||||
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.2.x-dev; fi
|
|
||||||
- if [[ $BEHAT_TEST ]]; then composer require --no-update silverstripe/recipe-testing:^1; fi;
|
|
||||||
- if [[ $HEALTH_TEST ]]; then composer require --no-update silverstripe/serve:^2; fi;
|
|
||||||
- if ! [[ $HEALTH_TEST ]]; then composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile; fi;
|
|
||||||
- if [[ $HEALTH_TEST ]]; then composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile --no-dev; fi;
|
|
||||||
|
|
||||||
# Start behat services
|
|
||||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi
|
|
||||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then cp composer.lock artifacts/; fi
|
|
||||||
- if [[ $BEHAT_TEST ]]; then sh -e /etc/init.d/xvfb start; sleep 3; fi
|
|
||||||
- if [[ $BEHAT_TEST ]]; then (chromedriver > artifacts/chromedriver.log 2>&1 &); fi
|
|
||||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then (vendor/bin/serve --bootstrap-file vendor/silverstripe/cms/tests/behat/serve-bootstrap.php &> artifacts/serve.log &); sleep 3; fi
|
|
||||||
|
|
||||||
script:
|
|
||||||
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit --testsuite $PHPUNIT_TEST; fi
|
|
||||||
- if [[ $BEHAT_TEST ]]; then vendor/bin/behat $BEHAT_TEST; fi
|
|
||||||
- if [[ $HEALTH_TEST ]]; then curl -vfL http://localhost:8080/dev/build?flush; fi
|
|
||||||
- if [[ $HEALTH_TEST ]]; then curl -vfL http://localhost:8080/admin; fi
|
|
||||||
|
|
||||||
after_failure:
|
|
||||||
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then php ./vendor/silverstripe/framework/tests/behat/travis-upload-artifacts.php --if-env ARTIFACTS_BUCKET,ARTIFACTS_KEY,ARTIFACTS_SECRET --target-path $TRAVIS_REPO_SLUG/$TRAVIS_BUILD_ID/$TRAVIS_JOB_ID --artifacts-base-url https://s3.amazonaws.com/$ARTIFACTS_BUCKET/ --artifacts-path ./artifacts/; fi
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
slack:
|
|
||||||
on_pull_requests: false
|
|
||||||
rooms:
|
|
||||||
secure: pr4kG5tTMqZy1DLejHd1MpPulAE7FtRvTYekWrKIbQF0SkbFz+s3v9fAk2AqCr+SxfV67M3M+sL52/q6TDjeGYJJttwA60gyfH/Qrc/ToCYP3J80Ca/hsk02mya0pF8Kpjg37XP8kNzAllR162mCwYKJgFiXO6Q1eb/aVJwiqmQ=
|
|
14
README.md
14
README.md
@ -1,11 +1,15 @@
|
|||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Base project folder for a SilverStripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme.
|
[![CI](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml)
|
||||||
|
[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
|
||||||
|
|
||||||
|
Base project folder for a Silverstripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme.
|
||||||
|
|
||||||
## Installation ##
|
## Installation ##
|
||||||
|
|
||||||
See [installation on different platforms](http://doc.silverstripe.org/framework/en/installation/),
|
`composer create-project silverstripe/installer my-app`
|
||||||
and [installation from source](http://doc.silverstripe.org/framework/en/installation/from-source).
|
|
||||||
|
See [Getting Started](https://docs.silverstripe.org/en/4/getting_started/) for more information.
|
||||||
|
|
||||||
## Bugtracker ##
|
## Bugtracker ##
|
||||||
|
|
||||||
@ -15,11 +19,11 @@ Please read our [issue reporting guidelines](https://docs.silverstripe.org/en/4/
|
|||||||
|
|
||||||
## Development and Contribution ##
|
## Development and Contribution ##
|
||||||
|
|
||||||
If you would like to make changes to the SilverStripe core codebase, we have an extensive [guide to contributing code](http://doc.silverstripe.org/framework/en/misc/contributing/code).
|
If you would like to make changes to the Silverstripe core codebase, we have an extensive [guide to contributing code](https://docs.silverstripe.org/en/4/contributing/code/).
|
||||||
|
|
||||||
## Links ##
|
## Links ##
|
||||||
|
|
||||||
* [Changelogs](http://doc.silverstripe.org/framework/en/changelogs/)
|
* [Changelogs](https://docs.silverstripe.org/en/4/changelogs/)
|
||||||
* [Bugtracker: Framework](https://github.com/silverstripe/silverstripe-framework/issues)
|
* [Bugtracker: Framework](https://github.com/silverstripe/silverstripe-framework/issues)
|
||||||
* [Bugtracker: CMS](https://github.com/silverstripe/silverstripe-cms/issues)
|
* [Bugtracker: CMS](https://github.com/silverstripe/silverstripe-cms/issues)
|
||||||
* [Bugtracker: Installer](https://github.com/silverstripe/silverstripe-installer/issues)
|
* [Bugtracker: Installer](https://github.com/silverstripe/silverstripe-installer/issues)
|
||||||
|
26
app/_config/assets.yml
Normal file
26
app/_config/assets.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# SilverStripe 4.4 changes the way files are resolved. `silverstripe-assets` resolves files using a variety of formats
|
||||||
|
# by default. When starting a brand new project on SilverStripe 4.4 or greater, those extra formats are not needed and
|
||||||
|
# will slowdown file resolution requests a bit. This config removes those redundant formats.
|
||||||
|
|
||||||
|
---
|
||||||
|
Name: project-assetsflysystem
|
||||||
|
After: '#assetsflysystem'
|
||||||
|
---
|
||||||
|
SilverStripe\Core\Injector\Injector:
|
||||||
|
# Define public resolution strategy
|
||||||
|
SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public:
|
||||||
|
class: SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy
|
||||||
|
properties:
|
||||||
|
ResolutionFileIDHelpers:
|
||||||
|
- '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
|
||||||
|
- '%$SilverStripe\Assets\FilenameParsing\NaturalFileIDHelper'
|
||||||
|
DefaultFileIDHelper: '%$SilverStripe\Assets\FilenameParsing\NaturalFileIDHelper'
|
||||||
|
VersionedStage: Live
|
||||||
|
# Define protected resolution strategy
|
||||||
|
SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.protected:
|
||||||
|
class: SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy
|
||||||
|
properties:
|
||||||
|
DefaultFileIDHelper: '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
|
||||||
|
ResolutionFileIDHelpers:
|
||||||
|
- '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
|
||||||
|
VersionedStage: Stage
|
9
app/_config/email.yml
Normal file
9
app/_config/email.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# See https://docs.silverstripe.org/en/4/developer_guides/email/ for additional information about setting up email
|
||||||
|
---
|
||||||
|
Name: project-emailconfig
|
||||||
|
After:
|
||||||
|
- '#emailconfig'
|
||||||
|
---
|
||||||
|
SilverStripe\Core\Injector\Injector:
|
||||||
|
Swift_Transport:
|
||||||
|
class: Swift_SendmailTransport
|
@ -17,5 +17,5 @@ default:
|
|||||||
browser_name: chrome
|
browser_name: chrome
|
||||||
SilverStripe\BehatExtension\Extension:
|
SilverStripe\BehatExtension\Extension:
|
||||||
bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php
|
bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php
|
||||||
screenshot_path: %paths.base%/artifacts/screenshots
|
screenshot_path: '%paths.base%/artifacts/screenshots'
|
||||||
retry_seconds: 4 # default is 2
|
retry_seconds: 4 # default is 2
|
||||||
|
@ -3,26 +3,34 @@
|
|||||||
"type": "silverstripe-recipe",
|
"type": "silverstripe-recipe",
|
||||||
"description": "The SilverStripe Framework Installer",
|
"description": "The SilverStripe Framework Installer",
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.6.0",
|
"php": "^7.4 || ^8.0",
|
||||||
"silverstripe/recipe-plugin": "^1.2",
|
"silverstripe/recipe-plugin": "^1.2",
|
||||||
"silverstripe/recipe-cms": "4.3.x-dev",
|
"silverstripe/recipe-cms": "4.x-dev",
|
||||||
"silverstripe-themes/simple": "~3.2.0"
|
"silverstripe-themes/simple": "~3.2.0",
|
||||||
|
"silverstripe/login-forms": "4.x-dev"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^5.7"
|
"phpunit/phpunit": "^9.5"
|
||||||
},
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"project-files": [
|
"project-files": [
|
||||||
"app/_config/*",
|
"app/_config/*",
|
||||||
".env.example"
|
".env.example",
|
||||||
|
".graphql-generated/*"
|
||||||
],
|
],
|
||||||
"public-files": [
|
"public-files": [
|
||||||
"assets/*",
|
"assets/*",
|
||||||
"favicon.ico"
|
"favicon.ico"
|
||||||
]
|
],
|
||||||
|
"resources-dir": "_resources"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"process-timeout": 600
|
"process-timeout": 600,
|
||||||
|
"allow-plugins": {
|
||||||
|
"composer/installers": true,
|
||||||
|
"silverstripe/recipe-plugin": true,
|
||||||
|
"silverstripe/vendor-plugin": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"minimum-stability": "dev"
|
"minimum-stability": "dev"
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
<ruleset name="SS3">
|
<ruleset name="SS3">
|
||||||
<description>Coding standard for SilverStripe 4.x</description>
|
<description>Coding standard for SilverStripe 4.x</description>
|
||||||
|
|
||||||
|
<file>app</file>
|
||||||
|
|
||||||
<!-- Don't sniff third party libraries -->
|
<!-- Don't sniff third party libraries -->
|
||||||
<exclude-pattern>*/vendor/*</exclude-pattern>
|
<exclude-pattern>*/vendor/*</exclude-pattern>
|
||||||
<exclude-pattern>*/thirdparty/*</exclude-pattern>
|
<exclude-pattern>*/thirdparty/*</exclude-pattern>
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!--
|
<!--
|
||||||
PHPUnit configuration for SilverStripe
|
PHPUnit configuration for SilverStripe
|
||||||
|
|
||||||
Requires PHPUnit 5+
|
Requires PHPUnit 9+
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
- "vendor/bin/phpunit": Runs all tests in all folders
|
- "vendor/bin/phpunit": Runs all tests in all folders
|
||||||
@ -18,15 +19,20 @@
|
|||||||
It is safe to remove this file for normal website operation.
|
It is safe to remove this file for normal website operation.
|
||||||
-->
|
-->
|
||||||
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
|
||||||
|
<testsuites>
|
||||||
<testsuite name="Default">
|
<testsuite name="Default">
|
||||||
<directory>mysite/tests</directory>
|
<directory>app/tests</directory>
|
||||||
<directory>vendor/silverstripe/cms/tests/php</directory>
|
<directory>vendor/silverstripe/cms/tests/php</directory>
|
||||||
<directory>vendor/silverstripe/framework/tests/php</directory>
|
<directory>vendor/silverstripe/framework/tests/php</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
|
||||||
<!-- framework only -->
|
<!-- Framework ORM tests are split up to run in parallel -->
|
||||||
<testsuite name="framework">
|
<testsuite name="framework-core">
|
||||||
<directory>vendor/silverstripe/framework/tests/php/</directory>
|
<directory>vendor/silverstripe/framework/tests/php</directory>
|
||||||
|
<exclude>vendor/silverstripe/framework/tests/php/ORM</exclude>
|
||||||
|
</testsuite>
|
||||||
|
<testsuite name="framework-orm">
|
||||||
|
<directory>vendor/silverstripe/framework/tests/php/ORM</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
|
||||||
<!-- other core components -->
|
<!-- other core components -->
|
||||||
@ -41,8 +47,13 @@
|
|||||||
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
<directory>vendor/silverstripe/asset-admin/tests/php/</directory>
|
||||||
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
|
||||||
<directory>vendor/silverstripe/cms/tests/</directory>
|
<directory>vendor/silverstripe/cms/tests/</directory>
|
||||||
|
<directory>vendor/silverstripe/config/tests/</directory>
|
||||||
|
<directory>vendor/silverstripe/errorpage/tests/</directory>
|
||||||
<directory>vendor/silverstripe/graphql/tests/</directory>
|
<directory>vendor/silverstripe/graphql/tests/</directory>
|
||||||
|
<directory>vendor/silverstripe/login-forms/tests/php/</directory>
|
||||||
|
<directory>vendor/silverstripe/mimevalidator/tests/</directory>
|
||||||
<directory>vendor/silverstripe/reports/tests/</directory>
|
<directory>vendor/silverstripe/reports/tests/</directory>
|
||||||
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
<directory>vendor/silverstripe/siteconfig/tests/php/</directory>
|
||||||
</testsuite>
|
</testsuite>
|
||||||
|
</testsuites>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
0
public/_graphql/.gitkeep
Normal file
0
public/_graphql/.gitkeep
Normal file
@ -28,7 +28,7 @@ AddHandler default-handler php phtml php3 php4 php5 inc
|
|||||||
RewriteCond %{REQUEST_URI} !^[^.]*\.(?i:css|js|ace|arc|arj|asf|au|avi|bmp|bz2|cab|cda|csv|dmg|doc|docx|dotx|flv|gif|gpx|gz|hqx|ico|jpeg|jpg|kml|m4a|m4v|mid|midi|mkv|mov|mp3|mp4|mpa|mpeg|mpg|ogg|ogv|pages|pcx|pdf|png|pps|ppt|pptx|potx|ra|ram|rm|rtf|sit|sitx|tar|tgz|tif|tiff|txt|wav|webm|wma|wmv|xls|xlsx|xltx|zip|zipx)$
|
RewriteCond %{REQUEST_URI} !^[^.]*\.(?i:css|js|ace|arc|arj|asf|au|avi|bmp|bz2|cab|cda|csv|dmg|doc|docx|dotx|flv|gif|gpx|gz|hqx|ico|jpeg|jpg|kml|m4a|m4v|mid|midi|mkv|mov|mp3|mp4|mpa|mpeg|mpg|ogg|ogv|pages|pcx|pdf|png|pps|ppt|pptx|potx|ra|ram|rm|rtf|sit|sitx|tar|tgz|tif|tiff|txt|wav|webm|wma|wmv|xls|xlsx|xltx|zip|zipx)$
|
||||||
RewriteRule .* - [F]
|
RewriteRule .* - [F]
|
||||||
|
|
||||||
# Non existant files passed to requesthandler
|
# Non-existent files passed to requesthandler
|
||||||
RewriteCond %{REQUEST_URI} ^(.*)$
|
RewriteCond %{REQUEST_URI} ^(.*)$
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteRule .* ../index.php [QSA]
|
RewriteRule .* ../index.php [QSA]
|
||||||
|
23
web.config
Normal file
23
web.config
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<!-- Routing configuration for Microsoft IIS web server -->
|
||||||
|
<configuration>
|
||||||
|
<system.webServer>
|
||||||
|
<rewrite>
|
||||||
|
<rules>
|
||||||
|
<rule name="SilverStripe Global URLs">
|
||||||
|
<match url="^(.*)$" />
|
||||||
|
<conditions>
|
||||||
|
<add input="{R:1}" matchType="Pattern" pattern="public(/|$)" negate="true" />
|
||||||
|
</conditions>
|
||||||
|
<action type="Rewrite" url="public/{R:1}" appendQueryString="true" />
|
||||||
|
</rule>
|
||||||
|
<rule name="SilverStripe Preprocessed URLs" stopProcessing="true">
|
||||||
|
<match url="^(.*)$" />
|
||||||
|
<conditions>
|
||||||
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
|
||||||
|
</conditions>
|
||||||
|
<action type="Rewrite" url="public/index.php" appendQueryString="true" />
|
||||||
|
</rule>
|
||||||
|
</rules>
|
||||||
|
</rewrite>
|
||||||
|
</system.webServer>
|
||||||
|
</configuration>
|
Loading…
Reference in New Issue
Block a user