webpacker-electron 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd1b3ce5cdf3fd4c3a67193f3f98947276c5fd19b90426515506b8025a4f1101
4
- data.tar.gz: 99fd37166048518ffc56e8e9160d1c5e37bef448569dc8b2988bc42d17cd5f7e
3
+ metadata.gz: 35d866a5558ecd6a287aea42d5829faf54cd6bf552ed59d48765550091ea01f7
4
+ data.tar.gz: 1d25747eec1adbffc3d8bd59b5776cb59a4354defadd81f39584f3acec95aad5
5
5
  SHA512:
6
- metadata.gz: c303a7eca123417fdc13d4493495172f20daa30dbcbbee2c5051e313b134c2f503a77754d85a9ae559ac741d72b56f9458e1b90a0d8797613ea3fbe21ed75880
7
- data.tar.gz: 3615f9accc8c98272a66ca9e2456c8742ba07d91f837218a8f25c86a5a4b182ba88e9ec970784c1dbe10dfd2e27c41e23624e87a52e428ba5322fe2e968a861e
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.delete("application");
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
  });
@@ -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 electron-builder electron-notarize electron-devtools-installer @babel/register dotenv dotenv-webpack html-webpack-plugin@4.5.1 concurrently cross-env yaml"
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
@@ -1,5 +1,5 @@
1
1
  module Webpacker
2
2
  module Electron
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
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.3
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-12 00:00:00.000000000 Z
11
+ date: 2021-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails