Skip to content

Latest commit

 

History

History
124 lines (81 loc) · 2.73 KB

README.md

File metadata and controls

124 lines (81 loc) · 2.73 KB

Optimaxer Web MonoRepo

Copyright

This monorepo contains a collection of projects for various functionalities within the Web Edge ecosystem. Each project is managed as a separate npm package.

Packages

  • web-edge-core: Core functionalities shared across other packages.
  • web-commands: Command execution utilities.
  • web-translate: Translation services.
  • web-rag: Retrieval-augmented generation utilities.
  • web-english: English language processing tools.
  • web-forms: Form handling utilities.
  • web-text: Text processing utilities.
  • web-search: Search functionalities.
  • web-help: Help and documentation utilities.

Read more about the features and architecture of this project.

Creating a simple application

Read more about the create sample application

Getting Started

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/99x/optimaxer-web.git
    cd optimaxer-web
  2. Install dependencies and bootstrap the packages:

    npm install
    npx lerna bootstrap

Lerna Commands

Here are some useful Lerna commands to manage the monorepo:

  • Bootstrap the packages:

    This command will install all dependencies and link cross-dependencies:

    npx lerna bootstrap
  • Run a script in all packages:

    To run a script (e.g., build, test) in all packages, use:

    npx lerna run build
    npx lerna run test
  • Add a dependency to a package:

    To add a dependency to a specific package:

    npx lerna add <dependency> --scope=<package-name>
  • Publish packages:

    To publish updated packages to npm:

    npx lerna publish

Development

Each package resides in the packages directory and can be developed independently. Here is an example structure of a package:

packages/
  web-edge-core/
     src/
     package.json
     README.md
  ...

Building a Package

To build a package, navigate to the package directory and run the build script:

cd packages/web-edge-core
npm run build

Testing a Package

To test a package, navigate to the package directory and run the test script:

cd packages/web-edge-core
npm run test

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any bugs or feature requests.

License

This project is licensed under the MIT License. See the LICENSE file for details.