# @frontkom/g-editor

> A minimalist version of Gutenberg's editor. Ideal for testing custom blocks.

Latest version **1.6.0** (published 2020-07-14) · 0 weekly downloads

## Install

```sh
npm install @frontkom/g-editor
pnpm add @frontkom/g-editor
yarn add @frontkom/g-editor
bun add @frontkom/g-editor
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.6.0 |
| Published | 2020-07-14 |
| First published | 2018-10-17 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 50 |
| Unpacked size | 36.3 MB |
| Known vulnerabilities | 0 (+9 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 197 |
| Author | Frontkom |
| Maintainers | ajotka, eliocro, fjosef, fragje, marcofernandes, netkata-dev, perandre, pikpok, sofiasousa, vlad00777 |

## Links

- npm: https://www.npmjs.com/package/@frontkom/g-editor
- Repository: https://github.com/front/g-editor
- Homepage: https://github.com/front/g-editor#readme
- Issues: https://github.com/front/g-editor/issues
- npm.io page: https://npm.io/package/@frontkom/g-editor

## Dependencies (50)

- [bfj](https://npm.io/package/bfj.md) 6.1.1
- [jest](https://npm.io/package/jest.md) ^25.1.0
- [chalk](https://npm.io/package/chalk.md) 2.4.2
- [dotenv](https://npm.io/package/dotenv.md) 6.2.0
- [eslint](https://npm.io/package/eslint.md) 5.12.0
- [resolve](https://npm.io/package/resolve.md) 1.9.0
- [webpack](https://npm.io/package/webpack.md) 4.28.4
- [fs-extra](https://npm.io/package/fs-extra.md) 7.0.1
- [node-sass](https://npm.io/package/node-sass.md) ^4.14.1
- [babel-core](https://npm.io/package/babel-core.md) 7.0.0-bridge.0
- [babel-jest](https://npm.io/package/babel-jest.md) ^25.1.0
- [css-loader](https://npm.io/package/css-loader.md) 1.0.0
- [url-loader](https://npm.io/package/url-loader.md) 1.1.2
- [@babel/core](https://npm.io/package/@babel/core.md) 7.2.2
- [file-loader](https://npm.io/package/file-loader.md) 2.0.0
- [sass-loader](https://npm.io/package/sass-loader.md) 7.1.0
- [webpack-cli](https://npm.io/package/webpack-cli.md) ^3.1.2
- [babel-eslint](https://npm.io/package/babel-eslint.md) 9.0.0
- [babel-loader](https://npm.io/package/babel-loader.md) 8.0.5
- [jest-resolve](https://npm.io/package/jest-resolve.md) 23.6.0
- [style-loader](https://npm.io/package/style-loader.md) 0.23.1
- [@svgr/webpack](https://npm.io/package/@svgr/webpack.md) 2.4.1
- [dotenv-expand](https://npm.io/package/dotenv-expand.md) 4.2.0
- [eslint-loader](https://npm.io/package/eslint-loader.md) 2.1.1
- [postcss-loader](https://npm.io/package/postcss-loader.md) 3.0.0
- [react-dev-utils](https://npm.io/package/react-dev-utils.md) ^6.0.5
- [oembed-providers](https://npm.io/package/oembed-providers.md) ^1.0.20170414
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^4.3.1
- [jest-pnp-resolver](https://npm.io/package/jest-pnp-resolver.md) 1.0.2
- [identity-obj-proxy](https://npm.io/package/identity-obj-proxy.md) 3.0.0
- [pnp-webpack-plugin](https://npm.io/package/pnp-webpack-plugin.md) 1.2.1
- [postcss-preset-env](https://npm.io/package/postcss-preset-env.md) 6.5.0
- [react-app-polyfill](https://npm.io/package/react-app-polyfill.md) ^0.1.3
- [webpack-dev-server](https://npm.io/package/webpack-dev-server.md) ^3.11.0
- [eslint-plugin-react](https://npm.io/package/eslint-plugin-react.md) 7.12.3
- [html-webpack-plugin](https://npm.io/package/html-webpack-plugin.md) 4.0.0-alpha.2
- [postcss-safe-parser](https://npm.io/package/postcss-safe-parser.md) 4.0.1
- [eslint-plugin-import](https://npm.io/package/eslint-plugin-import.md) 2.14.0
- [terser-webpack-plugin](https://npm.io/package/terser-webpack-plugin.md) ^2.3.4
- [babel-preset-react-app](https://npm.io/package/babel-preset-react-app.md) ^5.0.4
- [eslint-plugin-flowtype](https://npm.io/package/eslint-plugin-flowtype.md) 2.50.1
- [eslint-plugin-jsx-a11y](https://npm.io/package/eslint-plugin-jsx-a11y.md) 6.1.2
- [postcss-flexbugs-fixes](https://npm.io/package/postcss-flexbugs-fixes.md) 4.1.0
- [workbox-webpack-plugin](https://npm.io/package/workbox-webpack-plugin.md) 3.6.3
- [eslint-config-react-app](https://npm.io/package/eslint-config-react-app.md) ^3.0.4
- [mini-css-extract-plugin](https://npm.io/package/mini-css-extract-plugin.md) 0.4.3
- [webpack-manifest-plugin](https://npm.io/package/webpack-manifest-plugin.md) 2.0.4
- [babel-plugin-named-asset-import](https://npm.io/package/babel-plugin-named-asset-import.md) ^0.2.2
- [optimize-css-assets-webpack-plugin](https://npm.io/package/optimize-css-assets-webpack-plugin.md) 5.0.1
- [case-sensitive-paths-webpack-plugin](https://npm.io/package/case-sensitive-paths-webpack-plugin.md) 2.1.2

## Recent versions

- 1.6.0 (latest) — 2020-07-14
- 0.4.0-rc.5 (beta) — 2019-02-22
- 1.5.0 — 2020-04-10
- 1.4.3 — 2020-04-07
- 1.4.2 — 2020-02-12
- 1.4.1 — 2019-10-14
- 1.4.0 — 2019-10-07
- 1.3.0 — 2019-07-17
- 1.2.0 — 2019-05-27
- 1.1.1 — 2019-05-16
- 1.1.0 — 2019-05-16
- 1.0.1 — 2019-05-15
- 1.0.0 — 2019-05-15
- 0.4.0 — 2019-02-22
- 0.4.0-rc.4 — 2019-02-21
- … 14 more at https://npm.io/package/@frontkom/g-editor/versions

## README

# g-editor

A minimalist version of Gutenberg's editor. Ideal for checking your custom blocks.

``` bash
npm install @frontkom/g-editor
npm start
```

You can include your custom block by passing its path in `BLOCK_DIR` env var.

``` bash
BLOCK_DIR=\absolute\path\to\your-custom-block npm start
```

The editor expects that your custom block has an `index.js` and a `style.css` in its `build` folder.

```
your-custom-block
  ├── ...
  ├── build
  │  ├── index.js
  │  └── style.css
  └── ...
```


## g-editor and Gutenberg-js

Since version 1.0, `g-editor` no longer depends on `Gutenberg-js`.
It now includes the source `Gutenberg` packages directly.

## Current Gutenberg version

[v8.5.1](https://github.com/WordPress/gutenberg/releases/tag/v8.5.1)

### Better updates

To update Gutenberg packages, run
```
npm run g-update
```

It will pull to your local machine from the WordPress repo the Gutenberg packages assets ready to use. After copy those assets to `public/vendor/gutenberg`, the script will generate `g-scripts.txt` and `g-styles.txt` files with all the depencies the editor needs to run.


## Assets

The sample videos are a courtesy of [Pixabay](https://pixabay.com/):

  * [https://pixabay.com/en/videos/cute-cat-funny-cat-kitten-domestic-3092/](https://pixabay.com/en/videos/cute-cat-funny-cat-kitten-domestic-3092/)
  * [https://pixabay.com/en/videos/cat-cat-thailand-small-indian-civet-1297/](https://pixabay.com/en/videos/cat-cat-thailand-small-indian-civet-1297/)

---
_Source: https://npm.io/package/@frontkom/g-editor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
