open-index/open-npm huggingface dataset:
npm package: @reduct/build-tools
Description: Shared configurations and build setup for all reduct repositories.
Author: reduct
Latest version: 1.5.6

# @reduct/build-tools
[![Build Status](https://travis-ci.org/reduct/build-tools.svg)](https://travis-ci.org/reduct/build-tools) [![Dependency Status](https://david-dm.org/reduct/build-tools.svg)](https://david-dm.org/reduct/build-tools) [![devDependency Status](https://david-dm.org/reduct/build-tools/dev-status.svg)](https://david-dm.org/reduct/build-tools#info=devDependencies)

> Shared configurations and build setup for all reduct repositories.

## Installation

```shell
npm install @reduct/build-tools --save-dev
```

## Configuration
After installing the package properly, you can add your configuration to your package.json. For example:
```javascript
{
  "name": "@reduct/component",
  "version": "1.0.6",
  "license": {
    "type": "MIT",
    "url": "http://www.opensource.org/licenses/mit-license.php"
  },
  "reduct": {
    "sourceFolder": "Src/",
    "distributionFolder": "Dist/",
    "entryFile": "Component.js",
    "globalPackageName": "reductComponent"
  }
}
```


## Commands
##### Default
Runs the `reduct lint`, `reduct mocha`, `reduct build` synchronously.

##### Publish-Coverage
Publishes your coverage results to codeclimate. (For further information, read the integration guide on codeclimate.)

```bash
reduct publish-coverage
```

##### Lint
Lints your configured source folder with ESLint and logs all errors/warning to your console.

```bash
reduct lint
```

##### Mocha
Runs all test specs in your package which match `.spec.js` in their filename via mocha.

```bash
reduct mocha
```

##### Test
Runs `reduct lint` and if successful `reduct mocha`.

```bash
reduct test
```

##### Build
Transpiles your code with Babel, adds a UMD wrapper to the code and a banner comment to your file head containing
meta-data from your `package.json` as well as creates a uglified version of the final file.

```bash
reduct build
```


## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style.


## License
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
npm package: @reducto/services
Description: A collection of higher order middleware for making service calls.
Author: Michael Allen
Latest version: 0.1.0

# @reducto/services
A collection of higher-order, express middleware that handle calling web APIs. These middlewares make it simple to create [BFF's](http://samnewman.io/patterns/architectural/bff/), [aggregation](http://www.enterpriseintegrationpatterns.com/patterns/messaging/Aggregator.html) and orchestration services.

## Usage
Create reusable middleware functions by calling the configuration functions provided by `@reducto/services`.
### service
Make a single web API call utilizing [request](https://www.npmjs.com/package/request) module:
```js
const app = require('express')();
const { service } = require('@reducto/services');
const getResource = service({
  uri: 'http://example.com/api/myresource',
  method: 'GET',
  json: true
});

app.get('/simple/return', getResource, (req, res) => res.json(res.locals));
app.get('/do/something/interesting', getResource, (req, res) => {
  // do something interesting with response data
  // NOTE: all response data is stored at res.locals
});

// more express stuff here
```
### batch
Make multiple, asynchronous `service` calls:
```js
const app = require('express')();
const { batch } = require('@reducto/services');
const getAllResources = batch({
  services: [
    {
      uri: 'http://localhost/resource/1',
      json: true
    },
    {
      uri: 'http://localhost/resource/2',
      json: true
    },
    {
      uri: 'http://localhost/resource/3',
      json: true
    }
  ]
});

app.get('/someurl', getAllResources, (req, res) => res.json(res.locals));

// more express stuff here
```
### iterator
Make `batch` service calls based on a list of context objects. These lists can be the result of other service calls, or anything located in `res.locals`:
```js
const app = require('express')();
const { iterator, service } = require('@reducto/services');
const getResourceIds = service({
  // lets pretend this API returns a list of "myresource" id's as {"ids": [...]}
  uri: 'http://example.com/api/myresources',
  method: 'GET',
  json: true
});
const getResourceDetails = iterator({
  key: 'ids',
  service: {
    uri: 'http://example.com/api/myresources/{id}',
    json: true
  }
});

app.get('/resources', getResourceIds, getResourceDetails, (req, res) => res.json(res.locals));

// more express stuff here
```

## API
### service
*dataPath* - the root key path of the returned data

*dataKey* - the key where service response data will be stored in `res.locals`

*context* - the data to use when building the service request parameters

**NOTE:** see [request](https://www.npmjs.com/package/request) module for HTTP request options.

### batch
*services* - a list of `service` configurations

### iterator
*key* - the location of the list of context objects in `res.locals`

*service* - the service configuration to use for batch request(will utilize context objects specified by *key*)

## Installation
Requires node `v4` or greater.
```shell
$ npm i -S @reducto/services
```

## License
[MIT](LICENSE)
npm package: @reductstore/reduct-query-monaco
Description: Monaco completion and helpers for ReductStore query language
Author: AnthonyCvn
Latest version: 1.0.1

# reduct-query-monaco

Monaco Editor completion provider and helpers for the [ReductStore](https://www.reduct.store/) query language.

[![npm version](https://img.shields.io/npm/v/@reductstore/reduct-query-monaco.svg)](https://www.npmjs.com/package/@reductstore/reduct-query-monaco)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

## Installation

```bash
npm install @reductstore/reduct-query-monaco monaco-editor
```

## Usage

### Register the completion provider

```typescript
import * as monaco from 'monaco-editor';
import { getCompletionProvider } from '@reductstore/reduct-query-monaco';

// Register the language (if not using JSON)
monaco.languages.register({ id: 'reduct-query' });

// Register the completion provider
monaco.languages.registerCompletionItemProvider('reduct-query', getCompletionProvider());
```

### Use with Monaco Editor

```typescript
const editor = monaco.editor.create(document.getElementById('editor'), {
  value: '',
  language: 'reduct-query',
  automaticLayout: true,
});
```

## Exports

### `getCompletionProvider()`

Returns a Monaco completion provider with intelligent autocomplete for:

- Query examples (at document start)
- Operators (`$eq`, `$gt`, `$and`, `$or`, etc.)
- Directives (`#ctx_before`, `#select_labels`, etc.)
- Label references (`&label`)

### Operators

| Export                 | Description                                     |
| ---------------------- | ----------------------------------------------- |
| `COMPARISON_OPERATORS` | `$eq`, `$ne`, `$gt`, `$gte`, `$lt`, `$lte`      |
| `LOGICAL_OPERATORS`    | `$and`, `$or`, `$not`, `$in`, `$nin`, etc.      |
| `STRING_OPERATORS`     | `$contains`, `$starts_with`, `$ends_with`       |
| `ARITHMETIC_OPERATORS` | `$add`, `$sub`, `$mult`, `$div`, `$rem`, `$abs` |
| `MISC_OPERATORS`       | `$has`, `$cast`, `$ref`, `$timestamp`           |

### Other

| Export       | Description                                        |
| ------------ | -------------------------------------------------- |
| `DIRECTIVES` | Query directives like `#ctx_before`, `#batch_size` |
| `EXAMPLES`   | Complete query examples for quick starts           |

## Example Query

```json
{
  "&label": { "$eq": "value" },
  "$limit": 100,
  "#ctx_before": 5
}
```

## License

MIT
npm package: @redux-actionlang/sagas
Description: Quickly Create Sagas to transform your actions to other actions and more.
Latest version: 0.1.0-beta-10

## @redux-actionlang/sagas

Quickly Create Sagas to transform your actions to other actions and more.

### The Setup

```js
import SagaGenerator from '@redux-actionlang/sagas';
import SagaMiddleware from 'redux-saga';

const SagaGenerator = new SagaGenerator();

createSagaMiddleware().run(SagaGenerator.create());
```

### The Usage

##### _filter_ operator

- Used to filter some actions so that you can apply map to filtered actions only.
- Every Action will still go through reducer.

```js
SagaGenerator.filter(action => action.type === 'MY_TYPE');
```

##### _map_ operator

- Apply a function on every action or every filtered action if filtered is used before.

```js
SagaGenerator.map((action, { put }) => action);
```

##### _every_ operator

- Used to filter a particular action so that you can apply map to that action only.

```js
SagaGenerator.every('LOG').map(action => console.log(action));
```


##### _mapState_ operator

- Injects state to your map chain.

```js
SagaGenerator.every('LOG').mapState(state => action => console.log(state.list, action));
```

##### _create_

- Create a saga to be used in Saga Middleware.

```js
SagaGenerator.create();
```

### Examples

- A Simple Logger

Will log every action dispatched to the reducer.

```js
SagaGenerator
.map(action => console.log(action))
.create();
```

- Dispatch an action in response to another action.

```js
SagaGenerator
.filter(action => action.type === 'MY_TYPE')
.map((action, { put }) => put('YOUR_TYPE'))
.create();
```