2016-05-16 158 views
-1

我在爲自動窗體https://github.com/aldeed/meteor-autoform-bs-datetimepicker這個日期選擇器包問題和修復是另一個回購https://github.com/stefanve/meteor-autoform-bs-datetimepicker,並且超過兩次提交https://github.com/aldeed/meteor-autoform-bs-datetimepicker/compare/master...stefanve:master安裝流星包,本地或github上

我去了我的包文件夾,裏面是空的,我git克隆包含修復的回購https://github.com/stefanve/meteor-autoform-bs-datetimepicker.git

我正在關注如何在本地安裝軟件包的這篇文章說明How to modify already installed Atmosphere packages

我試着在軟件包目錄中安裝軟件包,但發現軟件包未知的錯誤。

我試圖編輯包文件,這

Package.describe({ 
    name: 'stefanve:autoform-bs-datetimepicker', 
    summary: 'Custom bootstrap-datetimepicker input type with timezone support for AutoForm', 
    version: '1.0.6', 
    git: 'https://github.com/stefanve/meteor-autoform-bs-datetimepicker.git' 
}); 

Package.onUse(function(api) { 
    api.use('[email protected]'); 
    api.use('[email protected]'); 
    api.use('aldeed:[email protected] || 5.0.0'); 

    // Ensure momentjs packages load before this one if used 
    api.use('momentjs:[email protected]', 'client', {weak: true}); 
    api.use('mrt:[email protected]', 'client', {weak: true}); 

    api.addFiles([ 
    'autoform-bs-datetimepicker.html', 
    'autoform-bs-datetimepicker.js' 
    ], 'client'); 
}); 

,並安裝了我的包。

問題是,流星是否安裝了我從克隆的文件或從github獲得的文件?

回答

0

流星不會從github安裝軟件包。它根本無法做到這一點。

軟件包列表位於.meteor/packages文件中。如果您的本地packages文件夾中有匹配的名稱,則將從那裏加載,否則從大氣(本地比大氣優先)。

嘗試更改package.js中的version並查看它是如何重新加載包並更新的.meteor/versions

+0

好主意,我會改變版本,看看。 –