Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .babelrc

This file was deleted.

2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

8 changes: 0 additions & 8 deletions .eslintrc

This file was deleted.

30 changes: 30 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Node.js Package

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ example/dist
*.DS_Store

example/
dist/
lib/
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,25 @@
# Electron WebView

[![Build Status](https://travis-ci.org/MarshallOfSound/react-electron-web-view.svg?branch=master)](https://travis-ci.org/MarshallOfSound/react-electron-web-view)
[![npm version](https://badge.fury.io/js/react-electron-web-view.svg)](https://www.npmjs.com/package/react-electron-web-view)
[![npm](https://img.shields.io/npm/dt/react-electron-web-view.svg?maxAge=2592000)](https://www.npmjs.com/package/react-electron-web-view)
[![license](https://img.shields.io/github/license/MarshallOfSound/react-electron-web-view.svg?maxAge=2592000)](https://github.com/MarshallOfSound/react-electron-web-view/blob/master/LICENSE)
![status](https://img.shields.io/badge/Status-%20Ready%20for%20Awesome-red.svg)
[![npm version](https://badge.fury.io/js/@luxbit%2Freact-electron-webview.svg)](https://badge.fury.io/js/@luxbit%2Freact-electron-webview)

__A simple wrapper of the Electron WebView element to allow it's magical props in React__


This repo is a fork of [react-electron-web-view](https://github.com/MarshallOfSound/react-electron-web-view)

## Installation

The easiest way to use react-electron-web-view is to install it from NPM and `require` or `import` it in your Electron application.
The easiest way to use react-electron-webview is to install it from NPM and `require` or `import` it in your Electron application.

You can also use the standalone build by including `dist/react-electron-web-view.js` in your page. If you use this, make sure you have already included React, and it is available as a global variable.

```
npm install react-electron-web-view --save
npm install @luxbit/react-electron-webview --save
```

Or for the hipsters out there

```
yarn add react-electron-web-view
yarn add @luxbit/react-electron-webview
```


Expand All @@ -32,7 +29,7 @@ All events and methods on the WebView element are proxied through react. You
find the documentation on these events and methods [here](https://www.electronjs.org/docs/api/webview-tag)

```
const WebView = require('react-electron-web-view');
const WebView = require('@luxbit/react-electron-webview');

<WebView src="https://www.google.com" />
```
Expand All @@ -54,9 +51,9 @@ that div to be a webview element. This hasn't been completely tested so make
sure it works for you.


## Development (`src`, `lib` and the build process)
## Development (`src`, `dist` and the build process)

**NOTE:** The source code for the component is in `src`. A transpiled CommonJS version (generated with Babel) is available in `lib` for use with node.js, browserify and webpack.
**NOTE:** The source code for the component is in `src`. A transpiled CommonJS version (generated with Babel) is available in `lib` for use with node.js, browserify and webpack.

## License

Expand Down
2 changes: 2 additions & 0 deletions dist/ElectronWebView.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/ElectronWebView.js.map

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions gulpfile.babel.js

This file was deleted.

Loading