sasjs / cli

Command line interface for creating, compiling, and building SAS® projects

Home Page:https://cli.sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

improvements to `sasjs init`

allanbowe opened this issue · comments

I noticed a few issues when running sasjs init in an existing project today:

  1. The existing package.json was destroyed, rather than updated
  2. The sasjs/sasjsconfig.json file was very large (should be minimal)
  3. The .gitignore contained an unnecessary LF

image

About the sasjs/sasjsconfig.json file - ideally it would look like the below:

{
  "$schema": "https://cli.sasjs.io/sasjsconfig-schema.json",
  "macroFolders": [
    "sasjs/macros"
  ],
  "defaultTarget": "mytarget",
  "targets": [
    {
      "name": "mytarget",
      "serverType": "SASJS",
      "serverUrl": " ",
      "appLoc": "/Public/apps/myapp"
    }
  ]
}

Since adding the schema, it's not necessary to add example configs as we have them on auto-complete.

via Hubstaff
User: Sabir Hassan

Project: SASjs cli - https://app.hubstaff.com/projects/2310875
Date Range: 01/05/23 - 01/06/23
Work session total: 4:31:13
Billable: Yes

Grand total: 4:31:13

🎉 This issue has been resolved in version 3.26.0 🎉

The release is available on:

Your semantic-release bot 📦🚀