Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.75 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.75 KB

Continuous Deployment License: CC BY-NC-SA 4.0 npm latest

Pāli Language Services

Purpose

Define the basics of the Pāli language in code as per the specifications.

This is a cross platform library usable both on frontend and backend.

Features

  • Pāli alphabet
    • Roman script
    • Parsing pāli written in Roman script
    • Compare order for strings
  • Inflections
    • Generate inflection tables
    • Generate all inflected words
  • Publish as npm library
  • Publish on crates.io

Using PLS

  • yarn add @digitalpalitools/pali-language-services --force
  • import * as PSL from '@digitalpalitools/pali-language-services'

Updating PLS

  • cargo clean; cargo build --release; wasm-pack build --scope digitalpalitools --target bundler --release
  • Revert unnecessary changes
  • npm login # dptadmin / [email protected] / <passsowrd>
  • wasm-pack publish --access public

Commands

  • Build: cargo clean; cargo build; wasm-pack build --scope digitalpalitools --target bundler
  • Test: cargo test
  • Format: cargo clean; cargo fmt --all -- --check
  • Clippy: cargo clean; cargo clippy --tests --all-targets --all-features -- -D warnings
  • Watch Tests: cargo watch -x test