icefox0801 / fecom Goto Github PK
View Code? Open in Web Editor NEWA magic component management tool
Home Page: http://icefox0801.github.io/fecom/
License: MIT License
A magic component management tool
Home Page: http://icefox0801.github.io/fecom/
License: MIT License
fecom detect [component]
检查组件是否可以按照amd
或者commonjs
规范使用
fecom init
代码测试覆盖率达到90%以上
根据component.json
中exclude
指定的文件、目录
fecom.i18n(key)
fecom config owner=xxx&dir=dirname
npm test
时test/mock
目录重置
fecom i authorA/[email protected]
fecom i authorB/[email protected]
应该提示组件名字冲突,修复该bug依赖 #27
fecom install -R
fecom tree -r <component>
分析远程组件的依赖树
fecom tree [component]
分析本地安装组件的依赖树
module.exports = new Fecom()
fecom uninstall --force
如果组件a
的最新版本为1.1
,b
依赖1.0
版本的a
组件,那么执行
fecom i a b
提示冲突时选择安装1.0
版本的a
组件,然后写入component.json
中a
的版本应该为1.0
,而不是1.1
Tree
component.json
原有的依赖会消失
如果安装组件的最新版本和本地的版本不同,应该提示冲突并提示解决
ERROR Error occurred in reading extracted files
fecom install
或者fecom install <component>
fecom i zhaojianfei/[email protected]
15:47:00 ERROR Component cannot be parsed
15:16:50 ERROR TypeError: Cannot read property 'map' of undefined
列出组件的详细信息,以及各个版本信息
存在component.json
时,可以分析出本地的依赖树
fecom install [component]
时
用户可自定义install.js
,安装时自动执行install.js
只能排除目录中的文件,会保留一个空目录
该功能依赖fs-extra的copySync
的实现
问题详见jprichardson/node-fs-extra#244
如果组件a
的最新版本为1.1
,b
依赖1.0
版本的a
组件,那么执行
fecom i a b -R
安装时会重复安装两个a
组件
检查组件最新的tag和component.json中的版本是否一致
会在原有依赖前加*号
fecom update [component]
fecom profile username=xxx&email=xxx
fecom search [pattern]
如果指定-O
则,列出owner
下的所有组件及描述
fecom list [component]
fecom version <releaseType>
fecom list [component] -u
或者fecom list [component] --update
fecom search -S compA
-> owner/[email protected]: description
fecom search compA
-> compA: description
fecom uninstall <component>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.