Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# SPDX-License-Identifier: MIT AND Palimpsest-0.8
# SPDX-FileCopyrightText: 2024 Jonathan D.A. Jewell

# Git attributes for rescript-tea

# Auto-detect text files and normalize line endings
* text=auto

# ReScript source files
*.res text eol=lf linguist-language=ReScript
*.resi text eol=lf linguist-language=ReScript

# JavaScript (generated)
*.js text eol=lf
*.mjs text eol=lf

# Configuration files
*.json text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.toml text eol=lf

# Documentation
*.md text eol=lf
*.adoc text eol=lf
*.txt text eol=lf

# Shell scripts
*.sh text eol=lf

# Nix files
*.nix text eol=lf

# Lock files - don't merge, always use ours
package-lock.json merge=ours

# Binary files
*.png binary
*.jpg binary
*.gif binary
*.ico binary
*.woff binary
*.woff2 binary
*.ttf binary
*.eot binary

# Exports for GitHub linguist
*.res linguist-language=ReScript
*.resi linguist-language=ReScript
20 changes: 20 additions & 0 deletions .well-known/funding.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://fundinglink.org/schema/v1/funding.json",
"version": "1.0.0",
"entity": {
"type": "individual",
"name": "Jonathan D.A. Jewell"
},
"projects": [
{
"name": "rescript-tea",
"description": "The Elm Architecture for ReScript",
"repository": "https://github.com/Hyperpolymath/rescript-tea",
"license": "MIT AND Palimpsest-0.8"
}
],
"funding": {
"channels": [],
"plans": []
}
}
9 changes: 9 additions & 0 deletions .well-known/security.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SPDX-License-Identifier: MIT AND Palimpsest-0.8
# Security contact information for rescript-tea
# See: https://securitytxt.org/

Contact: https://github.com/Hyperpolymath/rescript-tea/security/advisories/new
Expires: 2025-12-31T23:59:59.000Z
Preferred-Languages: en
Canonical: https://github.com/Hyperpolymath/rescript-tea/.well-known/security.txt
Policy: https://github.com/Hyperpolymath/rescript-tea/blob/main/SECURITY.md
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!-- SPDX-License-Identifier: MIT AND Palimpsest-0.8 -->
<!-- SPDX-FileCopyrightText: 2024 Jonathan D.A. Jewell -->

# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- RSR (Rhodium Standard Repositories) compliance
- Nix flake for reproducible development environment
- Justfile for task automation
- SPDX license headers on all source files

## [0.1.0] - 2024-12-06

### Added
- Initial release of rescript-tea
- Core modules:
- `Tea_Cmd` - Commands for side effects
- `Tea_Sub` - Subscriptions for external events
- `Tea_App` - Application runtime with React integration
- `Tea_Html` - Type-safe HTML helpers
- `Tea_Json` - Elm-style JSON decoders
- `Tea_Test` - Testing utilities
- `Tea` - Main entry point
- Subscription types:
- `Sub.Time.every` - Timer subscriptions
- `Sub.Keyboard.downs/ups` - Keyboard events
- `Sub.Mouse.clicks/moves` - Mouse events
- `Sub.Window.resizes` - Window resize events
- Counter example demonstrating basic TEA patterns
- React hooks-based runtime implementation
- Functor-based API (`Make`, `MakeSimple`, `MakeWithDispatch`)

### Technical Details
- Built on React 18+ with hooks
- Uses Belt library for collections
- ReScript 11+ compatibility
- ESModule output format

[Unreleased]: https://github.com/Hyperpolymath/rescript-tea/compare/v0.1.0...HEAD
[0.1.0]: https://github.com/Hyperpolymath/rescript-tea/releases/tag/v0.1.0
100 changes: 100 additions & 0 deletions CODE_OF_CONDUCT.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
// SPDX-License-Identifier: MIT AND Palimpsest-0.8
// SPDX-FileCopyrightText: 2024 Jonathan D.A. Jewell
= Code of Conduct
:toc:

== Our Pledge

We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.

We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.

== Our Standards

=== Positive Behaviors

Examples of behavior that contributes to a positive environment:

* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes
* Focusing on what is best for the overall community
* Using welcoming and inclusive language

=== Unacceptable Behaviors

Examples of unacceptable behavior:

* The use of sexualized language or imagery, and sexual attention or advances
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information without explicit permission
* Other conduct which could reasonably be considered inappropriate

== Enforcement Responsibilities

Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.

== Scope

This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.

== Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement.

All complaints will be reviewed and investigated promptly and fairly.

== Enforcement Guidelines

Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:

=== 1. Correction

*Community Impact*: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.

*Consequence*: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate.

=== 2. Warning

*Community Impact*: A violation through a single incident or series of actions.

*Consequence*: A warning with consequences for continued behavior. No
interaction with the people involved for a specified period of time.

=== 3. Temporary Ban

*Community Impact*: A serious violation of community standards.

*Consequence*: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time.

=== 4. Permanent Ban

*Community Impact*: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.

*Consequence*: A permanent ban from any sort of public interaction within
the community.

== Attribution

This Code of Conduct is adapted from the https://www.contributor-covenant.org[Contributor Covenant],
version 2.1.
Loading