MacFJA / svelte-adapter-neutralino

A SvelteKit adapter to generate a Neutralinojs application
MIT License
16 stars 2 forks source link

getting started #2

Closed eikaramba closed 2 years ago

eikaramba commented 2 years ago

this is really great! however beeing new to neutralino i wasn't able to directly make it work. i am using npm init svelte@next my-app then use the skeleton app and adapt my svelte.config.js file.

when doing npm run build i now get ENOENT: no such file or directory, open '.svelte-kit\neutralino\neutralino.config.json'

might be good to add some basic getting started steps to the readme?

MacFJA commented 2 years ago

It didn't work with the default values 🤔

I also see that you are on windows, maybe it's the issue.


For the Getting started, I don't have much to put in it, you just have to install the dependency, and use it in the svelte.config.js. You have few options to configure the result app, but nothing too complicated.


But you have an error, and not message to help you to figure out what the cause is, so definitely it miss something

eikaramba commented 2 years ago

thanks for the quick response. interesting to see that it should have worked. so i don't need to put thie neutralino.config.json file manually somewhere? you are right i am on windows, is there anything i can debug? maybe i am able to pinpoint the problem

MacFJA commented 2 years ago

I think I found the issue.

I use "raw" Unix command, so of course it don't work on Windows.

I will fix that, but I don't have a Windows to test it

eikaramba commented 2 years ago

i also have found out something. once i create the .svelte-kit/neutralino folder manually it works ;)

mhm okay strange, there is no /build folder directly in the root folder grafik i found the exe file however under .svelte-kit\neutralino\dist\Svelte Kit

MacFJA commented 2 years ago

Yes, probably for the same reason.

The lines that I have to change are: https://github.com/MacFJA/svelte-adapter-neutralino/blob/ecde7d7c8e2fc178f3dd4cd49a0c5c0723481bd6/index.js#L59-L60 https://github.com/MacFJA/svelte-adapter-neutralino/blob/ecde7d7c8e2fc178f3dd4cd49a0c5c0723481bd6/index.js#L116-L117

The cp don't exist on Windows, I have to change to something else

MacFJA commented 2 years ago

But in the mean time, the built application is in .svelte-kit\neutralino\dist

MacFJA commented 2 years ago

@eikaramba I just push the version 0.1.1. Can you try again ?

eikaramba commented 2 years ago

it works now :)