runegan / jsxbin

Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit
MIT License
87 stars 21 forks source link

fix(output): preserve directory structure in output (fix issue #13) #25

Open smhagit opened 3 years ago

smhagit commented 3 years ago

Introduce a new parameter to preserve the output directory structure (if the input is a directory). The new preserveStructure parameter defaults to false to don't break any existing CI/CD scripts which rely on the previous (put all in one directory) behaviour.

I bumped the version from 2.2.0 to 2.3.0.

This resolves issue #13

runegan commented 3 years ago

Great job! Thank you! I haven't been able to test the new functionality, but it seems to be backwards compatible at least.

Could you write one or two tests for it in "test.js", where it tests if it creates the desired output with an input? And testing it with "npm test"

I'm also trying to keep the code uniform, on smhagit-preserve-structure I've run eslint to apply the styling. So it would be great if you could merge with that.

Hope that is doable.

Thank you for the pull request!