sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

Bug: services/files from react-seed-app copied incorrectly during compile/build/deploy #1242

Closed TeMeta closed 2 years ago

TeMeta commented 2 years ago

added a simple Python test program aaaaa.py to sasjs/services/files and ran sasjs cbd.

Instead of copying the python program it decided to put the content of upload.sas into both files inside sasjsbuild instead image

allanbowe commented 2 years ago

Yes - that is a bug! However we don't support compilation yet for python / JS programs.

Instead, any python / JS content should be added in the syncFolder property.

Just add this to your sasjs/sasjsconfig.json:

{
  "$schema": "https://cli.sasjs.io/sasjsconfig-schema.json",
  "syncFolder": "sasjs/mystaticfolder",
  "targets": [

Then, any content under sasjs/mystaticfolder will be uploaded without modification.

TeMeta commented 2 years ago

Thanks @YuryShkoda, closing ticket. I realised that compiled version of services appended them in order for dependencies. The Python content was appended to the end of that file. Thanks for the clarification!