24 return $this->
compile($this->packages);
37 $destination = $this->componentDir.DIRECTORY_SEPARATOR.
'require-built.js';
38 $require = $this->componentDir.DIRECTORY_SEPARATOR.
'require.js';
39 copy($require, $destination);
44 $name = isset($package[
'name']) ? $package[
'name'] :
'__component__';
45 $extra = isset($package[
'extra']) ? $package[
'extra'] :
array();
49 $packageDir = $this->componentDir.DIRECTORY_SEPARATOR.$componentName;
50 $source = $packageDir.DIRECTORY_SEPARATOR.$componentName.
'-built.js';
53 if (file_exists($source)) {
55 $content = file_get_contents($source);
59 file_put_contents($destination,
$output, FILE_APPEND);
75 return "\ndefine('$componentName', function (require, exports, module) {\n";
compile($packages)
Copy file assets from the given packages to the component directory.
Builds all JavaScript Components into one require-built.js.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
getComponentName($prettyName, array $extra=array())
Retrieves the component name for the component.
definePostfix()
Finish the module definition.
Create styles array
The data for the language used.
process()
{Called when running through the process.boolean True or false depending on whether the process was s...
definePrefix($componentName)
Provide the initial definition prefix.