webpacker-electron 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35d866a5558ecd6a287aea42d5829faf54cd6bf552ed59d48765550091ea01f7
|
4
|
+
data.tar.gz: 1d25747eec1adbffc3d8bd59b5776cb59a4354defadd81f39584f3acec95aad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f24137197c421cf1a9bc635ddb1e3bf5b82333aa4836ad97f31d83ba6a8548ab8373f48f3addbcbc918317a31c83c86829727a9cb7b1bc58cd04d24629c5687
|
7
|
+
data.tar.gz: 50887596b444e0c192e8ff9f32121d091dc490f2adfcdd2755c3933d83847f53c77abc8af622180bfdf3c89c9bcb281c5b716c441271f49349ec0956480699e6
|
@@ -4,7 +4,11 @@ const path = require("path");
|
|
4
4
|
const { config } = require("@rails/webpacker");
|
5
5
|
const environment = require("../../environment");
|
6
6
|
|
7
|
-
environment.entry
|
7
|
+
Object.keys(environment.entry)
|
8
|
+
.filter((key) => !key.startsWith("electron"))
|
9
|
+
.forEach((entry) => {
|
10
|
+
environment.entry.delete(entry);
|
11
|
+
});
|
8
12
|
|
9
13
|
const electronConfig = {
|
10
14
|
target: "electron-main",
|
@@ -6,12 +6,6 @@ require("@babel/register")({
|
|
6
6
|
cwd: path.join(__dirname, "../.."),
|
7
7
|
overrides: [
|
8
8
|
{
|
9
|
-
test: path.resolve(
|
10
|
-
"./",
|
11
|
-
config.source_path,
|
12
|
-
config.source_entry_path,
|
13
|
-
"electron",
|
14
|
-
),
|
15
9
|
presets: [
|
16
10
|
[
|
17
11
|
"@babel/preset-env",
|
@@ -24,6 +18,12 @@ require("@babel/register")({
|
|
24
18
|
},
|
25
19
|
],
|
26
20
|
],
|
21
|
+
plugins: [
|
22
|
+
[
|
23
|
+
"module-resolver",
|
24
|
+
{ root: [path.join(__dirname, "../..", config.source_path)] },
|
25
|
+
],
|
26
|
+
],
|
27
27
|
},
|
28
28
|
],
|
29
29
|
});
|
data/lib/install/template.rb
CHANGED
@@ -39,9 +39,11 @@ if File.exists?(Rails.root.join(".gitignore"))
|
|
39
39
|
append_to_file Rails.root.join(".gitignore") do
|
40
40
|
<<~TEXT
|
41
41
|
|
42
|
+
|
42
43
|
# Electron
|
43
|
-
public/packs-electron
|
44
|
-
public/dist
|
44
|
+
/public/packs-electron
|
45
|
+
/public/dist
|
46
|
+
!/public/assets
|
45
47
|
|
46
48
|
TEXT
|
47
49
|
end
|
@@ -61,8 +63,8 @@ copy_file "#{__dir__}/public/electron.html", "public/electron.html"
|
|
61
63
|
|
62
64
|
say "Installing all Electron dependencies"
|
63
65
|
|
64
|
-
run "yarn add --dev electron
|
65
|
-
run "yarn add electron-updater electron-log electron-debug"
|
66
|
+
run "yarn add --dev electron-builder electron-notarize @babel/register babel-plugin-module-resolver dotenv dotenv-webpack html-webpack-plugin@4.5.1 concurrently cross-env yaml"
|
67
|
+
run "yarn add electron electron-devtools-installer electron-updater electron-log electron-debug"
|
66
68
|
run "yarn run electron-builder install-app-deps"
|
67
69
|
|
68
70
|
say "Webpacker now supports Electron 🎉", :green
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webpacker-electron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Able
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-02-
|
11
|
+
date: 2021-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|