pluginbot | Plugin framework for creating extensible applications | Plugin library
kandi X-RAY | pluginbot Summary
kandi X-RAY | pluginbot Summary
At a high level - pluginbot is an app framework that consists of plugins which can provide/consume services. To define a plugin you define a function which provide services and a function that can consume services, consumption happens in the form of a redux-saga so your plugin can wait around for your desired service to be provided which elmiminates dependency chains entirely since your plugin will pause execution until the service it needs becomes available. This architecture allows for a highly extensible application because a plugin that adds functionality would just provide services other plugins consume (or consume services other plugins provide) - for example a plugin could provide new routes to be consumed by a router plugin or a plugin could provide UI components such as navigation-menus which would be rendered by a navigation-menu consumer. In order for plugins to run, they have to be declared in a configuration which will contain at a minimum the path of the plugin. Here you would define environment specific data. Configuration can either be json or a js file that exports an object/Promise that resolves to an object. The plugins array represents the enabled plugins in a pluginbot instance. A plugin consists of a module which exports a generator function, each plugin takes the form of a redux-saga meaning they can wait for specific events to happens or services to be provided by other plugins before running their own code. Now if I wanted to create a plugin which adds a new route to my app all I need to do is provide an expressRoute service. In order for a pluginbot plugin to be considered valid it requires a pluginbot section to be defined in the package.json. For a basic definition you just need to define where the entry point to your plugin is and the services the plugin consumes (if any).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pluginbot
pluginbot Key Features
pluginbot Examples and Code Snippets
Community Discussions
Trending Discussions on pluginbot
QUESTION
I am trying to write a configure.ac
file to do these tasks:
The
configure
script should accept a--with-libuv
parameter.A variable
with_libuv
should be set to eitheryes
,no
orcheck
(withcheck
being the default value when nothing was passed on the command line).When
with_libuv == "yes"
a mandatory PKG_CHECK_MODULES check forlibuv >= 1.9.0
should be done andHAVE_LIBUV = 1
should be set on success (On errorconfigure
should abort).When
with_libuv == "no"
nothing should be checked,When
with_libuv == "false"
an optional PKG_CHECK_MODULES check (for the same library as in 3.) should be done andHAVE_LIBUV
should be set to either0
or1
accordingly.If
with_libuv != "no" && HAVE_LIBUV == 1
AC_DEFINE should set-DUSE_LIBUV
and AM_CONDITIONAL should setUSE_LIBUV
as a conditional for automake.If not
with_libuv != "no" && HAVE_LIBUV == 1
the preprocessor directive should not be set and the AM_CONDITIONAL should be set to0
.
I have figured out how to do steps 1-5, but I am struggeling with 6 and 7.
Here is my current attempt:
...ANSWER
Answered 2017-Feb-18 at 16:00I think you should use =
instead of -eq
. The -eq
is a relation between integers - the x1
isn't integer!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pluginbot
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page