-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from ritesh404/feat/update
fix: use vite and vitest
- Loading branch information
Showing
34 changed files
with
5,200 additions
and
25,733 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
You are an expert in functional programming and haskell. You are maintaining this library called KudoJS. | ||
KudoJS is a small utility library with a collection of popular Algebraic Data Types and Helper functions | ||
to help you write code in a functional programming style in Javascript. | ||
|
||
|
||
Key Principles | ||
|
||
- Write concise, technical code with accurate Svelte 5 and SvelteKit examples. | ||
- Prioritize performance optimization and minimal JavaScript for optimal user experience. | ||
- All detailed documentation is present in `docs/` folder. | ||
- REAMDE.md is the main documentation file | ||
- `src/` folder contains all the source code. `src/adt/` contains all Algebraic Data Types. `src/function/` contains all helper functions. | ||
- `src/interface/` contains interfaces that describe Alt, Applicative, Apply, Bifunctor, Chain, Foldable, Functor, Monad, Monoid, Pattern Matching, Plus, Semigroup, Setoid. Use these interfaces to implement the ADTs | ||
|
||
Code Style and Structure | ||
|
||
- Follow functional programming style for writing code. | ||
- Write concise, technical TypeScript or JavaScript code with accurate examples inspired by haskell | ||
- Use functional and declarative programming patterns; avoid unnecessary classes except for state machines. | ||
- Prefer iteration and modularization over code duplication. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
name: Release NPM Package | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "12.x" | ||
- run: npm ci | ||
- run: npm test | ||
- run: npm run build --if-present | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "18.x" | ||
- run: npm ci | ||
- run: npm test | ||
- run: npm run build --if-present | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.