Coder Social home page Coder Social logo

symbiote / silverstripe-base Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 10.0 427 KB

A base project that can be used for developing new SilverStripe projects. Comes with build files for installing and managing a development environment

License: BSD 3-Clause "New" or "Revised" License

PHP 100.00%

silverstripe-base's People

Contributors

nyeholt avatar owindsor avatar rodneyway avatar stephenmcm avatar symric avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

silverstripe-base's Issues

No Asset Admin included

It looks like at some point silverstripe/asset-admin has been fully spun out of both Framework and CMS.
If we are not going to use one of the SilverStripe recipes for included SilverStripe we'll need to add it into the composer.json.

Change build.xml to use recommended Composer settings

Need to update build.xml to the following.
When our CI systems are building, they should then use ni_build flags.
(ni_build does things like create the silverstripe-cache folder as well)

<property name="composer.dev" value="" />
<property name="composer.source" value="--prefer-source" />
<if>
	<isset property="composer_dist" />
	<then>
		<property name="composer.source" value="--prefer-dist" override="true" />
	</then>
</if>
<if>
	<!-- Non-Interactive Build, ie. For CI -->
	<isset property="ni_build" />
	<then>
		<property name="composer.source" value="--prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile" override="true" />
	</then>
</if>

Add PHPUnit Autoloader to local.conf.php.sample

When using globally installed composer dependencies, projects will fail to find the PHPUnit path which will prevent SilverStripe from building. This is specifically an issue for a CI environment.

The workaround is to add this to the template file that is sourced during the build setup;

include_once 'PHPUnit/Autoload.php';

Docker inclusion not tagged

Currently master is one commit ahead of the current tagged release, however that commit includes the change to bundling in the docker set up Symbiote is now using.

From a quick glance it looks like a minor level change in SemVer terms, as removing or ignoring the files isn't going to break anything.

Opinions?

Update project.yml for SilverStripe 4.1

The problem

  • SilverStripe\View\SSViewer::theme is deprecated. It's a bit confusing figuring out how to use the non-deprecated form. An example exists below. (ie. themes)
  • SS4 defaults for MySQL aren't using our in-house standard.

The solution

SilverStripe\Core\Manifest\ModuleManifest:
  project: mysite
SilverStripe\View\SSViewer:
  themes:
    - simple
    - '$default'
  theme_enabled: true
Symbiote\Multisites\Model\Site:
  available_themes:
    - simple
---
Name: mysite-db
---
SilverStripe\ORM\Connect\MySQLDatabase:
  connection_charset: utf8mb4
  connection_collation: utf8mb4_unicode_ci
  charset: utf8mb4
  collation: utf8mb4_unicode_ci

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.