elidoran / cosmos-browserify

Browserify npm modules for client side in Meteor packages
MIT License
78 stars 12 forks source link

documentation improvement #2

Closed elidoran closed 9 years ago

elidoran commented 9 years ago

Please, provide feedback on my README and I will revise it.

elidoran commented 9 years ago

@mikowals Is the README understandable? Any suggestions for revising it?

mikowals commented 9 years ago

Some suggestions for the 'Easy as 1 2 3' section.

Both browserify.js and the file demonstrating uppercase working need to be included with api.addFiles():

Package.onUse(function(api) {
  api.use(['cosmos:browserify'], 'client');
  api.addFiles(['browserify.js','example.js'],'client');
}); 

On a more stylistic note, it might be better to show uppercase being exported (api.export('uppercase',client')) so that it can just be tested in the browser dev console manually. Exporting variables for use outside of the package will be common, particularly for beginners, so maybe showing that avoids future questions.

Completing the example repo with the code referenced in the README would make everything abundantly clear.

elidoran commented 9 years ago

@mikowals Great suggestions, thank you. I updated the README with your suggestions. I still need to update the 'Install and Usage' section to focus more on having the api.export() and testing it in the console. I published the example app, finally.

elidoran commented 9 years ago

I rewrote the README with a table of contents and focusing on whether the user wants to use it in a package or an app.