Welcome, Guest
Username: Password: Remember me
Components and Libraries for Web Development, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

Package with Pas2JS 2 years 5 months ago #17069

  • Toky Olivier Razanakotonarivo
  • Toky Olivier Razanakotonarivo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hello,
Can you tell please how to create new Package for Pas2JS (based on JsWebWidget components?).
Every time I create one, I cannot compile it.
I will create a Package with a new widgetset based on Boostrap and post it here when finished. 
I use CT 7.7 on Windows 10.

Best regards,
Toky

Please Log in or Create an account to join the conversation.

Last edit: by Toky Olivier Razanakotonarivo.

Package with Pas2JS 2 years 5 months ago #17070

  • Toky Olivier Razanakotonarivo
  • Toky Olivier Razanakotonarivo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Sorry, I put this question in a wrong Category, is it possible to move it to CT Web development Category please?

Thank you. 

Please Log in or Create an account to join the conversation.

Package with Pas2JS 2 years 5 months ago #17073

  • Matis A.
  • Matis A.'s Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 1106
  • Thank you received: 162
You must save your new Pas2JS pkg to a folder that is visible to Pas2JS Compiler.

By default only 
codetyphon/typhon/components/packages_js/*
folders are visible to Pas2JS
You can see this at Pas2JS Compiler config file:
codetyphon\fpc\fpc64\bin\x86_64-win64\pas2js.cnf


​​​​​​​-FuC:\codetyphon/fpcsrc/utils/pas2js/dist
-FuC:\codetyphon/typhon/components/packages_js/*

So you can:
a) save your new Pas2JS pkg in 
codetyphon/typhon/components/packages_js/*
folder for sample:
codetyphon/typhon/components/packages_js/js_mynewpkg

OR
b) save your new Pas2JS pkg in any folder you want, but
add the path to Pas2JS Compiler config file pas2js.cnf.
 
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..
  • Page:
  • 1