想看看是否有人可以使用这个 Angular 种子来帮助澄清一些一般情况:
Angular-seed 您可以通过 github (git clone) 或 npm 安装它,但不能通过 yeoman 安装。
- npm 上有像 Angular-seed 这样的项目吗?因为它是第一个真正的全栈 JavaScript 内容分发工具?
- 这并不意味着它可以以某种方式用作后端组件?注意:在 Angular-Seed 的 npm 页面上 - 链接到与项目主页相同的 github 页面,如下图所示。
- Yeoman 将是您现在寻找此类包/应用程序入门框架的主要位置,而不是 github 直接或其他来源?
- Angular-seed 不在 yeoman 上现在 - 这(或与项目提交事件的组合)会阻止您将此项目用作应用程序启动器吗?
最近做了以下 Angular + Firebase tut 。 Angular-seed 项目是通过使用 git clone 在 tut 上安装的。我记得在 npm 上看到过 Angular-seed,出于好奇,我将其安装在另一个文件夹中进行比较。注意到相似的结构,但不一样。我在下面列出了一些树结构。
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
最佳答案
npm 版本似乎已经过时了,它说: 版本 1.2.0 最后更新于一年前 vrs 存储库于 26 天前更新(从今天开始)
如果你查看文档,确实他们有不同的文件夹结构,也许是因为他们没有更新 npm 上的包信息,一个奇怪的事情是 npm 包指向同一个 git 存储库。
关于您的问题:
it was the first real distribution tool for full stack javascript stuff?
我不确定你的意思是什么,但我认为这可能是因为 Bower 不存在,但那个日期或在主流中不可用
This does not mean that it somehow can be used as a backend component?
不,这不是 Angular 种子,它只与客户端相关,如果你想查看一些完整的堆栈,请查看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 不仅仅是一个骨架,还是一个脚手架,可能该项目的人员不想实现该功能。不管怎样,我推荐你 cg-angular,它为 Angular 项目实现了“最佳实践”。
关于javascript - 为什么应用程序生成器会在 npm 上而不是 yeoman 上? (即 Angular 种子)Github vs npm vs Yeoman 作为应用程序启动骨架的分发源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27113666/