@bunred/sync-plugins

one-click to sync(install/update) the plugins, you can use git repository to store the plugins' information.

Usage no npm install needed!

<script type="module">
  import bunredSyncPlugins from 'https://cdn.skypack.dev/@bunred/sync-plugins';
</script>

README

Build Status codecov

How to use

One-click to sync(install/update) the plugins, you can use git repository to store the plugins' information.

yarn add @bunred/sync-plugins -D

create a new file plugins-update.js

const path = require("path")

const savePath = path.resolve(__dirname, "plugins-info.json")
const pluginsPath = path.resolve(__dirname, "./plugins")

const pluginsPrefixUrl =
  "https://raw.githubusercontent.com/bunred/bunadmin-plugins/master/navigation"
const pluginsInfoArr = require("./plugins-info.json") || []

const { syncPlugins } = require("@bunred/sync-plugins")

syncPlugins({ savePath, pluginsPath, pluginsPrefixUrl, pluginsInfoArr })
node plugins-update.js

See more on bunadmin | bunadmin-plugins