opal-webpack-loader 0.8.3 → 0.8.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: a6476d6f3c8ab61e7883e7f6a7e6ec11c4a69be908dd3a88efd11482d78e7764
4
- data.tar.gz: f741336673d35391dbcde48684d0165b0cf1312a30013d71605058a30e5724b2
3
+ metadata.gz: 9e38eb7715652124bd768935c886cf8eac35e9cba389c331a5cdedb02309da6c
4
+ data.tar.gz: 1ee22be3cbc82393fa4c96bfbb46f03e4fc10832e3d3585994a2d8a5f35a7d20
5
5
  SHA512:
6
- metadata.gz: 7e7c5f101b6e053326dc5c4badef25e871104ab686219cf6abe312504d52f4388e195ad24016fc6b2323a204493517bb64b54946d7d1728de71c1b4073eb8b70
7
- data.tar.gz: 460f918145a5a78bea6c20a6149dffe9d69b6c3986f35f68fea1cbae57e5b9251c4fbfc8d79c616e07e99bee1188d1799c079996eb615bac44d759805f9f58c0
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!'
@@ -3,7 +3,7 @@
3
3
  // import application.js
4
4
  import './application.js';
5
5
 
6
- // space additional modules for debugging or helper code
6
+ // space for additional modules for debugging or helper code
7
7
 
8
8
  // allow for hot reloading
9
9
  if (module.hot) { module.hot.accept(); }
@@ -1,3 +1,3 @@
1
1
  module OpalWebpackLoader
2
- VERSION="0.8.3"
2
+ VERSION="0.8.4"
3
3
  end
data/readme.md CHANGED
@@ -1,4 +1,11 @@
1
- # opal-webpack-loader
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.3
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-19 00:00:00.000000000 Z
11
+ date: 2019-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal