Skip to content
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

automatically download prettify files #44

Merged
merged 1 commit into from
Nov 27, 2014
Merged

Conversation

clmath
Copy link
Member

@clmath clmath commented Nov 24, 2014

This would remove the need to manually install the prettify files.

In #40 @cjolif suggested to use grunt to do that but I think using the npm postinstall hook is more adapted to solve this issue.

fs.writeFileSync(dest + file, data);
});
} else {
console.log(file + ": " + "HTTP GET Error " + statusCode);
Copy link
Contributor

Choose a reason for hiding this comment

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

Would console.warn() or console.error() be more appropriate here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I guess you're right. From the node doc I see that console.warn and console.error are the same so I'll go with console.error everywhere.

@asudoh asudoh merged commit b122ea6 into ibm-js:master Nov 27, 2014
@asudoh
Copy link
Contributor

asudoh commented Nov 27, 2014

Thanks @clmath!

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