Download Package and run first test

Contributors welcome!

Download the code and run the tests

Download the source code from the repository, and within the project folder run:

rake svelte_on_rails:create_contributor_configs_file

and define a generated_test_app_folder_path (required) for apps, generated for the testings.

For development of the npm package @csedl/svelte-on-rails (optional) please download the source code of the npm package and set local_npm_package_path on the config file to the path to the npm package on your local machine. This will cause the installer, to install the npm package from a local path instead from the npm registry.

Then run the tests and start contributing.

RUN THE FIRST TEST (!): Testing is complex here because of the design based on the installer test. On Problems, i always run the Installer > destroy and create rails app > FIRST TEST > [...] check if javascript works. If there are problems, open the generated app on a IDE and check errors there.

When this passes, all the others passing mostly.

At the end of the most tests it leaves the rails server running, so that you can see the result on localhost:3000.

NOTE: Theese tests are dependend on your environment, including the running ruby version! I am working on rvm. If you work on a different environment, some (not many) changes may be necessary. Thats your part :)

The current test cases including (among others):

create a completely new rails app, running the full installer and check if a hello World component is visible and javascript is working. run assets:precompile within a rails app and check if the gem does its precompiling too.


Copyright © 2025-2027 sedlmair.ch. Distributed by MIT license.