- FEATURE: Added
exclude
param tocopyRecursive
BREAKING: If you used hoppla's js api, you have to update your require statement:
// Old require:
const hoppla = require('hoppla')
// New require:
const { hoppla } = require'hoppla')
- FEATURE: Added public
copyRecursive
js api
- FEATURE: Implemented new "init" config, a callback that is called after the tmp directory is created (and still is empty)
- FEATURE: Cleanup recursive copy processes, removed redundant code
- FEATURE: The file copy process should consider dot files
- FEATURE: Each hoppla process should use an unique identifier for its tmp directory. This makes sure that parallel hoppla processes with the same destination can run without side effects
- FEATURE: Updated dependencies: ejs, hjson, micromatch, prettier
- BUGFIX: Dont follow symlinks, copy them as is
- Moved changelog into CHANGELOG.md file
- FEATURE: File permissions will now be preserved for hop.ejs files and directories
- FEATURE: Added console logs for prepare and finalize JS execution
Fixed console warning, when copying and merging empty directories without files
- Fixed raw directory override: Raw directories will now replace old ones instead of merging
- Fixed files that should replace folders in the destination moved into the destination instead
- Added mkdir -p to the fileName option, so the option now even can be used to use file names like "newFolder/myFileName"
- Upgraded dependencies: hjson, shelljs, yaku, yargs and prettier
Improved defaults for ejs processing
- Only hopplaconfig's and files suffixed with
.hop.ejs
will be processed with ejs - For *.hop.ejs the hopplaconfig filename doesnt need the
.hop.ejs
suffix- Example: Target file:
app.js.hop.ejs
-> hopplaconfig for target file:app.js.hopplaconfig
- Example: Target file:
Better folder renaming logic (fileName): if multiple folders use the same fileName their children will be merged together
- Documented javascript usage
- Fixed error if no ejs option was provided with js "hoppla"-function
- Added "call" function to the prepare/finalize hoppla object
Bugfixes, better error logs and performance improvements
- FEATURE ff5e0b0: Copy raw directories without custom handler, remove tmp with force (copied only read files, could not be removed otherwise)
- FEATURE e525485: Early exclude files, dont show stacktrace for ejs and special cases
Bugfixes and extra logs
- BUGFIX b795cf9: Fix hopplaconfig always has to exist
- FEATURE a91046d: Added extra log infos
- BUGFIX f923a28: Fix file-exist check uses wrong path
README improvements
Promises, Errorhandling, LongStackTraces,
Input piping, HSJON support, config standardization, Generate option
Refactorings, config changes, Corrected destination merge logic
Initial release