Skip to content

Instantly share code, notes, and snippets.

@drewwells
Last active December 31, 2015 02:19
Show Gist options
  • Save drewwells/7920279 to your computer and use it in GitHub Desktop.
Save drewwells/7920279 to your computer and use it in GitHub Desktop.
feature! based off file conventions Example test specific implementation map. These files will get rolled up and compared against what test(s) are active. The plugin will need to be invoked `require(['feature!module'])`.
/includes/template/implementation.php
/includes/template/tests/<RMN-NUM>/implementation.php
/includes/template/tests/<RMN-NUM>/offer.php
/www/gui/scripts/tests/<RMN-NUM>/override.js
'["store_support","offers","newfile"]'
//JSON formatted file
/*
File is read and parsed into a format readible by feature!. It verifies the
files actually exist so that requirejs doesn't attempt to load files that do
not exist.
<==== It runs in two modes ======>
Build version: Lists all possible paths
Runtime: PHP selects the active tests
*/
/*
TBD: Array automatically generated by globbing scripts/tests/<RMN-NUM>/*.js?
*/
define(["feature!store_support"],funtion(){});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment