Skip to content

Commit ccd2e22

Browse files
committed
Initial commit
0 parents  commit ccd2e22

20 files changed

+339
-0
lines changed

.eslintrc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"plugins": ["simple-import-sort", "solid"],
4+
"extends": [
5+
"eslint:recommended",
6+
"plugin:@typescript-eslint/eslint-recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"plugin:solid/typescript"
9+
],
10+
"env": {
11+
"browser": true,
12+
"node": true,
13+
"es6": true,
14+
"jest": true
15+
},
16+
"parserOptions": {
17+
"sourceType": "module"
18+
},
19+
"rules": {
20+
"@typescript-eslint/no-unused-vars": ["error", { "varsIgnorePattern": "^_" }],
21+
"no-unused-vars": "off",
22+
"simple-import-sort/imports": "error",
23+
"simple-import-sort/exports": "error"
24+
},
25+
"ignorePatterns": ["dist", "node_modules"]
26+
}

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
thedanchez

.github/workflows/ci.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
quality-checks:
13+
name: Quality Checks
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v1
20+
with:
21+
bun-version: latest
22+
- name: Install Dependencies
23+
run: bun install --frozen-lockfile
24+
- name: Lint Check
25+
run: bun run lint
26+
- name: Format Check
27+
run: bun run format

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage
2+
dist
3+
node_modules
4+
5+
.DS_Store
6+
/*.tgz

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
22.11.0

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage
2+
dist
3+
node_modules

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"printWidth": 120
3+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": "always"
4+
},
5+
"editor.formatOnSave": true,
6+
"editor.rulers": [120],
7+
"files.autoSave": "onFocusChange",
8+
"files.insertFinalNewline": true
9+
}

README.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Template: SolidJS Library
2+
3+
Template for [SolidJS](https://www.solidjs.com/) library package. Bundling of the library is managed by [tsup](https://tsup.egoist.dev/).
4+
5+
Other things configured include:
6+
7+
- Bun (for dependency management and running scripts)
8+
- TypeScript
9+
- ESLint / Prettier
10+
- Solid Testing Library + Vitest (for testing)
11+
- Playground app using library
12+
- GitHub Actions (for all CI/CD)
13+
14+
## Getting Started
15+
16+
Some pre-requisites before install dependencies:
17+
18+
- Install Node Version Manager (NVM)
19+
```bash
20+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
21+
```
22+
- Install Bun
23+
```bash
24+
curl -fsSL https://bun.sh/install | bash
25+
```
26+
27+
### Installing Dependencies
28+
29+
```bash
30+
nvm use
31+
bun install
32+
```
33+
34+
### Local Development Build
35+
36+
```bash
37+
bun start
38+
```
39+
40+
### Linting & Formatting
41+
42+
```bash
43+
bun run lint # checks source for lint violations
44+
bun run format # checks source for format violations
45+
46+
bun run lint:fix # fixes lint violations
47+
bun run format:fix # fixes format violations
48+
```
49+
50+
### Contributing
51+
52+
The only requirements when contributing are:
53+
54+
- You keep a clean git history in your branch
55+
- rebasing `main` instead of making merge commits.
56+
- Using proper commit message formats that adhere to [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
57+
- Additionally, squashing (via rebase) commits that are not [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
58+
- CI checks pass before merging into `main`

bun.lockb

176 KB
Binary file not shown.

0 commit comments

Comments
 (0)