markstory / mini-asset

A simple set of asset build tools that provides a config file and extensible integrations with pre-processors & minifiers.
MIT License
64 stars 17 forks source link

Handle constant ressources #51

Closed smap9 closed 5 years ago

smap9 commented 5 years ago

Somewhere in my application (vendor) some constant ressources where added:

$constants = [
    'CHRONOS_SUPPORTS_MICROSECONDS' => true,
    'DS' => '/',
    'STDOUT' => resource,
    'STDERR' => resource,
    'ROOT' => '/var/www/html',
    'APP_DIR' => 'src',
    'APP' => '/var/www/html/src/',
    'CONFIG' => '/var/www/html/config/',
    'WWW_ROOT' => '/var/www/html/webroot/',
    'TESTS' => '/var/www/html/tests/',
    'TMP' => '/var/www/html/tmp/',
    'LOGS' => '/var/www/html/logs/',
    'CACHE' => '/var/www/html/tmp/cache/',
    'CAKE_CORE_INCLUDE_PATH' => '/var/www/html/vendor/cakephp/cakephp',
    'CORE_PATH' => '/var/www/html/vendor/cakephp/cakephp/',
    'CAKE' => '/var/www/html/vendor/cakephp/cakephp/src/',
    'TIME_START' => (float) 1550478356.5377,
    'SECOND' => (int) 1,
    'MINUTE' => (int) 60,
    'HOUR' => (int) 3600,
    'DAY' => (int) 86400,
    'WEEK' => (int) 604800,
    'MONTH' => (int) 2592000,
    'YEAR' => (int) 31536000
]

With this patch they can be handled.

smap9 commented 5 years ago

@markstory thanks for merging. When do you plan to generate a new release?

markstory commented 5 years ago

@smap9 In a week or so when I am not on holiday.

smap9 commented 5 years ago

Thanks for feedback. Enjoy your holiday :-)

rochamarcelo commented 5 years ago

@markstory when are you planning to release this?

markstory commented 5 years ago

@rochamarcelo I totally forgot about this. I just tagged 1.5.0 now.

rochamarcelo commented 5 years ago

Awesome, thank you.