opal-webpack-loader 0.8.3 → 0.8.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e38eb7715652124bd768935c886cf8eac35e9cba389c331a5cdedb02309da6c
|
4
|
+
data.tar.gz: 1ee22be3cbc82393fa4c96bfbb46f03e4fc10832e3d3585994a2d8a5f35a7d20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92447360d5f475c9d914b508d35f1deb4add5ac8b94d253cc55c8821a933855644f5c2b939660beaa8040b4c31abc338b1a76df168df0d1da5221f999c7365c7
|
7
|
+
data.tar.gz: 7fe89a6a56545d637bda8174b0ae8fef1e0843ad6543b1ead6f2c16dc2b77f5ac04a94a1f01b8688a0b998e2ac01a75f2539989a1066a1053a01740ba2023d68
|
@@ -43,10 +43,11 @@ module OpalWebpackLoader
|
|
43
43
|
@webpack_config_directory = 'webpack'
|
44
44
|
create_directory(@webpack_config_directory)
|
45
45
|
create_directory(@asset_output_directory)
|
46
|
+
FileUtils.touch(File.join(@asset_output_directory, '.keep'))
|
46
47
|
install_webpack_config
|
47
48
|
install_gitignore
|
48
49
|
create_file_from_template('initializer.rb.erb', File.join('owl_init.rb'), { opal_directory: @opal_directory })
|
49
|
-
add_gem
|
50
|
+
# add_gem
|
50
51
|
end
|
51
52
|
|
52
53
|
desc "flat", "Install owl configuration into a existing project with a flat structure, execute from the projects root directory."
|
@@ -192,6 +193,7 @@ module OpalWebpackLoader
|
|
192
193
|
create_directory(@js_entrypoints_directory)
|
193
194
|
create_directory(@opal_directory)
|
194
195
|
create_directory(@asset_output_directory)
|
196
|
+
FileUtils.touch(File.join(@asset_output_directory, '.gitkeep'))
|
195
197
|
create_directory(@styles_directory)
|
196
198
|
end
|
197
199
|
|
@@ -55,7 +55,7 @@ module OpalWebpackLoader
|
|
55
55
|
end
|
56
56
|
cache_obj = { 'opal_load_paths' => load_path_lines, 'opal_load_path_entries' => load_path_entries }
|
57
57
|
Dir.mkdir(OpalWebpackLoader::CompileServer::OWL_CACHE_DIR) unless Dir.exist?(OpalWebpackLoader::CompileServer::OWL_CACHE_DIR)
|
58
|
-
File.write(OpalWebpackLoader::CompileServer::OWL_LP_CACHE, Oj.dump(cache_obj, mode: :strict))
|
58
|
+
File.write(OpalWebpackLoader::CompileServer::OWL_LP_CACHE, Oj.dump(cache_obj, mode: :strict, indent: 2))
|
59
59
|
load_path_lines
|
60
60
|
else
|
61
61
|
raise 'Error getting load paths!'
|
data/readme.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
|
1
|
+
<h1 align="center">
|
2
|
+
<img src="https://raw.githubusercontent.com/isomorfeus/opal-webpack-loader/master/docs/owl.png"
|
3
|
+
align="center" title="Opal logo by Elia Schito combined with Webpack Logo" width="111" height="125" />
|
4
|
+
<br/>
|
5
|
+
opal-webpack-loader<br/>
|
6
|
+
<img src="https://img.shields.io/badge/Opal-Ruby%20💛%20JavaScript%20💛%20Webpack-yellow.svg?logo=ruby&style=social&logoColor=777"/>
|
7
|
+
</h1>
|
8
|
+
|
2
9
|
Bundle assets with webpack, resolve and compile opal ruby files and import them in the bundle, without sprockets or the webpacker gem
|
3
10
|
(but can be used with both of them too).
|
4
11
|
Includes a loader and resolver plugin for webpack.
|
@@ -41,6 +48,11 @@ Intel® Core™ i7-7700HQ CPU @ 2.80GHz × 8, with 8 workers in around 1850ms
|
|
41
48
|
|
42
49
|
`gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_string'`
|
43
50
|
|
51
|
+
- [PR#1976](https://github.com/opal/opal/pull/1976), (experimental) implementing ES6 modules and changes for 'strict' mode,
|
52
|
+
based on Opal master 1.1.0 using javascript string primitives and providing nice features like `require_lazy 'my_module'`
|
53
|
+
|
54
|
+
`gem 'opal', github: 'janbiedermann/opal', branch: 'es6_modules_1_1'`
|
55
|
+
|
44
56
|
- if you have the webpacker gem installed somewhere, it should be a version supporting webpack 4
|
45
57
|
- ruby, version 2.5 or higher recommended
|
46
58
|
- bundler, latest version recommended
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-webpack-loader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Biedermann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|