Skip to content

2 minor changes #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

2 minor changes #15

wants to merge 1 commit into from

Conversation

lennel
Copy link

@lennel lennel commented Jun 13, 2013

"added ability to pass multiple or single directory to compile command. added check to see if output directory exists and if not create it."

The reason behind the multiple directories is because we generate vast amounts of templates and then override delegates in another location.

added ability to pass multiple or single directory to compile command. added check to see if output directory exists and if not create it.
//check if directory to which compiled soy files will be written exists
if (!fs.existsSync(outputDirectory)) {
//create directory if not.
fs.mkdirSync(outputDirectory)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might want to use mkdirp instead, so that it'll create the directory recursively.

@dpup
Copy link

dpup commented Jun 13, 2013

Thanks for the patch, would you mind signing the Contributor Licence Agreement: https://github.com/Obvious/open-source#note-to-external-contributors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants