dependencies

npm install with ^ dependency instead of exact match

百般思念 提交于 2019-12-24 19:27:30
问题 I am developing an npm package and realized that it is added with the exact version to the package.json when adding it with npm i -S packagename How can I tell it to use ^0.0.1 instead of 0.0.1 ? Can I define this as the default from within the package itself? 回答1: That happens because ^0.0.1 is considered to be equivalent to 0.0.1 . When the version of a package starts with 0 it's considered to be in development, and the semantic versioning rules are different. An increase in either of the

Installing own jar library for Maven dependency

拥有回忆 提交于 2019-12-24 19:12:53
问题 this may be the stupid question, but I haven't found the answer here : https://github.com/mosabua/maven-android-sdk-deployer (maybe I am blind). I want to use this tool to install my library into sdk and then load it to <dependency> in my POM.xml . But I can't see any instructions how to do this. My library is httpclientandroidlib-1.1.2.jar. Where should I put it and what command should I run to load it to sdk via sdk-deployer ? I know I can use Maven Central , but they don't have the version

How to use a type from an optional dependency in a declaration file?

你说的曾经没有我的故事 提交于 2019-12-24 17:27:44
问题 I have a JS library that does something like so: let OptionalLib; function foo() { OptionalLib = require('optionallib'); // Do stuff... return (something from optional lib); } then I add typings in a .d.ts file: declare module 'mylib' { import { Bar } from 'optionallib'; export function foo(): Bar; } the problem with this is that if the optional library is not installed, TS will complain about not being able to import it, even though it's optional. I tried doing this in order to have the

Makefile reference dependencies with patsubst or wildcard?

那年仲夏 提交于 2019-12-24 17:19:27
问题 Following this question and my answer and its comments I have a doubt. What is the proper way to reference dependencies in a Makefile ? Let me give an example considering this file: CXX = g++ CXXFLAGS = -stdlib=libc++ -std=c++17 WARNING := -Wall -Wextra PROJDIR := . SOURCEDIR := $(PROJDIR)/ SOURCES := $(wildcard $(SOURCEDIR)/*.cpp) OBJDIR := $(PROJDIR)/ OBJECTS := $(patsubst $(SOURCEDIR)/%.cpp,$(OBJDIR)/%.o,$(SOURCES)) DEPENDS := $(patsubst $(SOURCEDIR)/%.cpp,$(OBJDIR)/%.d,$(SOURCES)) #

Makefile reference dependencies with patsubst or wildcard?

佐手、 提交于 2019-12-24 17:18:03
问题 Following this question and my answer and its comments I have a doubt. What is the proper way to reference dependencies in a Makefile ? Let me give an example considering this file: CXX = g++ CXXFLAGS = -stdlib=libc++ -std=c++17 WARNING := -Wall -Wextra PROJDIR := . SOURCEDIR := $(PROJDIR)/ SOURCES := $(wildcard $(SOURCEDIR)/*.cpp) OBJDIR := $(PROJDIR)/ OBJECTS := $(patsubst $(SOURCEDIR)/%.cpp,$(OBJDIR)/%.o,$(SOURCES)) DEPENDS := $(patsubst $(SOURCEDIR)/%.cpp,$(OBJDIR)/%.d,$(SOURCES)) #

Can you copy linker/additional dependancies etc to other projects

情到浓时终转凉″ 提交于 2019-12-24 17:06:35
问题 I consistently have to add directx lib files etc to all of my projects, dependencies, linker stuff etc... Is there a file I can copy across that has all that stuff.. and I just copy it to every project that needs it? 回答1: Yes. You have the option of creating a property sheet that can be added to new or existing projects. Here are the basic steps. Open the Property Manager (View menu). Right click on a project and select "Add New Property Sheet" Once the property sheet has been created/added

Gradle - Dependency Substitution not working in a plugin

痴心易碎 提交于 2019-12-24 16:06:57
问题 I'm having some trouble with Gradle plugins. I'm trying to do dependency substitution inside a plugin, and the result is different than when I'm doing the substitution in the build.gradle file. I have Project1 which is dependent on Project2. In Project2, I have a class named AClass which I'm using in Project1. I then want to substitute the module org.example:Project2:1.0 with the project :Project2 . So, in build.gradle , I put the following code: task updateDependency { configurations.all {

one target for one dependency in makefile

徘徊边缘 提交于 2019-12-24 14:44:28
问题 I am trying to use make to generate thumbnails of photos by typing "make all". If the thumbnails are not yet generated make all generates them, else make all just generate the thumbnails of modified photos. For this I need one target (thumbnail) for each dependency (photo) . My code is like this : input = pictures/*.jpg output = $(subst pictures,thumbs,$(wildcard $(input))) all : $(output) echo "Thumbnails generated !" $(output) : $(input) echo "Converting ..." convert -thumbnail 100 $(subst

Playframework 2.1 slow resolving of internal dependencies

你说的曾经没有我的故事 提交于 2019-12-24 14:33:49
问题 We're using a in house sonatype repository for our own libraries which our play project depend upon. Lately the project have been taking around 10 minutes to start (using play run) because the resolving is slow. Trying to see what's happening I'm running a ngrep port 80 . I see alot of slow responses from the typesafe repository which answer that our own libraries isn't in their repo. Example: T <my-internal-ip>:41907 -> 54.236.91.228:80 [AP] HEAD /typesafe/snapshots/<our-pom-file-here> HT TP

How to add dependencies for maxmind geoip2 eclipse

谁都会走 提交于 2019-12-24 14:11:56
问题 I'm trying to use MaxMind's GeoIP2 database, I've added the jar to my Java build path and configured it with Javadoc and source but when I run the program I get a NoClassDefFound error, which according to this stack overflow answer is because I need to add the dependencies, but I have no clue how to add them in eclipse, I tried extracting the jar files and adding them to the build path but that didn't work, how do I do this in eclipse? Thanks for any help. 回答1: In eclipse you have to create a