【问题标题】:Meteor package breaks bootstrapMeteor 包破坏了引导程序
【发布时间】:2016-06-05 20:23:40
【问题描述】:

在我的 angular-meteor 项目中,我选择使用流星的引导程序包 nemo64:bootstrap,因为它可以轻松自定义原始引导程序设置。但是,当为简单的 html 文本编辑器安装另一个流星包时,fraywing:text-angular..

安装后,text-angular 包会安装 twbs:bootstrap,这是另一个处理引导程序的包,这会破坏我的大多数引导程序 javascript 函数,因为它们都收到了双重调用(一个来自 nemo64,另一个来自形成twbs)..

我想我可以通过 meteor remove twbs:bootstrap 卸载 twbs:bootstrap 包,但由于该包尚未安装,因此命令失败,因为它与 fraywing:text-angular 包捆绑在一起。

我使用的是 nemo64 的引导程序包,有什么方法可以从 text-angular 中删除这种依赖关系。

提前致谢。

这是来自流星的包列表:

accounts-password             1.1.4  Password support for accounts
angular                       1.3.5* Everything you need to use AngularJS in your Meteor app
angular:angular-sanitize      1.5.0  AngularJS (official) release. For full solution: http://angular-meteor.com/
angularui:angular-ui-router   0.2.15  angular-ui-router (official): Flexible routing with nested views in AngularJS
check                         1.1.0  Check whether a value matches a pattern
email                         1.0.8  Send email messages
es5-shim                      4.1.14  Shims and polyfills to improve ECMAScript 5 support
fortawesome:fontawesome       4.5.0  Font Awesome (official): 500+ scalable vector icons, customizable via CSS, Retina friendly
fraywing:text-angular         1.3.11  A radically powerful Text-Editor/Wysiwyg editor for Angular.js!
jquery                        1.11.4  Manipulate the DOM using CSS selectors
less                          2.5.1  Leaner CSS language
meteor-base                   1.0.1  Packages that every Meteor app needs
mobile-experience             1.0.1  Packages for a great mobile user experience
mongo                         1.1.3  Adaptor for using MongoDB and Minimongo over DDP
mquandalle:bower              1.5.2_1  Use Bower packages in your Meteor app
natestrauser:animate-css      3.4.0  Animate.css packaged for meteor
nemo64:bootstrap              3.3.5_2  Highly configurable bootstrap integration.
session                       1.1.1  Session variable
standard-minifiers            1.0.2  Standard minifiers used with Meteor apps by default.
timmyg:wow                    1.0.1  WOW css animations 
tmeasday:publish-counts       0.7.3  Publish the count of a cursor, in real time
tracker                       1.0.9  Dependency tracker to allow reactive callbacks
urigo:angular-blaze-template  0.3.0  Include Blaze templates in your angular-meteor application.

【问题讨论】:

    标签: node.js meteor twitter-bootstrap-3 angular-meteor


    【解决方案1】:

    您可以将包复制到本地并对其进行修改:在根文件夹中创建一个packages 文件夹,从 github 将 fraywing 包克隆到其中,然后在 package.js 中修改其依赖项以使用 nemo 包而不是 twbs。

    Meteor 将自动使用您的本地包而不是存储库中的包,list 命令应在 fraywing 包旁边显示一个小星号,以表明它已获取本地包。然而,这意味着该软件包不会通过流星更新更新到最新版本...

    【讨论】:

      猜你喜欢
      • 2013-08-04
      • 1970-01-01
      • 2022-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-12
      • 1970-01-01
      相关资源
      最近更新 更多