@bunred/sync-plugins
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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

Package Sidebar

Install

npm i @bunred/sync-plugins

Weekly Downloads

2

Version

1.1.1

License

Apache-2.0

Unpacked Size

27.6 kB

Total Files

20

Last publish

Collaborators

  • bunred