@bunred/sync-plugins
v1.1.1
Published
one-click to sync(install/update) the plugins, you can use git repository to store the plugins' information.
Downloads
6
Maintainers
Readme
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