× Components and Libraries for Web Development, discussions, problems and suggestions

Question Package with Pas2JS

  • Toky Olivier Razanakotonarivo
  • Toky Olivier Razanakotonarivo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 weeks 11 hours ago - 4 weeks 10 hours ago #17069 by Toky Olivier Razanakotonarivo
Package with Pas2JS was created by Toky Olivier Razanakotonarivo
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
Last edit: 4 weeks 10 hours ago by Toky Olivier Razanakotonarivo.

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

  • Toky Olivier Razanakotonarivo
  • Toky Olivier Razanakotonarivo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 weeks 10 hours ago #17070 by Toky Olivier Razanakotonarivo
Replied by Toky Olivier Razanakotonarivo on topic Package with Pas2JS
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.

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
More
4 weeks 5 hours ago - 4 weeks 5 hours ago #17073 by Matis A.
Replied by Matis A. on topic Package with Pas2JS
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
Last edit: 4 weeks 5 hours ago by Matis A..

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