Live data from Hacker News

Yeoman 1.0 Released

yeoman.io

31–40 of 58 posts

Re: Yeoman 1.0 Released

#31

Is this for Node.js only? They keep saying 'web apps' but never explicitly that it's not. NPM is node, right? (sorry, not too familiar with Node)

Yeoman is purely development-time workflow tooling. It and its ecosystem (the "generator-XXXX" npm modules) use Node.js as the runtime on the development host. Typical Yeoman use would be 1) during development to speed dev, testing, etc., and 2) to build minified assets for deployment into production. EDIT: Removed confusing "client-side" reference caught by 9oliYQjP -- thanks!

Actually, while client-side development is where it has gained the most popularity, I use some Yeoman generators for setting up some backends. Here is one such example that scaffolds a Node project: https://github.com/yeoman/generator-node. There's really nothing stopping you from using Yeoman for live reloading of a frontend and backend stack.

Re: Yeoman 1.0 Released

#32
post #11

Earlier quoted context omitted.

I wiped out all npm modules and reinstalled node. Still getting error. I installed yeoman using: sudo npm install -g yo generator-webapp grunt-contrib-compass

That shouldn't happen then. Would you mind opening an issue at https://github.com/yeoman/yo/issues about this?

Resolved :) But it would be great if you could test to make sure it's fixed.

Re: Yeoman 1.0 Released

#33
post #2

Yeoman is fantastic...I used it several months ago when deciding (foolishly, in retrospect) to learn both CoffeeScript and AngularJS at the same time while making an app. I had never put the effort into setting up grunt tasks manually...so working with automated building and testing were things I never had while developing with JS (which you can take to mean that my past work with JS has been mostly trivial). Besides…

What resources can you recommend for learning AngularJS and CoffeeScript at the same time? I had the same inkling, and I'm intrigued that you found it foolish. Why is that?

Re: Yeoman 1.0 Released

#34
post #16

Should I be ashamed or proud that I believe in writing my own tools for my craft?

Where do you choose to draw the line for "writing my own tools"? Your text editor? Your JS engine? I like to think I choose the best tool for the job - if yours are better please let us know :-)

Re: Yeoman 1.0 Released

#35
post #13

Love Yeoman. For the love of god, how do I create 'pretty permalink' (Jekyll Style) with it - "about.html" to create "/about/index.html"?

Nginx - just remap the urls. We run http://carrot.is (not meant to be a plug, just an example) served statically via nginx and the urls are "pretty". You can use a little statement like this in your nginx config: if ( $uri !~ /index\.html$) { rewrite ^(/.+)\.html$ $scheme://$host$1 permanent; }

Offtopic - your username reminds me of a line from the Beverly HillBillies that went something like: "Hi, I'm Jethro Bodine; initials JB. Turn it around, BJ -- Boy Jenius." Ha ha.

Re: Yeoman 1.0 Released

#36

Love Yeoman. For the love of god, how do I create 'pretty permalink' (Jekyll Style) with it - "about.html" to create "/about/index.html"?

For development we use grunt-connect-rewrite. It is a middleware for connect (which yeoman uses) that allows you to write custom rules similarly to how you would implement them in Apache.

You can see our connect setup in this gist

https://gist.github.com/TheAlphaNerd/6322927

Re: Yeoman 1.0 Released

#37
post #33
post #2

Yeoman is fantastic...I used it several months ago when deciding (foolishly, in retrospect) to learn both CoffeeScript and AngularJS at the same time while making an app. I had never put the effort into setting up grunt tasks manually...so working with automated building and testing were things I never had while developing with JS (which you can take to mean that my past work with JS has been mostly trivial). Besides…

What resources can you recommend for learning AngularJS and CoffeeScript at the same time? I had the same inkling, and I'm intrigued that you found it foolish. Why is that?

Actually I need to write a blog post about this...it was "foolish" in that it was learning two kinds of worldviews at once (CoffeeScript vs JS and AngularJS vs. other frameworks) though since I wasn't doing it for a on-the-job project that I (or anyone else) would have to maintain, it wasn't "foolish" in the disastrous way :)

But now that I think more about it, doing both at once helped me with how I generally learn things, which is: copy example applications and go through the motions, and slowly experiment/break things until it all makes sense.

However, the problem with this is that if you kind-of-know something, you just mindlessly retype the code without getting much benefit. I kind-of-know MVC (or whatever Angular is) frameworks so to make things a challenge, I took the Todo/Hello-world Angular apps and re-wrote them in CoffeeScript. There was enough mental exercise there that my brain didn't atrophy from looking at Todo/Hello-world-level code, and at the same time, I got some practice with CoffeeScript.

I guess the main "resource" that made this possible was with Yeoman, which chirped at me everytime I screwed up in CoffeeScript (i.e. missed a whitespace) and made it easy, via TDD, to slowly construct an Angular app despite being incredibly confused with some of Angular's magic.

Re: Yeoman 1.0 Released

#38
I don't understand why people need all this. Setting up the boilerplate for a web app manually doesn't take any time at all and only needs to be done once so what is there to automate? Am I the only one still doing it the old school way? Please enlighten me.

Re: Yeoman 1.0 Released

#40
post #38

I don't understand why people need all this. Setting up the boilerplate for a web app manually doesn't take any time at all and only needs to be done once so what is there to automate? Am I the only one still doing it the old school way? Please enlighten me.

Yeoman sets up boilerplates for many different kinds of applications, with many different kinds of requirements, and gives you all the tools you need to get started.

This can be as convenient as typing in "yo bootstrap" to set up a generic bootstrap site, to "yo phonegap-backbone" to set up a workflow for a backbone and phonegap application. It not only sets up the directory structures for you, it also manages requirements inside of your project from external parties, test environments, and gives you a nice little live-preview setup with grunt automatically.

For me, it takes a lot of that project setup time out of the way, so I can get started coding rather quickly.

Post reply on HN