Skip to content

Commit 107cc6d

Browse files
committed
base commit
1 parent 1b35c80 commit 107cc6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+4166
-169
lines changed

.gitignore

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# =========================
21+
# Operating System Files
22+
# =========================
23+
24+
# OSX
25+
# =========================
26+
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear in the root of a volume
35+
.DocumentRevisions-V100
36+
.fseventsd
37+
.Spotlight-V100
38+
.TemporaryItems
39+
.Trashes
40+
.VolumeIcon.icns
41+
42+
# Directories potentially created on remote AFP share
43+
.AppleDB
44+
.AppleDesktop
45+
Network Trash Folder
46+
Temporary Items
47+
.apdisk
48+
49+
# Versioning systems
50+
.hg
51+
.hgignore
52+
.hgtags
53+
54+
# Application third party modules
55+
composer.lock
56+
vendor/*
57+
development/vendor/*

.packager/config-phar.php

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
$config = array(
4+
'sourcesDir' => __DIR__ . '/../development',
5+
'releaseFile' => __DIR__ . '/../release/index.php',
6+
// do not include script or file, where it's relative path from sourceDir match any of these rules:
7+
'excludePatterns' => array(
8+
9+
// Common excludes for every MvcCore app using composer:
10+
"/\.", // Everything started with '.' (.git, .htaccess ...)
11+
"^/web\.config", // Microsoft IIS .rewrite rules
12+
"^/Var/Logs/.*", // App development logs
13+
"composer\.(json|lock)", // composer.json and composer.lock
14+
"composer/installed\.json", // composer installed json
15+
"(LICEN(C|S)E\.(txt|TXT|md|MD))|(LICEN(C|S)E)", // libraries licence files
16+
"\.(bak|BAK`bat|BAT|md|MD|phpt|PHPT)$",
17+
18+
// Exclude specific PHP libraries
19+
"^/vendor/tracy/.*", // - tracy library (https://tracy.nette.org/)
20+
"^/vendor/tracy/tracy/(.*)/assets/", // excluded everything except staticly
21+
"^/vendor/tracy/tracy/tools/", // loaded PHP scripts by composer - added later
22+
"^/vendor/mvccore/ext-tracy.*", // - mvccore tracy adapter and all tracy panel extensions
23+
"^/vendor/mrclay/.*", // HTML/JS/CSS minify library
24+
25+
// Exclude source css and js files, use only what is generated in '/Var/Tmp' dir
26+
"^/static/js",
27+
"^/static/css",
28+
"^/static/fonts/(.*)\.css$",
29+
),
30+
// include all scripts or files, where it's relative path from sourceDir match any of these rules:
31+
// (include paterns always overides exclude patterns)
32+
'includePatterns' => array(
33+
// add staticly included tracy file back again and override it's exclusion,
34+
// to run composer at application start properly, but this file will not be used.
35+
"^/vendor/tracy/tracy/src/shortcuts.php",
36+
),
37+
// process simple strings replacements on all readed PHP scripts before saving into result package:
38+
// (replacements are executed before configured minification in RAM, they don't affect anythin on hard drive)
39+
'stringReplacements' => array(
40+
// Switch MvcCore application back from SFU mode to automatic compile mode detection
41+
'MvcCore::GetInstance()->Run(1);' => 'MvcCore::GetInstance()->Run();',
42+
'$app->Run(1);' => '$app->Run();',
43+
),
44+
'minifyTemplates' => 1,// Remove non-conditional comments and whitespaces
45+
'minifyPhp' => 1,// Remove comments and whitespaces
46+
);

.packager/config-php-preserve-hdd.php

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
3+
// If you want to use this config, you need to copy manualy everything 'from' => 'to':
4+
// - '/development/static/fonts' => '/release/static/fonts'
5+
// - '/development/static/img' => '/release/static/img'
6+
// - '/development/Var/Tmp' => '/release/Var/Tmp'
7+
// and you need to uncomment line 12 in Bootstrap.php
8+
// before compilation to generate css/js files properly in tmp
9+
10+
$phpFileSystemMode = Packager_Php::FS_MODE_PRESERVE_HDD;
11+
12+
$config = array(
13+
'sourcesDir' => __DIR__ . '/../development',
14+
'releaseFile' => __DIR__ . '/../release/index.php',
15+
// do not include script or file, where it's relative path from sourceDir match any of these rules:
16+
'excludePatterns' => array(
17+
18+
// Common excludes for every MvcCore app using composer:
19+
"/\.", // Everything started with '.' (.git, .htaccess ...)
20+
"^/web\.config", // Microsoft IIS .rewrite rules
21+
"^/Var/Logs/.*", // App development logs
22+
"composer\.(json|lock)", // composer.json and composer.lock
23+
"LICEN(C|S)E\.(txt|TXT|md|MD)", // libraries licence files
24+
"\.(bak|BAK`bat|BAT|md|MD|phpt|PHPT)$",
25+
26+
// Exclude specific PHP libraries
27+
"^/vendor/composer/.*", // composer itself
28+
"^/vendor/autoload\.php", // composer autoload file
29+
"^/vendor/mvccore/mvccore/src/startup\.php",// mvccore autoload file
30+
"^/vendor/tracy/.*", // tracy library (https://tracy.nette.org/)
31+
"^/vendor/mvccore/ext-tracy.*", // mvccore tracy adapter and all tracy panel extensions
32+
"^/vendor/nette/safe-stream.*", // nette safe stream used to complete assets in cache
33+
"^/vendor/mrclay/.*", // HTML/JS/CSS minify library
34+
35+
// Exclude everything from '/static/...', '/Var/Tmp' directory
36+
"^/static/.*",
37+
"^/Var/Tmp/.*",
38+
),
39+
// include all scripts or files, where it's relative path from sourceDir match any of these rules:
40+
// (include paterns always overides exclude patterns)
41+
'includePatterns' => array(
42+
// include previously excluded SimpleForm validators - but only realy used validators
43+
"^/vendor/mvccore/simpleform/src/SimpleForm/Validators/(Maxlength|SafeString|NumberField|Integer|Url)\.php$",
44+
// include previously excluded SimpleForm fields - but only realy used fields
45+
"^/vendor/mvccore/simpleform/src/SimpleForm/(Text|Password|Hidden|SubmitButton|SubmitInput|Button|Number)\.php$",
46+
),
47+
// process simple strings replacements on all readed PHP scripts before saving into result package:
48+
// (replacements are executed before configured minification in RAM, they don't affect anythin on hard drive)
49+
'stringReplacements' => array(
50+
// Switch MvcCore application back from SFU mode to automatic compile mode detection
51+
'MvcCore::GetInstance()->Run(1);' => 'MvcCore::GetInstance()->Run();',
52+
'$app->Run(1);' => '$app->Run();',
53+
),
54+
'minifyTemplates' => 1,// Remove non-conditional comments and whitespaces
55+
'minifyPhp' => 1,// Remove comments and whitespaces
56+
);
+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?php
2+
3+
// If you want to use this config, you need to copy manualy everything 'from' => 'to':
4+
// - '/development/static/fonts' => '/release/static/fonts'
5+
// - '/development/static/img' => '/release/static/img'
6+
// - '/development/Var/Tmp' => '/release/Var/Tmp'
7+
// and you need to uncomment line 12 in Bootstrap.php
8+
// before compilation to generate css/js files properly in tmp
9+
10+
$phpFileSystemMode = Packager_Php::FS_MODE_PRESERVE_PACKAGE;
11+
12+
$config = array(
13+
'sourcesDir' => __DIR__ . '/../development',
14+
'releaseFile' => __DIR__ . '/../release/index.php',
15+
// do not include script or file, where it's relative path from sourceDir match any of these rules:
16+
'excludePatterns' => array(
17+
18+
// Common excludes for every MvcCore app using composer:
19+
"/\.", // Everything started with '.' (.git, .htaccess ...)
20+
"^/web\.config", // Microsoft IIS .rewrite rules
21+
"^/Var/Logs/.*", // App development logs
22+
"composer\.(json|lock)", // composer.json and composer.lock
23+
"LICEN(C|S)E\.(txt|TXT|md|MD)", // libraries licence files
24+
"\.(bak|BAK`bat|BAT|md|MD|phpt|PHPT)$",
25+
26+
// Exclude specific PHP libraries
27+
"^/vendor/composer/.*", // composer itself
28+
"^/vendor/autoload\.php", // composer autoload file
29+
"^/vendor/mvccore/mvccore/src/startup\.php",// mvccore autoload file
30+
"^/vendor/tracy/.*", // tracy library (https://tracy.nette.org/)
31+
"^/vendor/mvccore/ext-tracy.*", // mvccore tracy adapter and all tracy panel extensions
32+
"^/vendor/nette/safe-stream.*", // nette safe stream used to complete assets in cache
33+
"^/vendor/mrclay/.*", // HTML/JS/CSS minify library
34+
35+
// Exclude everything from '/static/...', '/Var/Tmp' directory
36+
"^/static/.*",
37+
"^/Var/Tmp/.*",
38+
),
39+
// include all scripts or files, where it's relative path from sourceDir match any of these rules:
40+
// (include paterns always overides exclude patterns)
41+
'includePatterns' => array(
42+
),
43+
// process simple strings replacements on all readed PHP scripts before saving into result package:
44+
// (replacements are executed before configured minification in RAM, they don't affect anythin on hard drive)
45+
'stringReplacements' => array(
46+
// Switch MvcCore application back from SFU mode to automatic compile mode detection
47+
'MvcCore::GetInstance()->Run(1);' => 'MvcCore::GetInstance()->Run();',
48+
'$app->Run(1);' => '$app->Run();',
49+
),
50+
'minifyTemplates' => 1,// Remove non-conditional comments and whitespaces
51+
'minifyPhp' => 1,// Remove comments and whitespaces
52+
);

.packager/config-php-strict-hdd.php

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
3+
// If you want to use this config, you need to copy manualy everything 'from' => 'to':
4+
// - '/development/static' => '/release/static'
5+
// - '/development/Var/Tmp' => '/release/Var/Tmp'
6+
// - '/development/App/config.ini' => '/release/App/config.ini'
7+
// - '/development/App/Views/Layouts' => '/release/App/Views/Layouts'
8+
// - '/development/App/Views/Scripts' => '/release/App/Views/Scripts'
9+
// and you need to uncomment line 12 in Bootstrap.php
10+
// before compilation to generate css/js files properly in tmp
11+
12+
$phpFileSystemMode = Packager_Php::FS_MODE_STRICT_HDD;
13+
14+
$config = array(
15+
'sourcesDir' => __DIR__ . '/../development',
16+
'releaseFile' => __DIR__ . '/../release/index.php',
17+
// do not include script or file, where it's relative path from sourceDir match any of these rules:
18+
'excludePatterns' => array(
19+
20+
// Common excludes for every MvcCore app using composer:
21+
"/\.", // Everything started with '.' (.git, .htaccess ...)
22+
"^/web\.config", // Microsoft IIS .rewrite rules
23+
"^/Var/Logs/.*", // App development logs
24+
"composer\.(json|lock)", // composer.json and composer.lock
25+
"LICEN(C|S)E\.(txt|TXT|md|MD)", // libraries licence files
26+
"\.(bak|BAK`bat|BAT|md|MD|phpt|PHPT)$",
27+
28+
// Exclude specific PHP libraries
29+
"^/vendor/composer/.*", // composer itself
30+
"^/vendor/autoload\.php", // composer autoload file
31+
"^/vendor/mvccore/mvccore/src/startup\.php",// mvccore autoload file
32+
"^/vendor/tracy/.*", // tracy library (https://tracy.nette.org/)
33+
"^/vendor/mvccore/ext-tracy.*", // mvccore tracy adapter and all tracy panel extensions
34+
"^/vendor/nette/safe-stream.*", // nette safe stream used to complete assets in cache
35+
"^/vendor/mrclay/.*", // HTML/JS/CSS minify library
36+
37+
// Exclude everything from '/static/...' and '/Var/Tmp' directory:
38+
"^/static/.*",
39+
"^/Var/.*",
40+
"^/App/Views/Layouts/.*",
41+
"^/App/Views/Scripts/.*",
42+
),
43+
// include all scripts or files, where it's relative path from sourceDir match any of these rules:
44+
// (include paterns always overides exclude patterns)
45+
'includePatterns' => array(
46+
),
47+
// process simple strings replacements on all readed PHP scripts before saving into result package:
48+
// (replacements are executed before configured minification in RAM, they don't affect anythin on hard drive)
49+
'stringReplacements' => array(
50+
// Switch MvcCore application back from SFU mode to automatic compile mode detection
51+
'MvcCore::GetInstance()->Run(1);' => 'MvcCore::GetInstance()->Run();',
52+
'$app->Run(1);' => '$app->Run();',
53+
),
54+
'minifyTemplates' => 1,// Remove non-conditional comments and whitespaces
55+
'minifyPhp' => 1,// Remove comments and whitespaces
56+
);
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
$phpFileSystemMode = Packager_Php::FS_MODE_STRICT_PACKAGE;
4+
5+
$config = array(
6+
'sourcesDir' => __DIR__ . '/../development',
7+
'releaseFile' => __DIR__ . '/../release/index.php',
8+
// do not include script or file, where it's relative path from sourceDir match any of these rules:
9+
'excludePatterns' => array(
10+
11+
// Common excludes for every MvcCore app using composer:
12+
"/\.", // Everything started with '.' (.git, .htaccess ...)
13+
"^/web\.config", // Microsoft IIS .rewrite rules
14+
"^/Var/Logs/.*", // App development logs
15+
"composer\.(json|lock)", // composer.json and composer.lock
16+
"LICEN(C|S)E\.(txt|TXT|md|MD)", // libraries licence files
17+
"\.(bak|BAK`bat|BAT|md|MD|phpt|PHPT)$",
18+
19+
// Exclude specific PHP libraries
20+
"^/vendor/composer/.*", // composer itself
21+
"^/vendor/autoload\.php", // composer autoload file
22+
"^/vendor/mvccore/mvccore/src/startup\.php",// mvccore autoload file
23+
"^/vendor/tracy/.*", // tracy library (https://tracy.nette.org/)
24+
"^/vendor/mvccore/ext-tracy.*", // mvccore tracy adapter and all tracy panel extensions
25+
"^/vendor/nette/safe-stream.*", // nette safe stream used to complete assets in cache
26+
"^/vendor/mrclay/.*", // HTML/JS/CSS minify library
27+
28+
// Exclude source css and js files, use only what is generated in '/Var/Tmp' dir
29+
"^/static/js",
30+
"^/static/css",
31+
"^/static/fonts/(.*)\.css$",
32+
),
33+
// include all scripts or files, where it's relative path from sourceDir match any of these rules:
34+
// (include paterns always overides exclude patterns)
35+
'includePatterns' => array(
36+
),
37+
// process simple strings replacements on all readed PHP scripts before saving into result package:
38+
// (replacements are executed before configured minification in RAM, they don't affect anythin on hard drive)
39+
'stringReplacements' => array(
40+
// Switch MvcCore application back from SFU mode to automatic compile mode detection
41+
'MvcCore::GetInstance()->Run(1);' => 'MvcCore::GetInstance()->Run();',
42+
'$app->Run(1);' => '$app->Run();',
43+
),
44+
'minifyTemplates' => 1,// Remove non-conditional comments and whitespaces
45+
'minifyPhp' => 1,// Remove comments and whitespaces
46+
);

0 commit comments

Comments
 (0)