Skip to content

Commit

Permalink
fix(scope): change scope to flxbl-io to reflect github username of th…
Browse files Browse the repository at this point in the history
…e flxbl-io org

Update to reflect flxbl-io

BREAKING CHANGE: All existing alpha rc users has to do a fresh installation
  • Loading branch information
azlam-abdulsalam committed Mar 6, 2024
1 parent 5c9d8e2 commit 704d891
Show file tree
Hide file tree
Showing 236 changed files with 523 additions and 524 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
```
![Version](https://img.shields.io/npm/v/@flxblio/sfp.svg)
![Version](https://img.shields.io/npm/v/@flxbl-io/sfp.svg)
[![GitHub stars](https://img.shields.io/github/stars/flxbl-io/sfp)](https://gitHub.com/flxbl-io/sfp/stargazers/)
[![GitHub contributors](https://img.shields.io/github/contributors/flxbl-io/sfp.svg)](https://github.com/flxbl-io/sfp/graphs/contributors/)
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/flxbl-io/sfp/blob/main/LICENSE)
Expand Down Expand Up @@ -51,7 +51,7 @@ sfp is constantly evolving and being driven by the passionate community that has
sfp can be installed on your local device using npm

```
npm i -g @flxblio/sfp
npm i -g @flxbl-io/sfp
```


Expand Down
10 changes: 5 additions & 5 deletions Third Party Notices.md
Original file line number Diff line number Diff line change
Expand Up @@ -927,15 +927,15 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---

### [@flxblio/forcemula (0.1.2)](https://www.npmjs.com/package/@flxblio/forcemula)
### [@flxbl-io/forcemula (0.1.2)](https://www.npmjs.com/package/@flxbl-io/forcemula)


#### Declared Licenses
**Multi-license:**ISC, **Multi-license:**MIT


```
Copyright (c) 2023, @flxblio/forcemula Contributors
Copyright (c) 2023, @flxbl-io/forcemula Contributors
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
```
Expand Down Expand Up @@ -1048,7 +1048,7 @@ SOFTWARE.

---

### [@flxblio/sfp-logger (1.2.0)](https://www.npmjs.com/package/@flxblio/sfp-logger)
### [@flxbl-io/sfp-logger (1.2.0)](https://www.npmjs.com/package/@flxbl-io/sfp-logger)


#### Declared Licenses
Expand Down Expand Up @@ -1101,7 +1101,7 @@ SOFTWARE.

---

### [@flxblio/sfp (^20.25.4)](https://www.npmjs.com/package/@flxblio/sfp)
### [@flxbl-io/sfp (^20.25.4)](https://www.npmjs.com/package/@flxbl-io/sfp)


#### Declared Licenses
Expand Down Expand Up @@ -1188,7 +1188,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

---

### [@flxblio/sfp.core (33.21.2)](https://www.npmjs.com/package/@flxblio/sfp.core)
### [@flxbl-io/sfp.core (33.21.2)](https://www.npmjs.com/package/@flxbl-io/sfp.core)


#### Declared Licenses
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/sfp-lite.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ RUN mkdir -p /etc/apt/keyrings \

# Install sfp
RUN npm install --global --omit=dev \
@flxblio/sfp@${SFPOWERSCRIPTS_VERSION}
@flxbl-io/sfp@${SFPOWERSCRIPTS_VERSION}

WORKDIR /root

Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/sfp.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ RUN npm install --global yarn --omit-dev \
# Install SF cli and sfpowerscripts
RUN npm install --global --omit=dev \
@salesforce/cli@${SF_CLI_VERSION} \
@flxblio/sfp@${SFPOWERSCRIPTS_VERSION} \
@flxbl-io/sfp@${SFPOWERSCRIPTS_VERSION} \
&& npm cache clean --force


Expand Down
2 changes: 1 addition & 1 deletion packages/apexlink/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @flxblio/apexlink`
# @flxbl-io/apexlink`

ApexLink is the a thin node invoker for @nawforce/apex-link, which is delivered as a JAR file. This invoker executes a sub process where the apex link jar is executed

6 changes: 3 additions & 3 deletions packages/apexlink/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@flxblio/apexlink",
"name": "@flxbl-io/apexlink",
"version": "2.0.0",
"description": "Wrappers around @nawforce's apexlink java pom ",
"author": "flxblio",
Expand All @@ -12,8 +12,8 @@
"/jars"
],
"dependencies": {
"@flxblio/sfdx-process-wrapper": "^1.0.3",
"@flxblio/sfp-logger": "^2.1.3",
"@flxbl-io/sfdx-process-wrapper": "^1.0.3",
"@flxbl-io/sfp-logger": "^2.1.3",
"find-java-home": "2.0.0",
"fs-extra": "11.1.1"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/apexlink/src/ApexDepedencyCheckImpl.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import findJavaHome from 'find-java-home';
import ExecuteCommand from '@flxblio/sfdx-process-wrapper/lib/commandExecutor/ExecuteCommand';
import { Logger, LoggerLevel } from '@flxblio/sfp-logger';
import SFPLogger from '@flxblio/sfp-logger';
import { ConsoleLogger } from '@flxblio/sfp-logger';
import ExecuteCommand from '@flxbl-io/sfdx-process-wrapper/lib/commandExecutor/ExecuteCommand';
import { Logger, LoggerLevel } from '@flxbl-io/sfp-logger';
import SFPLogger from '@flxbl-io/sfp-logger';
import { ConsoleLogger } from '@flxbl-io/sfp-logger';
import * as fs from 'fs-extra';
import path from 'path';

Expand Down
2 changes: 1 addition & 1 deletion packages/apexlink/tests/ApexDependencyCheckImpl.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { jest, expect } from '@jest/globals';
import { ConsoleLogger } from '@flxblio/sfp-logger';
import { ConsoleLogger } from '@flxbl-io/sfp-logger';
import ApexDepedencyCheckImpl from '../src/ApexDepedencyCheckImpl';
import path from 'path';

Expand Down
2 changes: 1 addition & 1 deletion packages/forcemula/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@flxblio/forcemula",
"name": "@flxbl-io/forcemula",
"version": "1.0.1",
"description": "Extract fields from Salesforce formulas",
"main": "src/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/sfdx-process-wrapper/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@flxblio/sfdx-process-wrapper",
"name": "@flxbl-io/sfdx-process-wrapper",
"version": "1.0.3",
"description": "Wraps around SFDXCommand to exeute it using a subprocess",
"author": "flxbl",
Expand All @@ -11,7 +11,7 @@
"lib": "lib"
},
"dependencies": {
"@flxblio/sfp-logger": "^2.1.3",
"@flxbl-io/sfp-logger": "^2.1.3",
"fs-extra": "^9.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sfdx-process-wrapper/src/SFDXCommand.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ExecuteCommand from './commandExecutor/ExecuteCommand';
import SFPLogger, { Logger, LoggerLevel } from '@flxblio/sfp-logger';
import SFPLogger, { Logger, LoggerLevel } from '@flxbl-io/sfp-logger';

export abstract class SFDXCommand {
public constructor(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import child_process = require('child_process');
import SFPLogger, { COLOR_TRACE, Logger, LoggerLevel } from '@flxblio/sfp-logger';
import SFPLogger, { COLOR_TRACE, Logger, LoggerLevel } from '@flxbl-io/sfp-logger';
import defaultProcessOptions from './DefaultProcessOptions';


Expand Down
77 changes: 38 additions & 39 deletions packages/sfp-cli/README.md
Original file line number Diff line number Diff line change
@@ -1,66 +1,65 @@
<p align="center">
<img alt="sfp" src="https://repository-images.githubusercontent.com/248449736/448f93b4-9883-48da-a75c-330f242bbf8c" width="480" height="400">
</p>

![Version](https://img.shields.io/npm/v/@flxblio/sfp.svg)
[![GitHub stars](https://img.shields.io/github/stars/flxblio/sfp)](https://github.com/flxbl-io/sfp/stargazers/)
[![GitHub contributors](https://img.shields.io/github/contributors/flxblio/sfp.svg)](https://github.com/flxbl-io/sfp/graphs/contributors/)
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/flxbl-io/sfp/blob/master/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

[![DeepScan grade](https://deepscan.io/api/teams/10234/projects/12959/branches/208838/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=10234&pid=12959&bid=208838)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fflxblio%2Fsfp.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fflxblio%2Fsfp?ref=badge_shield) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5614/badge)](https://bestpractices.coreinfrastructure.org/projects/5614)

[![Join slack](https://i.imgur.com/FZZmA3g.png)](https://launchpass.com/flxblio)

A build system for package based development in Salesforce, delivered as a node cli that can be implemented in any CI/CD system of choice.Read more about the cli and details here - https://docs.flxbl.io

#### Features

- Features an Orchestrator, which utilizes sfdx-project.json as the source of truth for driving the build system, ensuring very low maintenance on programs often dealing with multiple number of packages
- Builds packages in parallel by respecting dependencies
- Ability to selectively build changed packages in a mono repo
- Ability to deploy only packages that are changed in repo
- Pooling commands to prepare a pool of scratch org's with packages pre installed for optimized Pull/Merge Request validation
- Artifacts Driven, all create commands produce an artifact or operate on an artifact
- Integrate with any CI/CD system of choice
- All commands are enabled with statsD, for collecting metrics about your pipeline.

There are lot more features to explore. Read more at https://docs.flxbl.io

The project is delivered as a <b>CLI</b> that can be deployed in any CI/CD system, The module is available in [NPM](https://www.npmjs.com/package/@flxblio/sfp) or can be
used by using the [docker image](https://github.com/flxbl-io/sfp/pkgs/container/sfp)

```
.----------------. .----------------. .----------------.
| .--------------. || .--------------. || .--------------. |
| | _______ | || | _________ | || | ______ | |
| | / ___ | | || | |_ ___ | | || | |_ __ \ | |
| | | (__ \_| | || | | |_ \_| | || | | |__) | | |
| | '.___`-. | || | | _| | || | | ___/ | |
| | |`\____) | | || | _| |_ | || | _| |_ | |
| | |_______.' | || | |_____| | || | |_____| | |
| | | || | | || | | |
| '--------------' || '--------------' || '--------------' |
'----------------' '----------------' '----------------'
```
![Version](https://img.shields.io/npm/v/@flxbl-io/sfp.svg)
[![GitHub stars](https://img.shields.io/github/stars/flxbl-io/sfp)](https://gitHub.com/flxbl-io/sfp/stargazers/)
[![GitHub contributors](https://img.shields.io/github/contributors/flxbl-io/sfp.svg)](https://github.com/flxbl-io/sfp/graphs/contributors/)
[![License](https://img.shields.io/badge/license-MIT-green)](https://github.com/flxbl-io/sfp/blob/main/LICENSE)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)

[![DeepScan grade](https://deepscan.io/api/teams/23310/projects/26589/branches/848646/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=23310&pid=26589&bid=848646)
[![CodeFactor](https://www.codefactor.io/repository/github/flxbl-io/sfp/badge)](https://www.codefactor.io/repository/github/flxbl-io/sfp)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fflxbl-io%2Fsfp.svg?type=shield&issueType=license)](https://app.fossa.com/projects/git%2Bgithub.com%2Fflxbl-io%2Fsfp?ref=badge_shield&issueType=license) [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5614/badge)](https://bestpractices.coreinfrastructure.org/projects/5614)

[![Join slack](https://i.imgur.com/FZZmA3g.png)](https://launchpass.com/flxblio)

#### Motivation
sfp is an purpose built cli based tool specifically designed for modular Salesforce development and release management. sfp is aimed at streamlining and automating the build, test, and deployment processes of Salesforce metadata, code and data. It extends sf cli functionalities, focusing on artifact-driven development to enhance DevOps practices within Salesforce projects.

- Need for artifact driven build system for package based development models especially on complex and large programs
## Key Aspects of sfp:

- Providing additional functionality that is either not supported by the sfdx-cli, such as data packages or automatically understanding tests in a given package
- Artifact-Centric Approach: sfp packages Salesforce code and metadata into artifacts, along with deployment details, ensuring consistent deployments and simplified version management across environments.
- Best-in-Class Mono Repo Support: Offers robust support for mono repositories, facilitating streamlined development, integration, and collaboration
- Support for Multiple Package Types: sfp accommodates various Salesforce package types with streamlined commands, enabling modular development, independent versioning, and flexible deployment strategies.
- Orchestrate Across Entire Lifecycle: sfp provides an extensive set of functionality across the entire lifecycle of your Salesforce development.
- End-to-End Observability: sfp is built with comprehensive metrics that are emitted on every commands providing unparalleled visibility into your ALM process.
Commands

- Ease of use, one should not be spending too much time scripting a pipeline.
sfp is comprised of a suite of commands to aid in your end to end development cycle for Salesforce. Starting with the core commands, you are able to perform basic work flows to to build and deploy artifacts (locally to start, and to a NPM artifact repository after) across environments through the command line. As you progress in your understanding of the core commands, you can utilized more advanced commands and flags in your CI/CD platform of choice to drive a more complete release process leveraging release definitions, change logs, metrics and much more.

#### CI/CD Reference Implementation
sfp is constantly evolving and being driven by the passionate community that has embraced our ways of working. We have introduced key utility commands over the years to solve pain points specific to the Salesforce Platform. The commands have been successfully tested and used on large enterprise-scale implementations. As we continue to grow the toolset, we hope to introduced more commands to address the future wave of challenges.

Getting started guides for popular CI/CD platforms along with reference pipelines are available [here](https://docs.flxbl.io/implementing-your-ci-cd/github)

#### Installing sfp locally

sfp can be installed on your local device using npm

```
npm i -g @flxblio/sfp
npm i -g @flxbl-io/sfp
```


#### Docker

Docker images for sfp are available at [GitHub Container Registry](https://github.com/flxbl-io/sfp/pkgs/container/sfp).

We recommend using the sfp docker image to avoid breakages in your CI/CD pipelines due to updates in sfp or any of its dependencies such as the SFDX CLI.
We recommend using the sfp docker image to avoid breakages in your CI/CD pipelines due to updates in sfp

#### Build Instructions
To build sfp execute the following on the terminal:
Expand Down
8 changes: 4 additions & 4 deletions packages/sfp-cli/command-docs/apextests.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
`@flxblio/sfp apextests`
`@flxbl-io/sfp apextests`
========================

Manage apex tests in a package or a org

* [`@flxblio/sfp apextests trigger`](#flxbliosfp-apextests-trigger)
* [`@flxbl-io/sfp apextests trigger`](#flxbliosfp-apextests-trigger)

## `@flxblio/sfp apextests trigger`
## `@flxbl-io/sfp apextests trigger`

Triggers Apex unit test in an org. Supports test level RunAllTestsInPackage, which optionally allows validation of individual class code coverage

```
USAGE
$ @flxblio/sfp apextests trigger -u <value> [--loglevel
$ @flxbl-io/sfp apextests trigger -u <value> [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [--apiversion <value>] [-l
RunSpecifiedTests|RunApexTestSuite|RunLocalTests|RunAllTestsInOrg|RunAllTestsInPackage] [-n <value>] [-c]
[--validatepackagecoverage] [--specifiedtests <value>] [--apextestsuite <value>] [-p <value>] [-w <value>]
Expand Down
22 changes: 11 additions & 11 deletions packages/sfp-cli/command-docs/artifacts.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
`@flxblio/sfp artifacts`
`@flxbl-io/sfp artifacts`
========================

Manage artifacts for a project

* [`@flxblio/sfp artifacts fetch`](#flxbliosfp-artifacts-fetch)
* [`@flxblio/sfp artifacts promote`](#flxbliosfp-artifacts-promote)
* [`@flxblio/sfp artifacts query`](#flxbliosfp-artifacts-query)
* [`@flxbl-io/sfp artifacts fetch`](#flxbliosfp-artifacts-fetch)
* [`@flxbl-io/sfp artifacts promote`](#flxbliosfp-artifacts-promote)
* [`@flxbl-io/sfp artifacts query`](#flxbliosfp-artifacts-query)

## `@flxblio/sfp artifacts fetch`
## `@flxbl-io/sfp artifacts fetch`

Fetch sfp artifacts from a NPM compatible registry using a release definition file

```
USAGE
$ @flxblio/sfp artifacts fetch -d <value> [-p <value>] [--scope <value> [--npm | -f <value>]] [--npmrcpath <value>
$ @flxbl-io/sfp artifacts fetch -d <value> [-p <value>] [--scope <value> [--npm | -f <value>]] [--npmrcpath <value>
] [--loglevel trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
Expand All @@ -39,13 +39,13 @@ EXAMPLES

_See code: [src/commands/artifacts/fetch.ts](https://github.com/flxbl-io/sfp)_

## `@flxblio/sfp artifacts promote`
## `@flxbl-io/sfp artifacts promote`

Promotes artifacts predominantly for unlocked packages with code coverage greater than 75%

```
USAGE
$ @flxblio/sfp artifacts promote -v <value> -d <value> [--loglevel
$ @flxbl-io/sfp artifacts promote -v <value> -d <value> [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
Expand All @@ -58,21 +58,21 @@ DESCRIPTION
Promotes artifacts predominantly for unlocked packages with code coverage greater than 75%
ALIASES
$ @flxblio/sfp orchestrator promote
$ @flxbl-io/sfp orchestrator promote
EXAMPLES
$ sfp promote -d path/to/artifacts -v <org>
```

_See code: [src/commands/artifacts/promote.ts](https://github.com/flxbl-io/sfp)_

## `@flxblio/sfp artifacts query`
## `@flxbl-io/sfp artifacts query`

Fetch details about artifacts installed in a target org

```
USAGE
$ @flxblio/sfp artifacts query -u <value> [--json] [--loglevel
$ @flxbl-io/sfp artifacts query -u <value> [--json] [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]
FLAGS
Expand Down
10 changes: 5 additions & 5 deletions packages/sfp-cli/command-docs/build.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
`@flxblio/sfp build`
`@flxbl-io/sfp build`
====================

Build artifact(s) of your packages in the current project

* [`@flxblio/sfp build`](#flxbliosfp-build)
* [`@flxbl-io/sfp build`](#flxbliosfp-build)

## `@flxblio/sfp build`
## `@flxbl-io/sfp build`

Build artifact(s) of your packages in the current project

```
USAGE
$ @flxblio/sfp build -v <value> --branch <value> [--loglevel
$ @flxbl-io/sfp build -v <value> --branch <value> [--loglevel
trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL] [--apiversion <value>] [--diffcheck] [-p
<value>] [-r <value>] [-f <value>] [--artifactdir <value>] [--waittime <value>] [--number <value>] [--executorcount
<value>] [--tag <value>] [--releaseconfig <value>]
Expand Down Expand Up @@ -41,7 +41,7 @@ DESCRIPTION
Build artifact(s) of your packages in the current project
ALIASES
$ @flxblio/sfp orchestrator build
$ @flxbl-io/sfp orchestrator build
```

_See code: [src/commands/build.ts](https://github.com/flxbl-io/sfp)_
Loading

0 comments on commit 704d891

Please sign in to comment.