Giter Site home page Giter Site logo

Comments (11)

GrayRabbit-FE avatar GrayRabbit-FE commented on August 31, 2024 2

Yes, I am programing electron first. But with business growing, I find the necessity to make an web version product, so that's why I have this requirement. But I finally change some code and delete some electron related code(they are useless on web) then simply use

npx next build ./renderer

to build it. And it seems works well currently.

from nextron.

bm777 avatar bm777 commented on August 31, 2024 1

I can understand the pain, maybe, we can work on a tool to move logic from IPC com to the empty nextjs project.

To be honest, if we have to think about the relevancy of the topic, it seems fair to work on the opposite direction: moving from nextjs project to a nextron project or start a nextron app from a nextjs app.

from nextron.

bm777 avatar bm777 commented on August 31, 2024 1

@liosummer , I mean, you can still do this πŸ‘‡

Yes, I am programing electron first. But with business growing, I find the necessity to make an web version product, so that's why I have this requirement. But I finally change some code and delete some electron related code(they are useless on web) then simply use

npx next build ./renderer

to build it. And it seems works well currently.

from nextron.

bm777 avatar bm777 commented on August 31, 2024

Can you share any snip code so that we can help you?

from nextron.

GrayRabbit-FE avatar GrayRabbit-FE commented on August 31, 2024

it's a normal Nextron repo, the directory haven't been edited.
image
I know I can make a new next.js repo and copy file to new repo, but there are too many files and configurations. So I want to know if there is any command to export a next.js repo for browser end( a web app ).
thank you!!!!
(My English is bad, wish you can understand and I am willing to make further explanation for you if you don't understand! thanks again)

from nextron.

bm777 avatar bm777 commented on August 31, 2024

Hey, I understand what you mean now.
At this stage, you have developed a nextron app, and you would like to know how you could export it into next.js right?
To my knowledge, I don't have any command over doing that. But that could be cool to have.
If so, you can copy all your page and paste it in your new next.js project (with all your /api folder).

from nextron.

Psycokwet avatar Psycokwet commented on August 31, 2024

How could that work out ? I mean there is still electron code specific, like ipc communication and other stuff, how copy pasting in a next app could work ?

from nextron.

bm777 avatar bm777 commented on August 31, 2024

They are only logic right, you can rewrite your IPC communication code to the /api/your_method_file.js and it just works.

from nextron.

Psycokwet avatar Psycokwet commented on August 31, 2024

Oh yeah, but it's not simply copy and pasting, there is a bit more to it that's what I meant

So yeah, redoing config, and replacing electron native stuff in a new next js app

from nextron.

bm777 avatar bm777 commented on August 31, 2024

Done.

from nextron.

leocarsons avatar leocarsons commented on August 31, 2024

@bm777 When will this feature be available?

from nextron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.