N
N
Ninja Mate2016-09-17 20:40:26
JavaScript
Ninja Mate, 2016-09-17 20:40:26

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

2 answer(s)
D
Dmitry Belyaev, 2016-09-27
@victorzadorozhnyy

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

A
Amazing-Space-Invader, 2016-09-18
@Amazing-Space-Invader

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 question

Ask a Question

731 491 924 answers to any question