@elqnt/kg
v1.0.12
Published
Knowledge graph functionality for Eloquent platform
Readme
@eloquent/kg
This package provides knowledge graph functionality for Eloquent applications.
Installation
Since this package is published to GitHub Packages, you'll need to configure npm to use GitHub Packages for the @eloquent scope.
- Create or edit an
.npmrcfile in your project root:
@eloquent:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}- Set your GitHub token as an environment variable:
export GITHUB_TOKEN=your_github_token- Install the package:
npm install @eloquent/kgUsage
import {} from /* components or functions */ "@eloquent/kg";
// Your code hereDevelopment
To build the package locally:
npm run buildPublishing
This package is automatically published to GitHub Packages when changes are pushed to the main branch that affect files in the packages/eloquent/kg directory.
For manual publishing:
- Make sure you have the correct GitHub token set up
- Update the version in package.json
- Run:
cd packages/eloquent/kg
npm run build
npm publishMonorepo Integration
This package is part of the auto-beam-frontend monorepo. When making changes:
- The package will be automatically published when changes are pushed to the main branch
- The package follows the early return pattern in its build process
- To use this package in other packages within the monorepo, add it as a dependency in the package.json file:
"dependencies": {
"@eloquent/kg": "*"
}