Vue.js 是一款流行的 JavaScript 框架,由尤雨溪開發(fā)。它用于構(gòu)建單頁面應(yīng)用程序(SPA)和響應(yīng)式用戶界面。Vue.js 采用了可重用組件的概念,使開發(fā)人員能夠構(gòu)建可維護(hù)和可擴(kuò)展的大規(guī)模應(yīng)用程序。
Vue.js 使用 MIT 許可證,這意味著任何人都可以使用、修改和分發(fā)這個框架。這個許可證非常寬松,允許開發(fā)人員自由地使用 Vue.js 構(gòu)建商業(yè)和非商業(yè)項(xiàng)目。
MIT License Copyright (c) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
雖然 MIT 許可證非常靈活和允許商業(yè)使用,但它不包括帶有特定限制的條款,例如您必須使用特定的名稱來命名您的應(yīng)用程序。這可能導(dǎo)致可能使一些開發(fā)者們產(chǎn)生商業(yè)困擾。
為了解決這個問題,Vue.js 發(fā)布了一個新的可選許可證—— 合伙許可證(Vue.js Partner License)。它包括了MIT許可證的所有內(nèi)容,同時添加了額外的條款和條件。
Vue.js Partner License The Vue.js Partner License grants you, the Licensee, a worldwide, royalty-free, non-exclusive, revocable license to use, reproduce, modify and distribute the Software only in connection with any Vue.js version that is distributed under the Vue.js PATENTS License (the “In-Scope Versions”), subject to the following conditions: You agree not to use, reproduce, modify or distribute the Software outside of the scope of the license granted herein. You agree that you will not directly or indirectly license, sublicense, sell, resell, transfer, assign, distribute or otherwise commercially exploit the Software, in whole or in part, to any third party.
該許可證要求團(tuán)隊(duì)支付使用 Vue.js 建立的商業(yè)項(xiàng)目的一定費(fèi)用。此費(fèi)用的大小與項(xiàng)目類型有關(guān),比如收費(fèi)人數(shù)、業(yè)務(wù)規(guī)模、使用時間等等。Vue.js 的合伙許可證是免費(fèi)的,但許可證持有人必須從 Vue.js 核心開發(fā)者那里獲得認(rèn)可,才能使用該許可證。
顯然,MIT 許可證和 Vue.js Partner License 都有優(yōu)點(diǎn)和缺點(diǎn)。開發(fā)人員應(yīng)根據(jù)其項(xiàng)目的需求,在兩個之間作出選擇。