feat(ns-paystack): use npm instead of github packages

This commit is contained in:
Brian Pooe 2023-06-05 19:59:15 +02:00
commit 39d8d2373b
14 changed files with 37 additions and 42 deletions

View file

@ -23,24 +23,20 @@ jobs:
pnpm-version: [7]
steps:
- name: Checkout [Pull Request]
uses: actions/checkout@v2
uses: actions/checkout@v3
if: ${{ github.event_name == 'pull_request' }}
with:
ref: ${{ github.event.pull_request.head.sha }}
token: ${{ secrets.NPM_TOKEN }}
fetch-depth: 0
- name: Checkout [Default Branch]
uses: actions/checkout@v2
uses: actions/checkout@v3
if: ${{ github.event_name != 'pull_request' }}
with:
token: ${{ secrets.NPM_TOKEN }}
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v2
with:
main-branch-name: ${{ github.base_ref }}
uses: nrwl/nx-set-shas@v3
- name: Detect package manager
id: package_manager
@ -74,7 +70,7 @@ jobs:
- name: Use the node_modules cache if available [npm]
if: steps.package_manager.outputs.name == 'npm'
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ steps.versions.outputs.node_version }}-${{ hashFiles('**/package-lock.json') }}

1
.npmrc
View file

@ -1 +0,0 @@
@bp-devtools:registry=https://npm.pkg.github.com

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2023 bp-devtools
Copyright (c) 2023 devtools-bp
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -1,6 +1,6 @@
# bp-devtools
# devtools-bp
Welcome to the bp-devtools monorepo! This repository serves as a centralized location for various libraries and tools related to NestJS, Angular, and more. Whether you're working on backend development with NestJS or frontend development with Angular, you'll find a range of useful libraries and tools here.
Welcome to the devtools-bp monorepo! This repository serves as a centralized location for various libraries and tools related to NestJS, Angular, and more. Whether you're working on backend development with NestJS or frontend development with Angular, you'll find a range of useful libraries and tools here.
## Table of Contents
@ -11,10 +11,10 @@ Welcome to the bp-devtools monorepo! This repository serves as a centralized loc
## Getting Started
To get started with the bp-devtools monorepo, follow these steps:
To get started with the devtools-bp monorepo, follow these steps:
1. Clone the repository: `git clone https://github.com/bp-devtools/bp-devtools.git`
2. Navigate to the cloned repository: `cd bp-devtools`
1. Clone the repository: `git clone https://github.com/devtools-bp/devtools-bp.git`
2. Navigate to the cloned repository: `cd devtools-bp`
3. Install the dependencies: `npm install`
4. Choose the library or tool you want to use from the `libraries` directory.
5. Follow the specific instructions provided in the respective library/tool's README file.
@ -25,16 +25,16 @@ To get started with the bp-devtools monorepo, follow these steps:
1. **ns-paystack**: Powerful library that provides seamless integration with the Paystack payment gateway for your NestJS applications. You can easily handle payment transactions with minimal effort.
- Usage:
- Installation: `npm install @bp-devtools/ns-paystack`
- Documentation: [Link to documentation](https://github.com/brianpooe/bp-devtools/blob/main/libs/ns-paystack/README.md)
- Installation: `npm install @devtools-bp/ns-paystack`
- Documentation: [Link to documentation](https://github.com/brianpooe/devtools-bp/blob/main/libs/ns-paystack/README.md)
### Angular Libraries
Coming soon...
## Contributing
We welcome contributions to the bp-devtools monorepo! If you have any bug fixes, improvements, or new features to propose, please follow the guidelines outlined in [CONTRIBUTING.md](https://github.com/bp-devtools/bp-devtools/blob/main/CONTRIBUTING.md).
We welcome contributions to the devtools-bp monorepo! If you have any bug fixes, improvements, or new features to propose, please follow the guidelines outlined in [CONTRIBUTING.md](https://github.com/devtools-bp/devtools-bp/blob/main/CONTRIBUTING.md).
## License
The bp-devtools monorepo is released under the [MIT License](https://github.com/brianpooe/bp-devtools/blob/main/LICENSE). Please make sure you understand its terms and conditions when using the libraries and tools provided in this repository.
The devtools-bp monorepo is released under the [MIT License](https://github.com/brianpooe/devtools-bp/blob/main/LICENSE). Please make sure you understand its terms and conditions when using the libraries and tools provided in this repository.

View file

@ -1,6 +1,6 @@
import { Module } from '@nestjs/common';
import { NsPaystackModule } from '@bp-devtools/ns-paystack';
import { NsPaystackModule } from '@devtools-bp/ns-paystack';
import { ConfigService } from '@nestjs/config';
import { TransactionsService } from './transactions/services/transactions.service';
import { TransactionController } from './transactions/controllers/transaction.controller';

View file

@ -6,7 +6,7 @@ import {
MODULE_OPTIONS_TOKEN,
NsPaystackModule,
PsTransactionsService
} from '@bp-devtools/ns-paystack';
} from '@devtools-bp/ns-paystack';
import { ConfigService } from '@nestjs/config';
import { HttpModule } from '@nestjs/axios';

View file

@ -15,7 +15,7 @@ import {
PsTransactionTotalsResponseModel,
PsVerifyTransactionResponseModel,
PsViewTransactionTimeLineResponseModel
} from '@bp-devtools/ns-paystack';
} from '@devtools-bp/ns-paystack';
import { Observable } from 'rxjs';
import { TransactionsService } from '../services/transactions.service';

View file

@ -1,6 +1,6 @@
import { Test, TestingModule } from '@nestjs/testing';
import { TransactionsService } from './transactions.service';
import { NsPaystackModule } from '@bp-devtools/ns-paystack';
import { NsPaystackModule } from '@devtools-bp/ns-paystack';
import { ConfigService } from '@nestjs/config';
describe(TransactionsService.name, () => {

View file

@ -16,7 +16,7 @@ import {
PsExportTransactionResponseModel,
PsPartialDebitRequestModel,
PsPartialDebitResponseModel
} from '@bp-devtools/ns-paystack';
} from '@devtools-bp/ns-paystack';
import { Observable } from 'rxjs';
@Injectable()

View file

@ -5,13 +5,13 @@ The wrapper provides a convenient way to integrate Paystack payment functionalit
## Installation
```shell
npm install @bp-devtools/ns-paystack
npm install @devtools-bp/ns-paystack
```
or
```shell
yarn add @bp-devtools/ns-paystack
yarn add @devtools-bp/ns-paystack
```
## Configuration
@ -22,7 +22,7 @@ dashboard. Once you have the API key, you can configure the wrapper in your Nest
```typescript
import { Module } from '@nestjs/common';
import { NsPaystackModule } from '@bp-devtools/ns-paystack';
import { NsPaystackModule } from '@devtools-bp/ns-paystack';
import { ConfigService } from '@nestjs/config';
import { TransactionsService } from './transactions/services/transactions.service';
import { TransactionController } from './transactions/controllers/transaction.controller';
@ -42,7 +42,7 @@ export class AppModule {}
```typescript
import { Module } from '@nestjs/common';
import { NsPaystackModule } from '@bp-devtools/ns-paystack';
import { NsPaystackModule } from '@devtools-bp/ns-paystack';
import { ConfigService } from '@nestjs/config';
@Module({
@ -70,7 +70,7 @@ import {
PsTransactionsService,
PsInitializeTransactionRequestModel,
PsInitializeTransactionResponseModel
} from '@bp-devtools/ns-paystack';
} from '@devtools-bp/ns-paystack';
@Injectable()
export class TransactionsService {
@ -94,7 +94,7 @@ import {
PsFetchTransactionResponseModel,
PsInitializeTransactionRequestModel,
PsInitializeTransactionResponseModel
} from '@bp-devtools/ns-paystack';
} from '@devtools-bp/ns-paystack';
import { TransactionsService } from '../services/transactions.service';
@Controller('transaction')
@ -158,8 +158,8 @@ pull request on the GitHub repository.
## License
The bp-devtools monorepo is released under
the [MIT License](https://github.com/brianpooe/bp-devtools/blob/main/LICENSE). Please make sure you understand its
The devtools-bp monorepo is released under
the [MIT License](https://github.com/brianpooe/devtools-bp/blob/main/LICENSE). Please make sure you understand its
terms and conditions when using the libraries and tools provided in this repository.
## Authors

View file

@ -1,5 +1,5 @@
{
"name": "@bp-devtools/ns-paystack",
"name": "@devtools-bp/ns-paystack",
"description": "Powerful library that provides seamless integration with the Paystack payment gateway for your NestJS applications. You can easily handle payment transactions with minimal effort.",
"version": "1.0.0",
"scripts": {
@ -12,15 +12,15 @@
"type": "commonjs",
"repository": {
"type": "git",
"url": "https://github.com/brianpooe/bp-devtools.git",
"url": "https://github.com/brianpooe/devtools-bp.git",
"directory": "libs/ns-paystack"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/brianpooe/bp-devtools/issues",
"url": "https://github.com/brianpooe/devtools-bp/issues",
"email": "brian.method@gmail.com"
},
"homepage": "https://github.com/brianpooe/bp-devtools/tree/main/libs/ns-paystack#readme",
"homepage": "https://github.com/brianpooe/devtools-bp/tree/main/libs/ns-paystack#readme",
"keywords": [
"nestjs",
"paystack",

4
package-lock.json generated
View file

@ -1,11 +1,11 @@
{
"name": "@bp-devtools/source",
"name": "@devtools-bp/source",
"version": "0.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@bp-devtools/source",
"name": "@devtools-bp/source",
"version": "0.0.0",
"license": "MIT",
"dependencies": {

View file

@ -1,5 +1,5 @@
{
"name": "@bp-devtools/source",
"name": "@devtools-bp/source",
"version": "1.0.0",
"license": "MIT",
"author": {
@ -65,10 +65,10 @@
}
},
"bugs": {
"url": "https://github.com/brianpooe/bp-devtools/issues",
"url": "https://github.com/brianpooe/devtools-bp/issues",
"email": "brian.method@gmail.com"
},
"homepage": "https://github.com/brianpooe/bp-devtools#readme",
"homepage": "https://github.com/brianpooe/devtools-bp#readme",
"keywords": [
"nestjs",
"paystack",

View file

@ -18,7 +18,7 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@bp-devtools/ns-paystack": [
"@devtools-bp/ns-paystack": [
"libs/ns-paystack/src/index.ts"
]
}