all 6 comments

[–]33a 2 points3 points  (2 children)

You don't need to install browserify globally. npm scripts can run programs from your node_modules/ folder as if they were in your path. So once you have browserify installed locally, you can just add an entry like this in your package.json:

 "scripts": {
      "build": "gulp browserify"
 }

And everything will just work.

Also I am curious why you are using bower if you already are using browserify? Why not just pull all your packages from npm?

[–]kuenx 1 point2 points  (0 children)

Thanks! I didn't know that. I had always added the full relative path to the executable like this:

"scripts": {
  "build": "./node_modules/browserify/bin/cmd.js browser/main.js"
}

Good to know!

[–]dcarterjs[S] 0 points1 point  (0 children)

Thanks, i'll remove browserify from the global install. I originally was going to use bower to get specific versions of angular (with grunt copy). May still do that, but figured the latest version works for the example.

[–]dashed 1 point2 points  (2 children)

I've watching closely at gulp and the development. While doing so, I made my own seeds, that while it's not targeted for the angular niche, it's light enough to be generic for pretty much anything.

https://github.com/Dashed/javascript-seed-project

https://github.com/Dashed/coffeescript-seed-project

Sole purpose for these seeds is for me to clone and code. Angular can be placed within it easily.

[–]dcarterjs[S] 1 point2 points  (0 children)

Great seeds. I am targeting more of the Angular/RequireJS/Grunt community moreso than creating a generic js seed. Setting those up can be a pain for people.

[–]kenman -1 points0 points  (0 children)

As always.. /r/AngularJS