This library provides a set of tools and utilities for creating Codebolt agents, enabling seamless integration with the Codebolt platform.
- Create and manage Codebolt agents
- Interact with the Codebolt platform
- Utilize Codebolt's powerful API
npm install @codebolt/codeboltjs
const codebolt = require('@codebolt/codeboltjs');
// Your code here
# Install dependencies
npm install
# Build TypeScript to dist/ (recommended for development)
npm run build
# Build webpack bundle to build/bundle.js (single file for distribution)
npm run build:webpack
# Build both TypeScript and webpack versions
npm run build:all
# Clean all build artifacts
npm run clean
# Build documentation
npm run build:docs
The project supports two build methods:
-
TypeScript Build (
npm run build
)- Outputs to
dist/
directory - Preserves module structure
- Includes separate
.js
and.d.ts
files - Recommended for npm publishing and development
- Outputs to
-
Webpack Build (
npm run build:webpack
)- Outputs to
build/bundle.js
- Single bundled file
- Optimized for production deployment
- Works in Node.js environments
- Outputs to
src/
- TypeScript source codedist/
- Compiled JavaScript and type definitions (generated by TypeScript)build/
- Webpack bundle (generated by webpack)docs/
- Generated documentation
For More Documentation visit Codebolt's Documentation