open-index/open-npm huggingface dataset:
npm package: @paulkre/gatsby-plugin-i18next
Description: Translate your Gatsby site into multiple languages
Author: Paul Kretschel
Latest version: 3.0.0

# @paulkre/gatsby-plugin-i18next

Translate your Gatsby site into multiple languages.

This plugin was created for personal projects. Most of the code was copied from [gatsby-plugin-react-i18next](https://github.com/microapps/gatsby-plugin-react-i18next).
npm package: @paulkre/gatsby-transformer-svg
Description: Inline and optimize SVG's from your GraphQL data source
Author: Paul Kretschel
Latest version: 1.1.0

# @paulkre/gatsby-transformer-svg

Inline and optimize SVG's from your GraphQL data source

## Installation

```sh
yarn add @paulkre/gatsby-transformer-svg
```

## Usage

### gatsby-config.js

```js
module.exports = {
  plugins: ["@paulkre/gatsby-transformer-svg"],
};
```

Optionally, you can also override the [SVGO options](https://github.com/svg/svgo#configuration) which are being used internally to optimize the `.svg` files:

```js
module.exports = {
  plugins: [
    {
      resolve: "@paulkre/gatsby-transformer-svg",
      options: {
        svgo: {
          multipass: true,
          floatPrecision: 2,
          plugins: [
            // ...
          ],
        },
      },
    },
  ],
};
```

### GraphQL Query

```graphql
file {
  childSvg {
    content {
      data
      width
      height
    }
  }
}
```

### Rendering

```jsx
import React from "react";

export default function Image({ file }) {
  if (file?.childSvg?.content) {
    return (
      <div dangerouslySetInnerHTML={{ __html: file?.childSvg?.content.data }} />
    );
  }
}
```
npm package: @paulkre/wpdeploy
Description: CLI tool for deploying WordPress themes/plugins via HTTP
Author: Paul Kretschel
Latest version: 1.0.3

# @paulkre/wpdeploy

`wpdeploy` is a command line tool for deploying WordPress themes and plugins via HTTP.

## Installation

```bash
npm install --global @paulkre/wpdeploy
```

## Usage

```bash
wpdeploy --type <theme|plugin> \
  --url https://example.com \
  -u <user> -p <password> \
  plugin-or-theme.zip
```
npm package: @paulkre/wpdev
Description: A library for developing modern WordPress themes
Author: Paul Kretschel
Latest version: 3.0.0

# wpdev

A library for developing modern WordPress themes. It contains both PHP and JavaScript code, so it is necessary to utilize two different package managers. [Composer](https://getcomposer.org/) is used for PHP and [NPM](https://npmjs.com) for JavaScript.

This library is built on top of [Wpack.io](https://wpack.io/), which is a bundling tool that provides an easy-to-use set of tools to develop WordPress themes with the power of [webpack](https://webpack.js.org/).
The library adds some functionality to Wpack.io to allow a component based development approach, like the one seen in many popular front end frameworks like [React](https://reactjs.org/) or [Vue.js](https://vuejs.org/).
The approach let's you easily split up your front end code into components which will only be sent to the client if they are actually displayed on the page the client is currently viewing.

In order to give you more power over the data structures your site is based upon, this library uses the pro version of the plugin [Advanced Custom Fields](https://www.advancedcustomfields.com/) (provided it is installed).
With the help of this plugin's input components wpdev allows you to define data schemas for custom post types and single pages.

## Installation

PHP:

```bash
composer require paulkre/wpdev
```

JavaScript:

```bash
npm install @paulkre/wpdev
```