Tahlil / request-network-portech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request Network Web Components

Introduction

This repo contains a collection of web components for quickly integrating Request Network into your web application.

The components are built using Svelte but compiled to Web Components making them usable in any web environment, regardless of the framework.

Usage

Usage depends on the component. See packages/<package>/README.md

Component NPM Package
@requestnetwork/add-stakeholder npm version
@requestnetwork/create-invoice-form npm version
@requestnetwork/invoice-dashboard npm version
@requestnetwork/shared npm version

Developing

# Clone the repository
git clone https://github.com/RequestNetwork/web-components.git

# Navigate into the cloned repository
cd web-components

# Install all dependencies
npm install

# Build all packages locally
npm run build

# Link packages to be used locally
npm run link:all

# Navigate to your project directory where the web components are used
cd <project>

# Use local packages instead of the deployed ones
npm link @requestnetwork/create-invoice-form @requestnetwork/invoice-dashboard

Further details specific to the component can be found in the relevant pacakges//README.md

Delete all node_modules/ directories

npm run deep-clean

NPM Workspaces

Run a command in the context of all workspaces. Ignore workspaces missing target script.

npm run test --workspaces --if-present

Run a command in the context of specific workspaces.

npm run test --workspace=add-stakeholder --workspace=other

For more info about workinng with NPM workspaces see: https://docs.npmjs.com/cli/v8/using-npm/workspaces

About


Languages

Language:Svelte 67.1%Language:TypeScript 28.5%Language:HTML 1.6%Language:JavaScript 1.3%Language:CSS 1.3%Language:Shell 0.3%