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

Write getting started article about lmd #151

Open
azproduction opened this issue Oct 25, 2013 · 10 comments
Open

Write getting started article about lmd #151

azproduction opened this issue Oct 25, 2013 · 10 comments
Labels

Comments

@azproduction
Copy link
Owner

It should cover:

  • 3-party modules adaptation (backbone with plugins)
  • shortcuts (for global jQuery and/or bundles)
  • globbing
  • integration (with backbone, angular or ember.js)
  • mixins (e.g. for /admin, locales or debugging)
  • bundles (e.g. for config window)
  • lmd-info(1)
  • styles (.css and .ie.css)
  • Grunt + grunt-lmd
  • unit tests (mocha+chai on karma)
@rlopes
Copy link

rlopes commented Dec 17, 2013

+1 for the new detailed getting started article.

@azproduction
Copy link
Owner Author

@generalov can you suggest a topic for new Getting Started? Or maybe things that should be covered?

@generalov
Copy link

As a curious programmer I want to see what main task is solved by your library, and what do I need to do this.
+1 for the new short and simple getting started article. ^)

These topics are very important, but they look too complicated for Getting Started article, IMHO. Does #164 is about any special sections of the documentation with recipes for advanced use cases?

@azproduction
Copy link
Owner Author

too complicated for Getting Started article

I can cover each of them step by step, start from mapping real FS to abstract FS.

@generalov
Copy link

When I want to say what I need "more documentation" is not always meens that I want it "more" in a volume or "more" in a scope. Rather, I want more short and more conctrete recepie to solving my current task.

I like a CommonJS module declaration style on server and I want to use them in browser too. And I too lazy to write Gruntfile to prepare such modules for using in browsers. It looks like the LMD for me. What minimum do I need to begin use it? I think this is a topic for Getting Started article and it should be short (wiki:Getting-started is too complicated, imho).

How could you library to help me more? There are another topics and LMD has a great documentation. I had once looking into the sources - to determinate the set of template variables for path substitution. Another unclear totpic was a testing and I found the answer in #129.

@rlopes
Copy link

rlopes commented Dec 18, 2013

Ultimately you could have simple getting started examples. Then you could structure the documentation using maybe the config flags table as a starting point from where for each features you get access to more demos and code examples as well as more detailed documentation for more advanced topics like async, bundles. A good chunk of the documentation is already there. Maybe it is just about reshuffling it a bit and adding more details in some cases.

I feel comfortable now with the library and the grunt-lmd task as well but documentation is critical to get people in, and it has to solve real problems as well as providing solutions for more advanced topics and real life usage: this is where I like the idea of using a melting pot of features used with popular frameworks examples like Angular and Ember to show how LMD benefit them and easily mix with their routes / controllers / views / templates.
I like the idea of borrowing their own getting started or cookbook examples.

@azproduction
Copy link
Owner Author

@rlopes @generalov thanks! I will simplify current getting started a bit and will add some refs to detailed examples of each topic in it.

I think that the playground will help as well. With live code editor and realtime bundle compilation. What do you think?

+----------------+---------+
| index.lmd.json | main.js |
+----------+-----+---------+---------------------+
| .lmd/    | var _ = require('lodash');          |
| main.js  |                                     |
| tpl.html |                                     |
|          |                                     |
|          |                                     |
+----------+-------------------------------------+
| info:    Building  example                     | 
| info:    Writing LMD Package to                |
| info:    Build complete                        |
+------------------------------------------------+

@rlopes
Copy link

rlopes commented Dec 19, 2013

A playground sounds like a great idea indeed.
For my part I am comfortable using LMD now in my current mid-sized project build with Ember.

@rulatir
Copy link

rulatir commented Jan 13, 2014

The "getting started" article should cover getting started, not a dozen of advanced topics.

By getting started I mean something like two modules named "Hello" and "World", a manifest that defines "Hello" as depending on "World", and a HTML page that succeeds at loading "World" implicitly by requiring "Hello".

@azproduction
Copy link
Owner Author

@rulatir there is Getting Started of 3 modules https://github.com/azproduction/lmd/wiki/Getting-started :)

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

No branches or pull requests

4 participants