Maurits van der Schee 3 years ago
parent
commit
aa5e4d5cd6
2 changed files with 11389 additions and 0 deletions
  1. 11387
    0
      api.include.php
  2. 2
    0
      build.php

+ 11387
- 0
api.include.php
File diff suppressed because it is too large
View File


+ 2
- 0
build.php View File

@@ -93,6 +93,8 @@ function run(string $base, array $dirs, string $filename, array $ignore)
93 93
     include 'tmp_' . $filename;
94 94
     ob_end_clean();
95 95
     rename('tmp_' . $filename, $filename);
96
+    $data = substr($data, 0, strrpos($data, "\n// file: src/index.php"));
97
+    file_put_contents(str_replace('.php', '.include.php', $filename), $data);
96 98
     $end = microtime(true);
97 99
     $time = ($end - $start) * 1000;
98 100
     echo sprintf("%d files combined in %d ms into '%s'\n", $count, $time, $filename);

Loading…
Cancel
Save