Skip to content

Commit

Permalink
Merge pull request #1 from grlt-hub/master
Browse files Browse the repository at this point in the history
added: init
  • Loading branch information
binjospookie authored Nov 6, 2024
2 parents 181d6a4 + 0be3ba7 commit d046082
Show file tree
Hide file tree
Showing 16 changed files with 3,818 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .clean-publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"files": [
".editorconfig",
".gitignore",
".prettierrc",
"lefthook.yml",
"src",
".npmrc",
"knip.json",
"tsconfig.json",
"Makefile"
],
"fields": ["devDependencies", "scripts", "engines", "volta" ],
"packageManager": "npm",
"access": "public"
}
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

root = true

[*]

indent_style = space

indent_size = 2

end_of_line = lf

charset = utf-8

trim_trailing_whitespace = true

insert_final_newline = true

[Makefile]
indent_style = tab
33 changes: 33 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Install and Test

on:
push:
branches: [main]
paths-ignore:
- '**/*.md'
- '**/*.mdx'
- './website/**/*.*'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- '**/*.mdx'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22.9.0

- name: Install dependencies
run: npm ci

- name: Prepublish
run: make prepublish
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules/
.idea/
dist/
.cache/
build/
.DS_Store
coverage/
**/*.zip
.vscode
.swc/
.nx
tsconfig.vitest-temp.json
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
save-exact=true
26 changes: 26 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"plugins": ["prettier-plugin-organize-imports"],
"printWidth": 120,
"parser": "typescript",
"useTabs": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "all",
"overrides": [{
"files": ["*.json"],
"options": {
"parser": "json"
}
}, {
"files": ["*.yml"],
"options": {
"parser": "yaml"
}
}, {
"files": ["*.mdx", "*.md"],
"options": {
"parser": "markdown"
}
}],
"organizeImportsSkipDestructiveCodeActions": true
}
1 change: 1 addition & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{ "path": "dist/index.js", "limit": "1.2 kB" }]
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Change Log

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

## 1.0.0

### Added

- `createSlotIdentifier` fn
- `createSlots` fn
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 grlt-hub

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
build:
rm -rf ./dist && npx tsup src/index.ts --minify --format esm --dts

test:
npx vitest --coverage

lint:
npx size-limit

prepublish:
make build && make lint && make test

publish:
npm i && make prepublish && npx clean-publish
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# react-slots
# React Slots
Loading

0 comments on commit d046082

Please sign in to comment.