sasjs / cli

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

syncFolder feature #1209

Closed allanbowe closed 2 years ago

allanbowe commented 2 years ago

We need the ability to add arbitrary content to the sasjsbuild folder (prior to build). The content could be mocked files (eg JS) or even SAS programs, for developers who wish to add content outside of the regular compile process.

The implementation will be a single attribute at both ROOT and TARGET level as follows:

"syncFolder": "project/location/myFolder",

{
  "$schema": "https://raw.githubusercontent.com/sasjs/utils/main/src/types/sasjsconfig-schema.json",
  "syncFolder": "project/location/myFolder",
  "defaultTarget": "server",
  "targets": [
    {
      "name": "sasjs",
      "serverUrl": "",
      "serverType": "SASJS",
      "syncFolder": "target/specificFolder"
    }
}

In this case only the contents of myFolder and specificFolder added to the sasjsbuild folder.

Tests should include:

The schema json should also be updated.

Note - this feature should work on ALL server types (SASJS, SAS9 and SASVIYA)

ghost commented 2 years ago

:tada: This issue has been resolved in version 3.15.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: