Compare commits

...

162 Commits

Author SHA1 Message Date
Guy Sartorelli
69aa62b192
MNT Update development dependencies 2023-04-26 12:45:13 +12:00
Guy Sartorelli
956f23ef1b
Merge branch '4.13' into 4 2023-04-26 12:45:13 +12:00
Guy Sartorelli
a99f146452
MNT Update development dependencies 2023-04-26 12:07:57 +12:00
Guy Sartorelli
8eaebc6fa7
MNT Update release dependencies 2023-04-26 12:07:53 +12:00
Guy Sartorelli
9e965dd46a
MNT Update development dependencies 2023-03-29 12:37:01 +13:00
Guy Sartorelli
94c0b4904a
MNT Update release dependencies 2023-03-29 12:36:58 +13:00
Guy Sartorelli
4eb77877be
MNT Update development dependencies 2023-03-29 09:39:37 +13:00
Maxime Rainville
dd8c8edc56
Merge pull request #71 from creative-commoners/pulls/4/dispatch-ci
MNT Use gha-dispatch-ci
2023-03-23 14:15:41 +13:00
Steve Boyd
eb352f49e3 MNT Use gha-dispatch-ci 2023-03-21 12:27:44 +13:00
Guy Sartorelli
8595b7f657
MNT Update development dependencies 2023-03-10 16:31:29 +13:00
Guy Sartorelli
8ec6751db6
MNT Update release dependencies 2023-03-10 16:31:25 +13:00
Guy Sartorelli
45dfd7e145
MNT Update development dependencies 2023-03-10 12:21:28 +13:00
Guy Sartorelli
b8f12e473d
Merge pull request #70 from creative-commoners/pulls/4/plugin
DEP Require ^1.7 of silverstripe/recipe-plugin
2023-03-08 16:55:58 +13:00
Steve Boyd
f522367605 DEP Require ^1.7 of silverstripe/recipe-plugin 2023-03-08 15:11:26 +13:00
Guy Sartorelli
5cbabe8848
Merge branch '4.12' into 4 2022-12-20 09:05:04 +13:00
Guy Sartorelli
d51848821f
Merge pull request #66 from creative-commoners/pulls/4.12/graphql-deps
DEP Ensure graphql v3 is still installable
2022-12-20 09:03:40 +13:00
Guy Sartorelli
af0e535991
Merge pull request #67 from creative-commoners/pulls/4/fix-graphql-dep
DEP Ensure graphql v3 is still installable
2022-12-20 09:03:36 +13:00
Guy Sartorelli
b4ba1ccde7
DEP Ensure graphql v3 is still installable 2022-12-19 17:04:29 +13:00
Guy Sartorelli
3da707469d
DEP Ensure graphql v3 is still installable 2022-12-19 17:03:34 +13:00
Guy Sartorelli
16bd35a030
MNT Update development dependencies 2022-12-19 01:54:29 +00:00
Guy Sartorelli
40b91c4d2b
Merge branch '4.12' into 4 2022-12-19 01:54:29 +00:00
Guy Sartorelli
0574971f42
MNT Update development dependencies 2022-12-19 01:54:25 +00:00
Guy Sartorelli
bd10022c57
Merge branch '4.12-release' into 4.12 2022-12-19 14:51:49 +13:00
Guy Sartorelli
8278db4db6
MNT Update release dependencies 2022-12-19 01:25:43 +00:00
Guy Sartorelli
c1f535ba4a
MNT Update release dependencies 2022-11-30 03:27:12 +00:00
Guy Sartorelli
25e54e0277
Merge pull request #64 from creative-commoners/pulls/4.12/minor-xdev
MNT Update development dependencies
2022-11-28 12:56:07 +13:00
Steve Boyd
0728ab6f95 MNT Update development dependencies 2022-11-23 15:56:03 +13:00
Steve Boyd
7560dcd4ba Merge branch '4.11' into 4.12-release 2022-11-22 12:26:13 +13:00
Steve Boyd
000bf7fa1d Merge branch '4.11-release' into 4.11 2022-11-22 12:25:45 +13:00
Guy Sartorelli
d68ae7b0d6
Merge pull request #63 from creative-commoners/pulls/4.11/4.11.1
MNT Update release dependencies
2022-11-22 12:08:04 +13:00
Steve Boyd
adc98cee4b MNT Update release dependencies 2022-11-22 10:21:24 +13:00
Guy Sartorelli
85601e8668
MNT Update development dependencies 2022-11-10 23:51:27 +00:00
Steve Boyd
656e52f60f Merge branch '4.11' into 4 2022-08-02 18:53:04 +12:00
Steve Boyd
416dd2d043 Merge branch '4.10' into 4.11 2022-08-02 18:53:00 +12:00
Guy Sartorelli
1191bf337c
Merge pull request #58 from creative-commoners/pulls/4.10/standardise-modules
MNT Standardise modules
2022-08-02 15:26:52 +12:00
Steve Boyd
46b7dc38e1 MNT Standardise modules 2022-08-01 10:44:06 +12:00
Steve Boyd
f326932b7f Merge branch '4.11' into 4 2022-07-25 09:46:14 +12:00
Steve Boyd
274e0c2738 Merge branch '4.10' into 4.11 2022-07-25 09:46:10 +12:00
Guy Sartorelli
0690aba618
Merge pull request #57 from creative-commoners/pulls/4.10/module-standards
MNT Use GitHub Actions CI
2022-07-15 17:39:20 +12:00
Steve Boyd
4e95fbeee3 MNT Use GitHub Actions CI 2022-07-05 19:01:43 +12:00
Steve Boyd
b908975f0e Merge branch '4.11' into 4 2022-05-10 22:08:39 +12:00
Guy Sartorelli
b68e22127b
Merge pull request #56 from creative-commoners/pulls/4.11/g3g4
DEP Allow graphql 3.8 dev dependency
2022-05-09 17:33:17 +12:00
Steve Boyd
5665a593c1 DEP Allow graphql 3.8 dev dependency 2022-05-09 17:03:39 +12:00
Guy Sartorelli
3f64199c1a
Merge pull request #55 from creative-commoners/pulls/4.11/devreq
DEP 4.11 dev requirements
2022-05-06 15:23:21 +12:00
Steve Boyd
ff4400ac31 DEP 4.11 dev requirements 2022-05-06 14:03:12 +12:00
Maxime Rainville
4074285383
Merge pull request #54 from creative-commoners/pulls/4/php74
DEP Set PHP 7.4 as the minimum version
2022-02-18 21:56:10 +13:00
Steve Boyd
e3f80d5dee DEP Set PHP 7.4 as the minimum version 2022-02-10 17:25:32 +13:00
GuySartorelli
ea3c4b16c7
DOC Change "SilverStripe" to "Silverstripe" in readme (#53) 2022-02-02 10:11:48 +13:00
Steve Boyd
388135e10a Merge branch '4.10' into 4 2021-12-22 10:08:12 +13:00
Maxime Rainville
a24963a3a9
Merge pull request #52 from creative-commoners/pulls/4.10/deps
DEP 4.10 requirements
2021-12-02 14:59:51 +13:00
Steve Boyd
82be460186 DEP 4.10 requirements 2021-11-29 15:50:18 +13:00
Steve Boyd
4472888d7b
Merge pull request #51 from creative-commoners/pulls/4/sapphire-test-nine
API phpunit 9 support
2021-11-09 15:06:10 +13:00
Steve Boyd
ef2201f1fe API phpunit 9 support 2021-11-05 09:47:39 +13:00
Maxime Rainville
1bba7a2976 MNT target 4.x release 2021-09-03 11:27:24 +12:00
Maxime Rainville
8e23b8c4fe MNT target 4.9 release 2021-09-03 11:25:43 +12:00
Steve Boyd
33955216a7
Merge pull request #49 from creative-commoners/pulls/4/loosen-constraint
MNT Loosen dependencies
2021-08-26 11:15:28 +12:00
Maxime Rainville
284f2f6fa3 MNT Loosen dependencies 2021-08-26 10:35:58 +12:00
Maxime Rainville
6fe092aeaf
Merge pull request #48 from creative-commoners/pulls/4/add-session-manager
DEP Add session manager
2021-08-19 15:25:27 +12:00
Steve Boyd
03c6888a7f DEP Add session manager 2021-08-19 14:33:33 +12:00
Steve Boyd
f748db6878 Merge branch '4.8' into 4 2021-05-17 15:57:50 +12:00
Steve Boyd
53f9a7f594 DEP Use versioned 1.8 2021-05-17 15:56:31 +12:00
Steve Boyd
b7e61c1f1c MNT Remove COMPOSER_ROOT_VERSION 2021-05-17 15:53:11 +12:00
Andre Kiste
53def4589c
Merge pull request #45 from creative-commoners/pulls/4.8/reqs
DEP Update dependencies for CMS 4.8
2021-05-17 15:16:50 +12:00
Steve Boyd
861afaddae DEP Update dependencies for CMS 4.8 2021-05-17 13:23:00 +12:00
Steve Boyd
3e7ecaaacc
Update README.md 2021-01-21 16:01:03 +13:00
Steve Boyd
6ce413d43e
Merge pull request #43 from a2nt/patch-1
Upgrade silverstripe/recipe-plugin to support composer 2.0
2020-12-31 18:08:27 +13:00
Steve Boyd
9068196bb3 Merge branch '4.7' into 4 2020-12-31 18:04:45 +13:00
959e61b9e5
Upgrade silverstripe/recipe-plugin to support composer 2.0
The "silverstripe/recipe-plugin" plugin was skipped because it requires a Plugin API version ("^1.1") that does not match your Composer installation ("2.0.0"). You may need to run composer update with the "--no-plugins" option.
2020-12-28 06:48:24 +07:00
Andre Kiste
4aa484ba2d
Merge pull request #42 from creative-commoners/pulls/4.7/travis-shared
MNT Travis shared config
2020-12-21 14:29:41 +13:00
Steve Boyd
e3a0200bda MNT Travis shared config 2020-12-02 11:28:49 +13:00
Aaron Carlino
d69f89d972
Allow graphql 4 (#41) 2020-11-13 17:13:16 +13:00
Steve Boyd
9936e8fd3f Merge branch '4.7' into 4 2020-11-12 15:12:41 +13:00
Serge Latyntsev
ed6f2fd7b5
Merge pull request #40 from creative-commoners/pulls/4.7/update-47-deps
DEP Update requirements to 4.7.x-dev
2020-11-05 11:50:07 +13:00
Steve Boyd
840644b96d DEP Update requirements to 4.7.x-dev 2020-11-05 11:28:16 +13:00
Serge Latyntsev
a0720394ff
Merge pull request #39 from creative-commoners/pulls/4/php-8-builds
MNT Add PHP 8 build
2020-10-23 11:20:02 +13:00
Garion Herman
3ff3c8a196 MNT Use latest build of silverstripe/cow 2020-10-16 09:57:28 +13:00
Garion Herman
6c96e7a69f MNT Add PHP 8 build 2020-10-14 14:25:49 +13:00
Robbie Averill
eec0010012
Merge pull request #37 from open-sausages/pulls/4/set-up-47-dev
Merge up 4.6 branch + update travis to target x-dev branches
2020-06-04 09:10:06 -07:00
Maxime Rainville
90b3141d0b Update travis config to target x-dev branches 2020-06-04 15:05:08 +12:00
Robbie Averill
24e9e27a6e
Merge pull request #36 from open-sausages/pulls/4.6/update-travis
Target 4.6 minor branches in build
2020-05-28 09:19:17 -07:00
Maxime Rainville
459bf46566 Target 4.6 minor branches in build 2020-05-28 18:11:31 +12:00
Maxime Rainville
835186ddef
Merge pull request #35 from creative-commoners/pulls/4.6/update-composer-46
Composer - update minor versions
2020-05-28 15:13:09 +12:00
Steve Boyd
72ce309b73 Update minor versions 2020-05-28 09:37:35 +12:00
Maxime Rainville
82e7fc229d Merge branch '4.5' into 4 2020-05-26 13:52:40 +12:00
Maxime Rainville
778fef06fe Merge branch '4.4' into 4.5 2020-05-26 13:52:11 +12:00
Garion Herman
ed4c1ecd45 Merge branch '4.5' into 4 2020-03-03 15:17:36 +13:00
Serge Latyntsev
5da0c5deb1
Merge pull request #31 from creative-commoners/pulls/4.5/php-7.4-builds
Update Travis config to include PHP 7.4 build
2020-03-03 15:14:19 +13:00
Serge Latyntsev
e04076f671
Merge pull request #33 from creative-commoners/pulls/4.4/backport-xenial-config
Update Travis config to Xenial (4.4)
2020-03-03 14:41:47 +13:00
Garion Herman
e475e07cb9 Update Travis config to Xenial 2020-03-03 13:50:22 +13:00
Garion Herman
101c69a27e Add sminnee/phpunit-mock-objects to fix PHP 7.4 compat 2020-02-26 16:47:49 +13:00
Garion Herman
0c1280b6b0 Update Travis config to include PHP 7.4 build 2020-02-26 14:53:42 +13:00
Robbie Averill
7ceaab5e8d
Merge pull request #29 from creative-commoners/pull/4/rfc-9344
RFC-9344 Remove branch aliases
2019-12-09 10:27:45 -08:00
Serge Latyntcev
a781315718 RFC-9344 Remove branch aliases 2019-12-09 11:09:42 +13:00
Serge Latyntcev
ba2034c282 Update composer requirements 2019-11-21 14:30:04 +13:00
Serge Latyntcev
ebebe164f2 Update branch alias and travis 2019-11-21 14:03:39 +13:00
Garion Herman
a3bad3b7b8 Merge branch '4.5' into 4 2019-11-18 15:07:41 +13:00
Serge Latyntsev
0bc11379c4
Merge pull request #28 from creative-commoners/pulls/4.5/xenial-update
Update Travis config to Xenial
2019-11-18 15:00:40 +13:00
Garion Herman
f5aa73baae Update Travis config to Xenial 2019-11-18 14:44:03 +13:00
Serge Latyntcev
58a4e04e88 Remove obsolete branch-alias 2019-11-14 01:24:52 +00:00
Ingo Schommer
2c16788d30
Merge pull request #27 from creative-commoners/pulls/4.5/php71
Update minimum PHP version to 7.1 in Travis
2019-06-07 14:33:54 +12:00
Robbie Averill
29320ff4a1 Update minimum PHP version to 7.1 in Travis 2019-05-23 14:12:42 +12:00
Robbie Averill
39a40215bb Merge branch '4.4' into 4 2019-04-22 12:46:28 +12:00
Robbie Averill
dc8a760520 Merge branch '4.3' into 4.4 2019-04-22 12:46:16 +12:00
Robbie Averill
498c08fdff Merge branch '4.2' into 4.3 2019-04-22 12:45:58 +12:00
Robbie Averill
297c9f57e6 Remove uppercase PHPUnit in composer.json as deprecated. Replace with lowercase. 2019-04-22 12:45:48 +12:00
Robbie Averill
374dd63371 Bump core constraints to 4.5.x-dev 2019-04-21 18:48:38 +12:00
Robbie Averill
eecd5aae9c Merge branch '4.4' into 4 2019-04-21 11:19:56 +12:00
Robbie Averill
6a1c0af7dc Remove obsolete branch alias 2019-04-21 11:18:58 +12:00
Robbie Averill
cc09f7133d Update self reference in Travis config 2019-04-21 11:18:17 +12:00
Robbie Averill
3ef9717d47 Merge branch '4.3' into 4.4 2019-04-21 11:17:46 +12:00
Robbie Averill
3b2589bff0 Merge branch '4.2' into 4.3 2019-04-21 11:17:35 +12:00
Robbie Averill
a8a3091d74 Revert "Update development dependencies"
This reverts commit 7952bee961.
2019-02-19 05:22:13 +07:00
Aaron Carlino
7952bee961 Update development dependencies 2019-02-12 17:07:28 +13:00
Ingo Schommer
98ba485316
Merge pull request #23 from open-sausages/pulls/4/revert-recipe-plugin-dependency
MINOR Undo accidental dependency increment in #22
2019-01-23 14:39:26 +13:00
Maxime Rainville
24b1df8cbe MINOR Undo accidental dependency increment in #22 2019-01-23 14:35:20 +13:00
Maxime Rainville
18f35f0d42 MINOR Set default resources-dir in composer.json (#22) 2019-01-09 15:36:05 +13:00
Stevie Mayhew
66b715c488
Merge pull request #21 from creative-commoners/pulls/4.3/travis
Add Travis builds for CMS recipe modules
2018-11-13 08:49:24 +13:00
Robbie Averill
e535a2af8d Add Travis builds for CMS recipe modules 2018-10-16 12:00:59 +02:00
Robbie Averill
d616bc7def
Bump versioned-admin to 1.2.x-dev 2018-10-15 18:08:34 +02:00
Robbie Averill
e8b6b0c527 Update dependencies and branch alias for 4.4.x-dev 2018-10-15 14:27:22 +02:00
Robbie Averill
b9d0ddfc28 Merge branch '4.3' into 4 2018-10-15 14:26:17 +02:00
Aaron Carlino
1577d6386b Remove obsolete branch-alias 2018-10-15 16:31:47 +13:00
Robbie Averill
0988efb22f
Merge pull request #18 from open-sausages/pulls/4/target-graphql-3
MINOR Require silverstripe/graphql v3.
2018-08-07 09:25:26 +12:00
Maxime Rainville
168bb677af MINOR Require silverstripe/graphql v3. 2018-08-06 13:26:40 +12:00
Dan Hensby
04f79f7359
Update composer constraints 2018-08-04 13:02:05 +02:00
Daniel Hensby
48138b11f6
Merge branch '4.2' into 4
# Conflicts:
#	composer.json
2018-07-30 17:15:03 +01:00
Daniel Hensby
ae045ae045
Merge tag '4.2.1' into 4.2
Release 4.2.1
2018-07-30 17:14:45 +01:00
root
115bbbb5f9 Update development dependencies 2018-07-30 15:23:23 +00:00
Daniel Hensby
08303bd6cc
Merge branch '4.2' into 4
# Conflicts:
#	composer.json
2018-07-30 11:18:35 +01:00
Daniel Hensby
5ac2fa075f
Merge tag '4.2.0' into 4.2
Release 4.2.0
2018-07-30 11:17:37 +01:00
Maxime Rainville
0062fe5a13
Merge pull request #17 from open-sausages/pulls/4/add-versioned-admin
NEW Add versioned-admin
2018-07-30 18:05:22 +12:00
Luke Edwards
79a5ea3dac
NEW Add versioned-admin 2018-07-29 18:03:57 +01:00
root
ce877b4eb9 Update development dependencies 2018-07-24 19:22:13 +00:00
Daniel Hensby
41d13395f2
Update recipe dep versions 2018-07-24 12:31:27 +01:00
Damian Mooyman
05e0589a36
Merge remote-tracking branch 'origin/4.2' into 4 2018-06-15 16:09:59 +12:00
Damian Mooyman
4e959d7f5a Update development dependencies 2018-06-15 15:52:26 +12:00
Damian Mooyman
d24e50c52e Remove obsolete branch-alias 2018-06-15 15:30:03 +12:00
Damian Mooyman
b4ae2e084f
Update recipe to use new 4.x naming 2018-06-14 13:21:04 +12:00
Damian Mooyman
838c044908
Merge remote-tracking branch 'origin/1.1' into 1 2018-04-13 14:42:35 +12:00
Damian Mooyman
478e5dc840
Fix invalid htaccess
See https://github.com/silverstripe/recipe-core/pull/14
2018-04-13 14:41:20 +12:00
Damian Mooyman
22843c2ba5
Remove autoload classmap which clashes with installer 2018-04-13 10:23:23 +12:00
Damian Mooyman
659c3212db
Remove empty psr-4 2018-04-13 10:16:37 +12:00
Damian Mooyman
5a8f201dc0
Merge pull request #11 from open-sausages/pulls/1/appy-days
Shift code into app/src
2018-04-11 15:24:41 +12:00
Damian Mooyman
baa8f47c5b
Bump recipe plugin dependency 2018-04-05 16:42:17 +12:00
Damian Mooyman
14da371ced
Shift code into app/src
Add autoloading bootstrapping
2018-04-05 15:27:04 +12:00
Damian Mooyman
fe388639d9
Update graphql dependency 2018-03-21 12:52:30 +13:00
Damian Mooyman
60891b866e
Merge remote-tracking branch 'origin/1.1' into 1 2018-02-07 18:28:24 +13:00
Damian Mooyman
c2b64c0855
Remove aliases 2018-02-07 18:27:03 +13:00
Damian Mooyman
b4066e017a
Merge remote-tracking branch 'origin/1.0' into 1 2018-02-05 18:00:31 +13:00
Robbie Averill
6362cfcf1e
DOCS Update license year 2018-01-23 15:42:51 +13:00
Damian Mooyman
a5d25bcb6b Add public webroot folder (#7) 2018-01-12 14:38:55 +13:00
Ingo Schommer
6874d169d8 Merge remote-tracking branch 'origin/1.0' into 1
# Conflicts:
#	composer.json
2017-11-20 16:10:28 +13:00
Chris Joe
80ce526563
Merge pull request #5 from JorisDebonnet/patch-1
Short array syntax [] in Page and PageController
2017-11-06 14:50:09 +13:00
JorisDebonnet
e3ad4e71c8 Short array syntax [] in Page and PageController 2017-11-06 01:48:23 +01:00
Chris Joe
185a491fc0 Merge pull request #3 from open-sausages/pulls/1.0/update-plugin
Update plugin to 1.0
2017-10-25 11:21:11 +13:00
Damian Mooyman
d3099c4bd4
Update plugin to 1.0 2017-10-25 11:08:46 +13:00
Damian Mooyman
c67d507737
Merge remote-tracking branch 'origin/1.0' into 1
# Conflicts:
#	composer.json
2017-10-12 14:40:04 +13:00
Damian Mooyman
b69371c244
Update graphql dependency 2017-10-12 14:39:00 +13:00
Damian Mooyman
f97a8f5c9c
Update dependencies 2017-10-12 10:31:18 +13:00
Damian Mooyman
1808566e1d Merge remote-tracking branch 'origin/1.0' into 1
# Conflicts:
#	composer.json
2017-10-12 10:29:27 +13:00
Damian Mooyman
2906940d5d Merge pull request #1 from silverstripe/pulls/1.1/branch-alias
Bump branch alias to 1.1.x-dev
2017-10-12 10:06:40 +13:00
Robbie Averill
db04f72872 Bump branch alias to 1.1.x-dev 2017-10-12 09:57:38 +13:00
15 changed files with 142 additions and 86 deletions

View File

@ -1,7 +1,7 @@
{
"github-slug": "silverstripe/recipe-cms",
"child-stability-inherit": true,
"dependency-constraint": "exact",
"dependency-constraint": "loose",
"vendors": [
"silverstripe"
],

11
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci:
name: CI
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1

16
.github/workflows/dispatch-ci.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Dispatch CI
on:
# At 2:10 PM UTC, only on Thursday and Friday
schedule:
- cron: '10 14 * * 4,5'
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
View File

@ -0,0 +1,17 @@
name: Keepalive
on:
workflow_dispatch:
# The 4th of every month at 10:50am UTC
schedule:
- cron: '50 10 4 * *'
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

24
.gitignore vendored
View File

@ -1,26 +1,6 @@
# ignore cache folder
/silverstripe-cache/
# ignore .env file
/.env
# ignore build tools
/tools/phing-metadata
# ignore composer vendor folder
/vendor/
# ignore default modules from composer
/asset-admin/
/campaign-admin/
/cms/
/framework/
/graphql/
/reports/
/silverstripe-admin/
/silverstripe-assets/
/silverstripe-errorpage/
/siteconfig/
/themes/simple/
/versioned/
/testsession/
/resources/
/public/resources/

2
.htaccess Normal file
View File

@ -0,0 +1,2 @@
RewriteEngine On
RewriteRule ^(.*)$ public/$1

View File

@ -1,6 +1,6 @@
BSD 3-Clause License
Copyright (c) 2017, SilverStripe Ltd.
Copyright (c) 2018, SilverStripe Ltd.
All rights reserved.
Redistribution and use in source and binary forms, with or without

View File

@ -1,6 +1,9 @@
## SilverStripe CMS Recipe
## Silverstripe CMS Recipe
Base page and asset content-editing recipe for a SilverStripe ([http://silverstripe.org](http://silverstripe.org))
[![CI](https://github.com/silverstripe/recipe-cms/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/recipe-cms/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 page and asset content-editing recipe for a Silverstripe ([http://silverstripe.org](http://silverstripe.org))
installation. This includes the modules:
Provided by [silverstripe/recipe-core]:
@ -14,15 +17,17 @@ Provided by [silverstripe/recipe-cms]:
* [admin](http://github.com/silverstripe/silverstripe-admin)
* [asset-admin](http://github.com/silverstripe/silverstripe-asset-admin)
* [campaign-admin](http://github.com/silverstripe/silverstripe-campaign-admin)
* [versioned-admin](http://github.com/silverstripe/silverstripe-versioned-admin)
* [cms](http://github.com/silverstripe/silverstripe-cms)
* [errorpage](http://github.com/silverstripe/silverstripe-errorpage)
* [reports](http://github.com/silverstripe/silverstripe-reports)
* [graphql](http://github.com/silverstripe/silverstripe-graphql)
* [session-manager](http://github.com/silverstripe/silverstripe-session-manager)
* [siteconfig](http://github.com/silverstripe/silverstripe-siteconfig)
* [versioned](http://github.com/silverstripe/silverstripe-versioned)
This can be either added to an existing project or used as a project base for creating a
fully featured SilverStripe CMS project.
fully featured Silverstripe CMS project.
See the [recipe plugin](https://github.com/silverstripe/recipe-plugin) page for instructions on how
SilverStripe recipes work.
Silverstripe recipes work.

13
app/src/Page.php Executable file
View File

@ -0,0 +1,13 @@
<?php
namespace {
use SilverStripe\CMS\Model\SiteTree;
class Page extends SiteTree
{
private static $db = [];
private static $has_one = [];
}
}

View File

@ -0,0 +1,33 @@
<?php
namespace {
use SilverStripe\CMS\Controllers\ContentController;
class PageController extends ContentController
{
/**
* An array of actions that can be accessed via a request. Each array element should be an action name, and the
* permissions or conditions required to allow the user to access it.
*
* <code>
* [
* 'action', // anyone can access this action
* 'action' => true, // same as above
* 'action' => 'ADMIN', // you must have ADMIN permissions to access this action
* 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true
* ];
* </code>
*
* @var array
*/
private static $allowed_actions = [];
protected function init()
{
parent::init();
// You can include any CSS or JS required by your project here.
// See: https://docs.silverstripe.org/en/developer_guides/templates/requirements/
}
}
}

View File

@ -5,25 +5,29 @@
"homepage": "http://silverstripe.org",
"license": "BSD-3-Clause",
"require": {
"silverstripe/recipe-plugin": ">=0.1@dev <1.0",
"silverstripe/recipe-core": "1.0.x-dev",
"silverstripe/admin": "1.0.x-dev",
"silverstripe/asset-admin": "1.0.x-dev",
"silverstripe/campaign-admin": "1.0.x-dev",
"silverstripe/cms": "4.0.x-dev",
"silverstripe/errorpage": "1.0.x-dev",
"silverstripe/graphql": "0.2.x-dev",
"silverstripe/reports": "4.0.x-dev",
"silverstripe/siteconfig": "4.0.x-dev",
"silverstripe/versioned": "1.0.x-dev"
"php": "^7.4 || ^8.0",
"silverstripe/recipe-plugin": "^1.7",
"silverstripe/recipe-core": "4.x-dev",
"silverstripe/admin": "1.x-dev",
"silverstripe/asset-admin": "1.x-dev",
"silverstripe/campaign-admin": "1.x-dev",
"silverstripe/versioned-admin": "1.x-dev",
"silverstripe/cms": "4.x-dev",
"silverstripe/errorpage": "1.x-dev",
"silverstripe/reports": "4.x-dev",
"silverstripe/siteconfig": "4.x-dev",
"silverstripe/versioned": "1.x-dev",
"silverstripe/graphql": "3.x-dev || 4.x-dev",
"silverstripe/session-manager": "1.x-dev"
},
"require-dev": {
"phpunit/PHPUnit": "^5.7"
"phpunit/phpunit": "^9.5"
},
"extra": {
"project-files": [
"mysite/code/*"
]
"app/src/*"
],
"resources-dir": "_resources"
},
"config": {
"process-timeout": 600

View File

@ -1,12 +0,0 @@
<?php
use SilverStripe\CMS\Model\SiteTree;
class Page extends SiteTree
{
private static $db = array(
);
private static $has_one = array(
);
}

View File

@ -1,32 +0,0 @@
<?php
use SilverStripe\CMS\Controllers\ContentController;
class PageController extends ContentController
{
/**
* An array of actions that can be accessed via a request. Each array element should be an action name, and the
* permissions or conditions required to allow the user to access it.
*
* <code>
* array (
* 'action', // anyone can access this action
* 'action' => true, // same as above
* 'action' => 'ADMIN', // you must have ADMIN permissions to access this action
* 'action' => '->checkAction' // you can only access this action if $this->checkAction() returns true
* );
* </code>
*
* @var array
*/
private static $allowed_actions = array(
);
protected function init()
{
parent::init();
// You can include any CSS or JS required by your project here.
// See: https://docs.silverstripe.org/en/developer_guides/templates/requirements/
}
}

18
phpunit.xml.dist Normal file
View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="recipe-cms">
<directory>vendor/silverstripe/admin/tests</directory>
<directory>vendor/silverstripe/asset-admin/tests</directory>
<directory>vendor/silverstripe/campaign-admin/tests</directory>
<directory>vendor/silverstripe/cms/tests</directory>
<directory>vendor/silverstripe/errorpage/tests</directory>
<directory>vendor/silverstripe/graphql/tests</directory>
<directory>vendor/silverstripe/reports/tests</directory>
<directory>vendor/silverstripe/session-manager/tests</directory>
<directory>vendor/silverstripe/siteconfig/tests</directory>
<directory>vendor/silverstripe/versioned/tests</directory>
<directory>vendor/silverstripe/versioned-admin/tests</directory>
</testsuite>
</testsuites>
</phpunit>

1
public/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/resources/