command to compile a project in js

Issue #140 resolved
0r0 created an issue

Is it possible to compile a project with multiple .pas files in a single .js ??

tanks

Comments (4)

  1. Eric Grange repo owner

    You can have multiple ".pas" files (Pascal units) in a projet through the "uses" clause. Or are you after something else ?

  2. 0r0 reporter

    I would like to compile a project into a single .js file in order to run directly in the browser. example

    project.pas

    use client, view;

    Client.pas

    unit Client;   ....

    View.pas

    unit View;   ....

    What command can I use to compile all .pas in a single .js file ??

    example:

    dwscriptBuilder project.pas project.js

    in this example DwScriptbuilder copies project.pas and its dependencies into a single file named project.js

    The project.js file is used in an html file.

    Understood ?

    Another question, is there a framework with components to use with DWScript?

    What is the best forum for me to keep up to date?

    Thank you very much.

  3. Eric Grange repo owner

    There is currently no command-line utility in the repository for what you are describing, however the HttpSys2WebServer demo can do that, but served straight to a browser (you can use it as a starting example). For that main project should be named "project.pas.js", it is the extension used for Pascal projects compiled to JS.

    At the moment the most advanced framework for the DWScript JS compiler is https://smartmobilestudio.com/

  4. Log in to comment