Install latest composer dependencies











up vote
0
down vote

favorite












I have private repository in which we have a composer.json file.



{
"name": "vendor/package",
"version": "1.1.0",
"type": "project",
"require": {
"craftcms/cms": "^3.0.0",
"ether/splash": "^v3.0.2",
"ether/simplemap": "^v3.3.4",
"aelvan/imager": "^v2.1.1",
"vlucas/phpdotenv": "^2.4.0",
"craftcms/redactor": "^2.1.6",
"craftcms/mandrill": "^1.2.0",
"sebastianlenz/linkfield": "^1.0.15",
"solspace/craft3-freeform": "^2.4.1",
"nystudio107/craft-minify": "^1.2.9",
"nystudio107/craft-seomatic": "^3.1.26",
"pieterxjan/slack-error-notifications": "^1.0"
},
"autoload": {
"psr-4": {
"modules\": "modules/"
}
},
"config": {
"optimize-autoloader": true,
"platform": {
"php": "7.0"
}
},
"scripts": {
"post-root-package-install": [
"@php -r "file_exists('.env') || copy('.env.example', '.env');""
]
}
}


When I perform a composer create-project vendor/package ., it only installs the given requirements as specified in the composer.json file.



In case I want the latest dependencies, I need to perform a composer update after the install is complete. I wonder if there is another way of installing the latest dependencies with only the composer create-package command.



The inspiration of my bootstrap package is Andrew Welch's craft repo. If I install his repo as documented in the readme, I immediately get the latest dependencies, whilst the dependences specified in the composer.json file are older versions.



Is there some setting I'm forgetting that takes care of this?










share|improve this question






















  • Do you have composer.lock in this repo?
    – rob006
    Nov 19 at 9:57










  • @rob006 No, there is no lockfile in the repository.
    – PieterxJan
    Nov 19 at 10:58















up vote
0
down vote

favorite












I have private repository in which we have a composer.json file.



{
"name": "vendor/package",
"version": "1.1.0",
"type": "project",
"require": {
"craftcms/cms": "^3.0.0",
"ether/splash": "^v3.0.2",
"ether/simplemap": "^v3.3.4",
"aelvan/imager": "^v2.1.1",
"vlucas/phpdotenv": "^2.4.0",
"craftcms/redactor": "^2.1.6",
"craftcms/mandrill": "^1.2.0",
"sebastianlenz/linkfield": "^1.0.15",
"solspace/craft3-freeform": "^2.4.1",
"nystudio107/craft-minify": "^1.2.9",
"nystudio107/craft-seomatic": "^3.1.26",
"pieterxjan/slack-error-notifications": "^1.0"
},
"autoload": {
"psr-4": {
"modules\": "modules/"
}
},
"config": {
"optimize-autoloader": true,
"platform": {
"php": "7.0"
}
},
"scripts": {
"post-root-package-install": [
"@php -r "file_exists('.env') || copy('.env.example', '.env');""
]
}
}


When I perform a composer create-project vendor/package ., it only installs the given requirements as specified in the composer.json file.



In case I want the latest dependencies, I need to perform a composer update after the install is complete. I wonder if there is another way of installing the latest dependencies with only the composer create-package command.



The inspiration of my bootstrap package is Andrew Welch's craft repo. If I install his repo as documented in the readme, I immediately get the latest dependencies, whilst the dependences specified in the composer.json file are older versions.



Is there some setting I'm forgetting that takes care of this?










share|improve this question






















  • Do you have composer.lock in this repo?
    – rob006
    Nov 19 at 9:57










  • @rob006 No, there is no lockfile in the repository.
    – PieterxJan
    Nov 19 at 10:58













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have private repository in which we have a composer.json file.



{
"name": "vendor/package",
"version": "1.1.0",
"type": "project",
"require": {
"craftcms/cms": "^3.0.0",
"ether/splash": "^v3.0.2",
"ether/simplemap": "^v3.3.4",
"aelvan/imager": "^v2.1.1",
"vlucas/phpdotenv": "^2.4.0",
"craftcms/redactor": "^2.1.6",
"craftcms/mandrill": "^1.2.0",
"sebastianlenz/linkfield": "^1.0.15",
"solspace/craft3-freeform": "^2.4.1",
"nystudio107/craft-minify": "^1.2.9",
"nystudio107/craft-seomatic": "^3.1.26",
"pieterxjan/slack-error-notifications": "^1.0"
},
"autoload": {
"psr-4": {
"modules\": "modules/"
}
},
"config": {
"optimize-autoloader": true,
"platform": {
"php": "7.0"
}
},
"scripts": {
"post-root-package-install": [
"@php -r "file_exists('.env') || copy('.env.example', '.env');""
]
}
}


When I perform a composer create-project vendor/package ., it only installs the given requirements as specified in the composer.json file.



In case I want the latest dependencies, I need to perform a composer update after the install is complete. I wonder if there is another way of installing the latest dependencies with only the composer create-package command.



The inspiration of my bootstrap package is Andrew Welch's craft repo. If I install his repo as documented in the readme, I immediately get the latest dependencies, whilst the dependences specified in the composer.json file are older versions.



Is there some setting I'm forgetting that takes care of this?










share|improve this question













I have private repository in which we have a composer.json file.



{
"name": "vendor/package",
"version": "1.1.0",
"type": "project",
"require": {
"craftcms/cms": "^3.0.0",
"ether/splash": "^v3.0.2",
"ether/simplemap": "^v3.3.4",
"aelvan/imager": "^v2.1.1",
"vlucas/phpdotenv": "^2.4.0",
"craftcms/redactor": "^2.1.6",
"craftcms/mandrill": "^1.2.0",
"sebastianlenz/linkfield": "^1.0.15",
"solspace/craft3-freeform": "^2.4.1",
"nystudio107/craft-minify": "^1.2.9",
"nystudio107/craft-seomatic": "^3.1.26",
"pieterxjan/slack-error-notifications": "^1.0"
},
"autoload": {
"psr-4": {
"modules\": "modules/"
}
},
"config": {
"optimize-autoloader": true,
"platform": {
"php": "7.0"
}
},
"scripts": {
"post-root-package-install": [
"@php -r "file_exists('.env') || copy('.env.example', '.env');""
]
}
}


When I perform a composer create-project vendor/package ., it only installs the given requirements as specified in the composer.json file.



In case I want the latest dependencies, I need to perform a composer update after the install is complete. I wonder if there is another way of installing the latest dependencies with only the composer create-package command.



The inspiration of my bootstrap package is Andrew Welch's craft repo. If I install his repo as documented in the readme, I immediately get the latest dependencies, whilst the dependences specified in the composer.json file are older versions.



Is there some setting I'm forgetting that takes care of this?







composer-php






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 19 at 8:18









PieterxJan

1




1












  • Do you have composer.lock in this repo?
    – rob006
    Nov 19 at 9:57










  • @rob006 No, there is no lockfile in the repository.
    – PieterxJan
    Nov 19 at 10:58


















  • Do you have composer.lock in this repo?
    – rob006
    Nov 19 at 9:57










  • @rob006 No, there is no lockfile in the repository.
    – PieterxJan
    Nov 19 at 10:58
















Do you have composer.lock in this repo?
– rob006
Nov 19 at 9:57




Do you have composer.lock in this repo?
– rob006
Nov 19 at 9:57












@rob006 No, there is no lockfile in the repository.
– PieterxJan
Nov 19 at 10:58




@rob006 No, there is no lockfile in the repository.
– PieterxJan
Nov 19 at 10:58

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53370702%2finstall-latest-composer-dependencies%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53370702%2finstall-latest-composer-dependencies%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Ottavio Pratesi

Tricia Helfer

15 giugno