Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Save installed plugin as a dependency in .dependencies

Started by Muut Archive 10 years ago · 4 replies · 617 views
10 years ago

Is there a way to auto-add a newly installed plugin as a dependency, so I can later run gpm/install on a server? Something like npm does with "npm install --save package-name"?

10 years ago

Hi, i aksed myself the same question some days ago. On Github there is already an issue to this #880. Thanks to Perlkönig for the link :)

10 years ago

You can also manually build a .dependencies file like you would when building a skeleton.

10 years ago

I already have the file after installing grav through git. Problem is, every time I add a plugin, I need to manually update .dependencies file. This is because I chose to not include plugins in my git repo, so I can just run bin/grav install on the server after updating from git. For this, I need the file to always contain all installed plugins.

10 years ago

I understand. Thus the issue #880 to create a freeze/thaw function. I was just saying that you could do it manually in the meantime.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1354 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4064 9 years ago
Archive · by Muut Archive, 9 years ago
1 2951 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago