jamie
jamie

Reputation: 690

Why would an app generator be on npm and not yeoman? (ie. angular seed) Github vs npm vs Yeoman as distribution source for app start skeletons

Wanted to see if anyone can help clarify a few things in general using this angular-seed for example:

Angular-seed you can install it via github (git clone) or npm but not yeoman.

Recently did the following angular + firebase tut. Angular-seed project is installed by using git clone on the tut. I remembered seeing angular-seed on npm and out of curiosity installed that in another folder to compare. Noticed similar structures but not the same. Some of the tree structure I included below.

myProjectFolder (installed from git clone)
  -angular-seed
    -app
      -components
      -view1
      -view2
      app.css
      app.js
      index.async.html
      index.html
    -e2e-tests
    -node-modules
    bower.json
    karma.config.js
    package.json

myProjectFolder (installed from npm)
  -node_modules
    -angular-seed
      -app
       -bower_components
       -css
       -img
       -js
       -partials
       -index.html
       -index-async.html
      README.md

Upvotes: 0

Views: 148

Answers (1)

pedrommuller
pedrommuller

Reputation: 16066

it seems like the npm version it's outdated it says: Version 1.2.0 last updated a year ago vrs the repo which was updated 26 days ago (from today)

If you look at the documentation indeed they have a different folder structure, maybe because they haven't updated the package information on npm, one weird thing is the npm package points to the same git repo.

regarding to your questions:

it was the first real distribution tool for full stack javascript stuff?

I'm not sure what do you mean by that, but I think it could be because bower didn't exist but that date or wasn't available at mainstream

This does not mean that it somehow can be used as a backend component?

no isn't angular seed it's only related to the client side, if you want to look at some fullstack look at mean.js

Yeoman would be the primary place right now you would look for this type of package/app starter skeleton rather than github direct or some other source?

yeoman is way more than a skeleton, is a scaffolder, probably the guys on the project don't want to implement that functionality. anyway I recommend you cg-angular which implements 'the best practices' for an angular project.

Upvotes: 1

Related Questions