Skip to content

Commit

Permalink
Add authoring tools recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
robbieaverill committed Feb 4, 2018
1 parent b11630c commit f82b617
Show file tree
Hide file tree
Showing 6 changed files with 143 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# For more information about the properties used in
# this file, please see the EditorConfig documentation:
# http://editorconfig.org/

root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_size = 2
indent_style = space

[*.{yml,json}]
# The indent size used in the `package.json` file cannot be changed
# https://github.com/npm/npm/pull/3180#issuecomment-16336516
indent_size = 2
indent_style = space

[composer.json]
indent_size = 4
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.travis.yml export-ignore
/phpunit.xml.dist export-ignore
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: php

env:
global:
- COMPOSER_ROOT_VERSION=1.x-dev

addons:
apt:
packages:
- hunspell
- libhunspell-dev
- hunspell-en-us

matrix:
include:
- php: 5.6
env: DB=MYSQL
- php: 7.0
env: DB=PGSQL
- php: 7.1
env: DB=MYSQL
- php: 7.2
env: DB=MYSQL

before_script:
- phpenv rehash
- phpenv config-rm xdebug.ini

- composer validate
- composer require --no-update silverstripe-themes/simple ~3.2.0
- if [[ $DB == PGSQL ]]; then composer require silverstripe/postgresql:2.0.x-dev --no-update; fi
- composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile

script:
- vendor/bin/phpunit --testsuite recipe-authoring-tools
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## SilverStripe authoring tools recipe

[![Build Status](https://travis-ci.org/silverstripe/recipe-authoring-tools.svg?branch=master)](https://travis-ci.org/silverstripe/recipe-authoring-tools)

This includes the following core SilverStripe and CWP modules:

* [silverstripe/recipe-cms](https://github.com/silverstripe/recipe-cms): Recipe containing CMS, versioned, asset-admin, etc
* [silverstripe/documentconverter](https://github.com/silverstripe/silverstripe-documentconverter): Imports
OpenOffice-compatible files (doc, docx, etc) into SilverStripe pages and content
* [silverstripe/iframe](https://github.com/silverstripe/silverstripe-iframe): Provides an IFrame page type that allows
you to embed an IFrame into a page without resorting to custom code
* [silverstripe/spellcheck](https://github.com/silverstripe/silverstripe-spellcheck): Improves spellcheck support for
SilverStripe CMS, including an implementation for HunSpell
* [silverstripe/tagfield](https://github.com/silverstripe/silverstripe-tagfield): SilverStripe module for editing tags
(both in the CMS and other forms)
* [silverstripe/taxonomy](https://github.com/silverstripe/silverstripe-taxonomy): Provides the capability to add and
edit simple taxonomies within SilverStripe
* **\[Work in progress\]** [silverstripe/textextraction](https://github.com/silverstripe/silverstripe-textextraction):
Text Extraction API for SilverStripe CMS

This can be either added to an existing project or used as a project base for creating a basic CWP install.

## Get started

You can create a project using Composer:

```
composer create-project silverstripe/recipe-authoring-tools ./myproject ^1
```

## More information

See the [recipe plugin](https://github.com/silverstripe/recipe-plugin) page for instructions on how
SilverStripe recipes work.
33 changes: 33 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "silverstripe/recipe-authoring-tools",
"type": "silverstripe-recipe",
"description": "Extra tools for CMS authoring in SilverStripe",
"homepage": "https://www.silverstripe.org",
"license": "BSD-3-Clause",
"require": {
"silverstripe/recipe-plugin": "^1",
"silverstripe/recipe-cms": "1.1.x-dev",
"silverstripe/documentconverter": "2.x-dev",
"silverstripe/iframe": "2.0.x-dev",
"silverstripe/spellcheck": "2.x-dev",
"silverstripe/tagfield": "2.x-dev",
"silverstripe/taxonomy": "2.0.x-dev"
},
"suggest": {
"silverstripe/textextraction": "3.x-dev (not upgraded yet)"
},
"require-dev": {
"phpunit/phpunit": "^5.7"
},
"extra": {
"project-files": [],
"branch-alias": {
"dev-master": "1.x-dev"
}
},
"config": {
"process-timeout": 600
},
"prefer-stable": true,
"minimum-stability": "dev"
}
10 changes: 10 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<phpunit bootstrap="vendor/silverstripe/cms/tests/bootstrap.php" colors="true">
<testsuite name="recipe-authoring-tools">
<directory>vendor/silverstripe/documentconverter/tests</directory>
<directory>vendor/silverstripe/iframe/tests</directory>
<directory>vendor/silverstripe/spellcheck/tests</directory>
<directory>vendor/silverstripe/tagfield/tests</directory>
<directory>vendor/silverstripe/taxonomy/tests</directory>
<!--<directory>vendor/silverstripe/textextraction/tests</directory>-->
</testsuite>
</phpunit>

0 comments on commit f82b617

Please sign in to comment.