Skip to content

Commit

Permalink
chore: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Shakeskeyboarde committed May 9, 2024
0 parents commit 804e59c
Show file tree
Hide file tree
Showing 12 changed files with 4,575 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
pull_request:
branches:
- main

env:
TERM: xterm-256color
FORCE_COLOR: 1

jobs:
pull-request:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Corepack
run: |
set -e
corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Restore
run: |
set -e
pnpm install --frozen-lockfile
- name: Build
run: |
set -e
pnpm build
- name: Test
run: |
set -e
pnpm test
# - name: Publish (dry-run)
# run: |
# set -e
# pnpm -r publish --no-git-checks --dry-run
54 changes: 54 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
on:
push:
branches:
- main

concurrency:
group: ${{ github.workflow }}

env:
TERM: xterm-256color
FORCE_COLOR: 1

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Use Corepack
run: |
set -e
corepack enable
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Restore
run: |
set -e
pnpm install --frozen-lockfile
- name: Build
run: |
set -e
pnpm build
- name: Test
run: |
set -e
pnpm test
# - name: Publish
# run: |
# set -e
# pnpm config --location=project set //registry.npmjs.org/:_authToken '${NPM_TOKEN}'
# pnpm -r publish --no-git-checks
# env:
# NPM_TOKEN: ${{secrets.NPM_TOKEN}}
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.vscode/
node_modules/
lib/
dist/
out/
coverage/

.DS_Store
*.tar
*.gz
*.tgz
*.zip
*.log
13 changes: 13 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2024 Chris Ackerman

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { rational } from 'eslint-config-rational';

export default rational();
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>

<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>UNTITLED</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/index.ts"></script>
</body>

</html>
43 changes: 43 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"private": true,
"name": "UNTITLED",
"description": "",
"version": "0.0.0-prerelease",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/Shakeskeyboarde/UNTITLED.git"
},
"scripts": {
"start": "vite",
"build": "vite build",
"test": "eslint . --max-warnings=0 && vitest run --pass-with-no-tests",
"open-coverage": "open out/coverage/index.html"
},
"files": [
"lib"
],
"publishConfig": {
"access": "public",
"tag": "prerelease"
},
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
}
},
"packageManager": "[email protected]+sha256.22e36fba7f4880ecf749a5ca128b8435da085ecd49575e7fb9e64d6bf4fad394",
"devDependencies": {
"@types/node": "^20.12.11",
"@vitest/coverage-v8": "^1.6.0",
"eslint": "^8",
"eslint-config-rational": "^5.0.13",
"typescript": "^5.4.5",
"vite": "^5.2.11",
"vite-plugin-checker": "^0.6.4",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit 804e59c

Please sign in to comment.