- Clone this repo or just download it, you can change the folder name after you downloaded
- OmniPascal - Open Preview
- Access the project folder (root of project folder) from command line
- Run the setup.sh script with
./scripts/setup.sh - If all goes well, it'll download pas2js to your
$HOME/.local/share/applications/folder - The dev and dist scripts are ready to use this folder structure
- Access the project folder (root of project folder) from command line
- Run the setup.bat script from
.\scripts\setup.bat - If all goes well, it'll download pas2js to your
%LocalAppData%folder - The dev and dist scripts are ready to use this folder structure
- Open project folder with VSCode (assuming you have VSCode installed)
- Install extension OmniPascal
- Open the terminal inside VSCode
- On Linux compile dev with
./scripts/buildDev.sh - On Windows compile dev with
.\scripts\buildDev.bat - Access dev project in your browser on address
http://localhost:8080 - Check your browser console to see if the project works
- CTRL+C on VScode terminal to stop the server
- Open terminal inside VScode
- On Linux compile with
./scripts/buildDist.sh - On Windows compile with
.\scripts\buildDist.bat - Access project on
distfolder and upload to your server
- Copy
public_html,srcandìndex.htmlfrom inside the exemple you want to compile on top of the mainpublic_html,srcandìndex.htmloverwriting them. - Build the project
- Yes! Altho you might need to edit the build scripts - they are all commented and easy to understand.
- In case you are developing a backend app with Pas2JS, you'll need to have NodeJS or Bun in your system.