Answer the question
In order to leave comments, you need to log in
How to compile the project on the server and send the finished application to the user or via ftp?
There is a form builder that, on node + js + react, collects design settings, fields and functions from the user through a graph interface.
How do I organize the compilation of files
from ReactaJs to js
from React native to applications ?
Actually, the question is to run the collector on the ubuntu server and force it to collect the necessary files, and then organize the sending to the user. How?
Answer the question
In order to leave comments, you need to log in
Considering the comment to the answer above:
To run other applications from a node, there is a built-in child_process
module
But in your case, I think it would be better to run webpack in the current process using its api and manage the build according to runtime needs
Also, if you don’t want to litter the disk, you can force webpack to write the assembly to memory using the memory-fs module , more details here
Compiling is not about that. We have an assembly here.
1) Webpack assembles the project - to write the correct config, I advise you to use the documentation, code examples on github for various boilerplates and Ilya Kantor's screencast.
2) Using Gulp, start building the project and deploy it to ftp with the next task.
In which direction to dig - I said, no one will collect configs for you here for free, unless someone has ready-made solutions.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question