Component是一个对客户端JavaScript包进行管理的工具,用于更好的构建Web应用。
component特点:
编写模块化commonjs组件
编写包含样式、图片、脚本等内容的组件
无需注册表发布或者帐号,使用github资料库
可通过component-YOURCOMANDgit风格来扩展子命令
组件骨架创建的命令
从命令或者./component.json中安装依赖
avoidnamesquattingthroughgithub'snamingconventions
使用--shandalone构建组件便于非组件用户使用
通过简单可靠的搜索来发现有用的包
可直接在命令行上查看文档
简单私有注册表设置(只需一个文件服务器)
非常快速的安装(50componentsin~4.5s)
非常快速的搜索(~300ms)
component安装
npminstall-gcomponent
Component is a vertically integrated frontend solution, handling everything from package management to the build process, handling everything including HTML, JS, CSS, images, and fonts. Think of it as an opinionated npm + browserify + rework-npm + grunt/gulp/broccoli all wrapped into component build .
Want to know more about Component? Visit the guide or view the comparison with other solutions.
If you're confused about component, components, componentjs, please read disambiguation
Component 1.0.0: Several major new features have been added, some have been removed, and the project has been greatly reorganized. You may need to upgrade your version of node and/or npm to avoid breakage. Please see the detailed changelog. Component 0.x will not be maintained anymore.
下一篇:什么是单点登录