1.1.1 • Published 4 years ago

@bunred/sync-plugins v1.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

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