rubyjs-vite 1.0.0b → 1.0.0c

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: aea8b3a56de6a56a42441b2ff4b1dd674bd9c2d0fb575362ea41577f0451f94a
4
- data.tar.gz: e53b300f84563d99df1a379de6c1b2893dfe96587366415a3a50d5686317c42c
3
+ metadata.gz: 6c6a3a833d0c2f4ddf8aaeaf49c17759267a70e8b65440949955f6515e482eeb
4
+ data.tar.gz: 382a0ddb0bd764b2569b7f217a0db8979012667fad6accdb4a839391e76be852
5
5
  SHA512:
6
- metadata.gz: facec2d7bd59c7d634d63d9cc29536495105d9e75eac52208fd4dde3bd96fd165853200cf266645c0c623801e9cc8fc5435793f8c2fa7caecab4eb3eca6bec97
7
- data.tar.gz: a524d66c09b1d04d6a6f28403d62abb851c529cc3174e6c10ab1a58f8964e104ebd15849b64c3ba5ef6655a1c675f4062fdd3b9d93b4fd565c4c2d32484b1bcb
6
+ metadata.gz: 416fc09a65a430ea89f660b9095e47007cbf7bdf52f2361e03e26e32f86fa196880d17fe2d278ef68b4e4e42a836a893c7de03d4cdfeaeb1b54ac92c9389fe47
7
+ data.tar.gz: 79250e56ac7eeb2535922a9b003cceead5bdf114d18b5193f158f6a77aaaf3308d8ca32ca13c142ed02d418cde3ca016b941431ca60d9aa5bb9adea7176b435e
@@ -28,11 +28,14 @@ module RubyJS
28
28
  if is_done
29
29
  puts "\nDone. Now run:\n\n cd #{project}\n bin/server\n\n"
30
30
  else
31
+ wspaces = ' '*2
31
32
  puts "\nThe Vite library installation encountered an issue.\n" +
32
- "NPM is probably not installed on your machine.\n\n" +
33
+ "NodeJS is probably not installed on your machine.\n" +
33
34
  "Please rerun the Vite installation after installing NodeJS.\n" +
34
- "In your project, use the following command:\n\n" +
35
- "#{' '*2}npm install -D vite"
35
+ "Use these instructions:\n\n" +
36
+ "#{wspaces}cd #{project}\n" +
37
+ "#{wspaces}npm install -D vite\n" +
38
+ "#{wspaces}bin/server"
36
39
  end
37
40
  end
38
41
  end
@@ -1,3 +1,3 @@
1
1
  module RubyJS
2
- VERSION = "1.0.0b"
2
+ VERSION = "1.0.0c"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyjs-vite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0b
4
+ version: 1.0.0c
5
5
  platform: ruby
6
6
  authors:
7
7
  - Filip Vrba
@@ -9,56 +9,36 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2022-11-04 00:00:00.000000000 Z
12
- dependencies: []
13
- description: "# RubyJS Vite\nWeb applications may be made with the help of RubyJS
14
- Vite. The programmer can avoid using JS syntax, which is helpful. Everything is
15
- done automatically; all you have to do is start the server and build a project using
16
- scaffolding.\n\nWrite your code using the JS api and Ruby syntax, and the server
17
- will automatically translate it. It then stores it in a file with the extension
18
- \".js\". You will then be able to publish the project to [Vercel](https://vercel.com/)
19
- or directly to the [NPM package](https://www.npmjs.com/), and you will have a website
20
- that is written in the native JS language.\n\n### Content\n- [1 Installation](#1-installation)\n-
21
- [2 Usage](#2-usage)\n - [2.1 Scaffold](#21-scaffold)\n - [2.2 More parameters](#22-more-parameters)\n-
22
- [3 Development](#3-development)\n- [4 Unexpected errors](#4-unexpected-errors)\n
23
- \ - [4.1 Third-party libraries](#41-third-party-libraries)\n - [4.2 NPM](#42-npm)\n-
24
- [5 Examples](#5-examples)\n- [6 Contributors](#6-contributors)\n\n## 1 Installation\nThe
25
- executable application and libraries are installed using the ruby gem during installation.\n\n```bash\ngem
26
- install rubyjs-vite\n```\n\n## 2 Usage\nRubyJS Vite has a unique command that can
27
- be used at the terminal called **rjsv**.\n\n### 2.1 Scaffold\nThe **—create** parameter
28
- should be followed by the project name if you want to create your own project.\n\n*Use
29
- this command as an example, then follow the instructions the terminal gives you:*\n```bash\nrjsv
30
- --create hello\n```\n\n![rjsv-scaffold](./public/rjsv_scaffold.gif)\n\n### 2.2 More
31
- parameters\nIf you only need to convert files to *.js* format rather than build
32
- scaffolding.\nTherefore, there is an argument for this function called **-c** or
33
- **—compile**.\n\nYou must include an additional parameter called **-w** or **—watch**
34
- so that the compilation always happens after saving the *.rjs* file.\n\nOther choices
35
- include which directory will be searched for updated files and which directory will
36
- house all transformed code. The code can also be converted into the chosen EC level,
37
- with 2021 as the default level. Enter **rjsv -h** in the terminal for more details.\n\n*Example
38
- for compiling and tracking files:*\n```bash\nrjsv -c -w -s src/rjs -o src/js\n```\n\n![rjsv-compile-watch](./public/rjsv_cw.gif)\n\n##
39
- 3 Development\nLook in the *'lib'* folder if you want to edit this RubyJS Vite project.
40
- Everything you require for file transformation and change tracking is available.
41
- The console portion is under the *'app'* subdirectory. Everything that needs to
42
- be executed with various arguments is available here. \n\n*The following third-party
43
- libraries are employed:*\n- [ruby2js](https://rubygems.org/gems/ruby2js)\n- [listen](https://rubygems.org/gems/listen)\n\n##
44
- 4 Unexpected errors\nWhen using this utility, some problems could happen.\n\n###
45
- 4.1 Third-party libraries\nCertain library dependencies must be installed for the
46
- program to function as a whole. (The section on [development](#3-development) has
47
- more details regarding libraries.)\n\n*Use this command if the software indicates
48
- that the library was not found:*\n```bash\ngem install ruby2js &&\ngem install listen\n```\n\n###
49
- 4.2 NPM\nThe process of constructing a project could go wrong. This is because Vite
50
- is attempting to be installed using the NPM tool during the scaffolding phase. This
51
- indicates that your machine does not have NodeJS installed. [Installing it is necessary!](https://nodejs.org)
52
- Run a command in your project to install the Vite library after you've finished
53
- the installation.\n\n*Vite installation command:*\n```bash\nnpm install -D vite\n```\n\nYou
54
- can launch the server and begin developing your project after the installation has
55
- been successfully completed.\n\n*An order to launch the server:*\n```bash\nbin/server\n```\n\n##
56
- 5 Examples\nHere, I'll outline a few projects where RubyJS Vite was applied to alter
57
- code.\n\n- [adb2-weapon-rjs](https://github.com/filipvrba/adb2-weapon-rjs) - Here,
58
- a web application was built with scaffolding and uploaded to Vercel.\n- [suitescript-generator](https://github.com/filipvrba/suitescript-generator)
59
- - It is a console program that utilizes npm. Here, the file tracking and compilation
60
- command is employed. \n\n## 6 Contributors\n- [Filip Vrba](https://github.com/filipvrba)
61
- - creator and maintainer\n"
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ruby2js
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: listen
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.7'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.7'
41
+ description: 'To learn more, go to this page: https://github.com/filipvrba/ruby-js'
62
42
  email: filipvrbaxi@gmail.com
63
43
  executables:
64
44
  - rjsv