Releases: PhpGt/Sync
Sync as symlinks
In this minor release, a new feature is added: sync a directory/file by symlinking it in place. This is built specifically to address a common web development pattern: serving content from outside of the web root, without having to synchronise all files/directories every time there's a change.
What's Changed
- build: hard dependencies by @g105b in #20
- maintenance: dependabot by @g105b in #22
- Upgrade CI by @g105b in #53
- Symlinks by @g105b in #55
- Symlink improvement by @g105b in #57
Full Changelog: v1.2.9...v1.2.10
Limit dependency version
This minor patch release limits the version of a third party dependency to avoid backwards breaking changes.
Wildcard by default
Without supplying a pattern to match against, this patch release introduces the wildcard glob: #18
CI and type safety
This patch release improves static analysis by introducing stricter types, along with bumping the version of php-actions scripts that are used for CI.
PHP.Gt/Cli compatibility (second change)
For backwards compatibility, this patch release was split into two. Now, exceptions are caught when trying to get an argument value from a parameter that has not been set.
This does not change the functionality of the repository, just the way the integration happens between Sync and Cli.
PHP.Gt/Cli compatibility
This patch release makes the repository compatible with an upcoming change to PHP.Gt/Cli, which uses PHP's native type checking instead of a null-checked parameter. Without this fix in place, PHP would throw an exception if the second parameter of ArgumentValueList::get() was passed a null value.
Github actions
No new functionality in this patch release, just an improved CI runner now hosted on Github Actions.
Have fun!
Pattern argument defaults to null
The introduction of the new pattern attribute unlocked a lot of possibilities, but a glob pattern is not always required on simple usages so this argument has now been made completely optional.
Pass pattern on CLI
This small release makes it possible to pass in a glob pattern to the sync command to only sync files that match the provided pattern.
sync source_dir dest_dir --pattern '**/*.js'
Bin script exposed
For easy use of the sync functionality, installing this repo via composer will now link the sync bin script into the vendor/bin/
directory. The autoloader has been simplified too along with a few bumps in dependencies.