这篇文章主要讲解了“component的特点有哪些”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“component的特点有哪些”吧!
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.
感谢各位的阅读,以上就是“component的特点有哪些”的内容了,经过本文的学习后,相信大家对component的特点有哪些这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是亿速云,小编将为大家推送更多相关知识点的文章,欢迎关注!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。