Skip to content

Commit

Permalink
Update to pack javascripts and auto pack them when packaging framework
Browse files Browse the repository at this point in the history
  • Loading branch information
tm1000 committed Dec 13, 2013
1 parent bb88e49 commit 32b238c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pack_javascripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"|$dir/progress-polyfill.min.js|",
"|$dir/jquery-.*\.js|",
"|$dir/jquery-ui-.*\.js$|",
"|$libfreepbx|"
"|$libfreepbx|",
"|$dir/bootstrap-.*\.js|",
"|html5shiv.js|"
);
foreach ($output as $file) {

Expand Down
7 changes: 7 additions & 0 deletions package.php
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,13 @@
}

freepbx::out("Done");

//Package javascript because Andrew always forgets
if($module == 'framework') {
freepbx::outn("\tFramework, packaging javascripts...");
exec('/usr/bin/env php '.dirname(__FILE__).'/pack_javascripts.php');
freepbx::out("Done");
}

//GIT Processing here
freepbx::out("\tRunning GIT...");
Expand Down

0 comments on commit 32b238c

Please sign in to comment.