rubyjs-vite 1.0.9 → 1.1.1

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: e0b2016116295181ba263661d75c7ce1504ad6f5a337f883131aa8197796cf2b
4
- data.tar.gz: 25edbe2d222e38e490164fd14ce8bacf7652f361debbc1896c1021b9b76a42d2
3
+ metadata.gz: 23880da75b113de83f2e2fffa6bba17718f324e536a5d49dfb2a4521a1a7ccdf
4
+ data.tar.gz: b7564e09295463b135c0b64713e38c65bf27d71cc96f1b06248c3422011aa1f0
5
5
  SHA512:
6
- metadata.gz: 76c51e28fe9130e0fd4faa1ea65cf8e9276a9cc4e75ac321f20378953a8a442549e6c189477c9d39facc686684080521941f7853e53ea03677353e7fc0231ee4
7
- data.tar.gz: 11e9a89b0e11605a50f3f8b840319403739c4beee85a1188c725eddb69b113b8794de3f7a90411a957ce66699d5c41206bda687981d9ba97db74c6f7ac76c685
6
+ metadata.gz: 1094cf33f9ba36f5387c2911833019bdd9f2b80d88f8c2c546a71addfa1f114e31fc0a26798d716c57674488df800a9b34ebc4eedaa464ff38cd7a1d5cc04551
7
+ data.tar.gz: 7b73a8adf15cf3efca76d0172bc0221a09bd20f8d7b7c0eb68c57e8fd9e18ee3cd02a655e7cc26808451527c639818219204edd4d71a221595be23e32bb14b39
@@ -7,7 +7,12 @@ module RubyJS
7
7
  path_ao = File.join(Dir.pwd, project)
8
8
 
9
9
  puts "Scaffolding project in #{path_ao}..."
10
- FileUtils.cp_r path_as, path_ao
10
+ files = Dir.glob("#{path_as}/**/*", File::FNM_DOTMATCH).select { |f| File.file?(f) }
11
+ files.each do |pas|
12
+ pao = pas.sub(path_as, path_ao)
13
+ FileUtils.mkdir_p(File.dirname(pao))
14
+ FileUtils.cp(pas, pao)
15
+ end
11
16
 
12
17
  json_oc = JsonParser.new File.join(path_ao, "package.json")
13
18
  json_oc.parse :name, project.downcase
@@ -20,7 +25,7 @@ module RubyJS
20
25
  end
21
26
 
22
27
  def self.change_name_f path_ao
23
- paths_bin_ao = ["#{path_ao}/bin/watch", "#{path_ao}/bin/generate"]
28
+ paths_bin_ao = Dir.glob("#{path_ao}/bin/*")
24
29
  paths_bin_ao.each do |p|
25
30
  content = Helper.open(p)
26
31
  content_ch = content.sub("APP_NAME", Constants::APP_NAME)
@@ -1,3 +1,3 @@
1
1
  module RubyJS
2
- VERSION = "1.0.9"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -1,4 +1,7 @@
1
1
  #!/bin/bash
2
2
 
3
- . $(pwd)/bin/watch &
3
+ APP_NAME -c -w -s src/rjs -o src/.js &
4
4
  npm run dev
5
+
6
+ trap - SIGINT
7
+ kill $!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyjs-vite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filip Vrba
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-02 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby2js
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  requirements: []
91
- rubygems_version: 3.3.7
91
+ rubygems_version: 3.4.10
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: Converts the syntax of ruby into javascript.