From b381286d242986b884f4f317990fa9766303cfc4 Mon Sep 17 00:00:00 2001 From: "M. Umar Shahbaz" Date: Wed, 16 Jul 2025 00:49:09 +0500 Subject: [PATCH 1/2] Inited CASP --- CASP.md | 8 ++++++++ icons/CASP.svg | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 CASP.md create mode 100644 icons/CASP.svg diff --git a/CASP.md b/CASP.md new file mode 100644 index 0000000..f60f07d --- /dev/null +++ b/CASP.md @@ -0,0 +1,8 @@ +# CASP - Canvas And SVG Plotter +
+ +
+ +## Description + +A Library written in TS and compiled to Vanilla JS without any dependencies. \ No newline at end of file diff --git a/icons/CASP.svg b/icons/CASP.svg new file mode 100644 index 0000000..e77a0bc --- /dev/null +++ b/icons/CASP.svg @@ -0,0 +1,9 @@ + +< > + + + + + From b369a7c003958b0985669fbd5a7b07b30d93b1e9 Mon Sep 17 00:00:00 2001 From: "M. Umar Shahbaz" Date: Wed, 16 Jul 2025 13:42:54 +0500 Subject: [PATCH 2/2] Added more info --- CASP.md | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/CASP.md b/CASP.md index f60f07d..88f24ba 100644 --- a/CASP.md +++ b/CASP.md @@ -5,4 +5,40 @@ ## Description -A Library written in TS and compiled to Vanilla JS without any dependencies. \ No newline at end of file +A library that plots static charts using DOM manipulation and HTML Canvas. Written in TypeScript and compiled to Vanilla JavaScript. No dependencies and no frameworks, just regular DOM Manipulation. The library has two formats, an NPM Package and Script-Style. The library is efficient, lightweight and highly customizable. Script-Style version has a standalone file for each chart type, allowing it to be tree-shakable. + +## Features + +## Publish Formats + +- NPM Package +- Script-Style JS + +## Branches + +- **`main`** + NPM Package +- **`web`** + Terser minified script-style plain JS +- **`doc-src`** + Docusaurus Source Code +- **`gh-pages`** + Docusaurus output, CASP website + +## Automations + +- **`publish`** + - Triggered by pushing a Tag at `main` + - Creates `dist` and realeases to NPM + - Zips NPM + - Parses `dist` to Script-Style JS and push to `web` + - Zips Script-Style JS + - Reads `CHANGELOG` at `main` and extract latest + - Creates release at `main` with the extracted changelog and two zips. +- **`deploy-doc`** + - Triggered by pushing to `doc-src` + - Build website + - Push output to `gh-pages` +- **`deploy`** + - **Default GitHub Pages Workflow** + - deploy `gh-pages` to [devdiggas.github.io/CASP](https://devdiggas.github.io/CASP) \ No newline at end of file