2017 © Pedro Peláez
 

silverstripe-module clearrequirements

Remove all requirements with a single template call and start template afresh

image

weboftalent/clearrequirements

Remove all requirements with a single template call and start template afresh

  • Wednesday, April 13, 2016
  • by weboftalent
  • Repository
  • 1 Watchers
  • 1 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Clear Requirements

Maintainers

Introduction

This module allows clearing of CSS and JS files from a template using a YML config file. Use this if you wish to manually combine and compress JS and CSS files., (*1)

Documentation

YML File

The YML config file, which can be named arbitrarily, simply consists of a list of JS and CSS files that are to be cleared. Note that a unique ID can also be provided, this is the only way to clear custom scripts., (*2)

---
Name: jakayanrides-clear-requirements
After: clear-requirements-extensions
---
WebOfTalent\ClearRequirements\RequirementsClearer:
  JavaScript:
    - framework/thirdparty/jquery/jquery.js
    - framework/thirdparty/jquery-validate/lib/jquery.form.js
    - framework/thirdparty/jquery-validate/jquery.validate.pack.js
    - comments/javascript/CommentsInterface.js
    - mappable/javascript/google/FullScreenControl.js
    - mappable/javascript/google/markerclusterer.js
    - mappable/javascript/google/maputil.js
  CSS:
    - foundationforms/css/foundationforms.css

Executing Requirements Clearning

Prior to including your JavaScript call this in your template:, (*3)

$ClearCustomRequirements

Clear All Requirements

This does not use the above configuration file and simply removes all requirements. Note this includes custom scripts as well., (*4)

If this functionality is desired add this to your template prior to including JavaScript., (*5)

$ClearAllRequirements

Requirements

  • SilverStripe 3,4

Install

SS4

composer require 'weboftalent/clearrequirements'

SS3

composer require 'weboftalent/clearrequirements:^1'

TODO

  • Tests

The Versions

13/04 2016

dev-master

9999999-dev

Remove all requirements with a single template call and start template afresh

  Sources   Download

BSD-3-Clause

css javascript silverstripe templates requirements weboftalent

13/04 2016

1.0.1

1.0.1.0

Remove all requirements with a single template call and start template afresh

  Sources   Download

BSD-3-Clause

css javascript silverstripe templates requirements weboftalent

19/01 2016

1.0.0

1.0.0.0

Remove all requirements with a single template call and start template afresh

  Sources   Download

BSD-3-Clause

css javascript silverstripe templates requirements weboftalent

19/01 2016

dev-continuous_integration

dev-continuous_integration

Remove all requirements with a single template call and start template afresh

  Sources   Download

css javascript silverstripe templates requirements weboftalent