Skip to content

Commit

Permalink
properly init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Mar 25, 2024
1 parent 5ecfc7e commit 05e1631
Show file tree
Hide file tree
Showing 16 changed files with 526 additions and 488 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ To get ready to work on the codebase, please do the following:
1. Fork & clone the repository, and make sure you're on the **main** branch
2. Run `pnpm i --frozen-lockfile`
3. Code!
4. Run `pnpm lint`, `pnpm typecheck` and `pnpm test`
5. [Submit a pull request](https://github.com/h-projects/g-detector/compare)
4. Run `pnpm lint`, `pnpm check`, `pnpm typecheck` and `pnpm test`
5. [Submit a pull request](https://github.com/h-projects/aytchertools/compare)
25 changes: 0 additions & 25 deletions .github/actions/pnpm/action.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Package
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node 20
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build

- name: Publish to npm
run: pnpm publish --provenance --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
18 changes: 15 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
uses: ./.github/actions/pnpm
run: pnpm install --frozen-lockfile

- name: Run ESLint
run: pnpm run lint
Expand All @@ -43,13 +47,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
uses: ./.github/actions/pnpm
run: pnpm install --frozen-lockfile

- name: Run TypeScript compiler
run: pnpm run typecheck
Expand All @@ -61,13 +69,17 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v3

- name: Install Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'

- name: Install dependencies
uses: ./.github/actions/pnpm
run: pnpm install --frozen-lockfile

- name: Run Vitest
run: pnpm run test
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "never"
"source.organizeImports.biome": "explicit"
},
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
"files.eol": "\n",
"files.insertFinalNewline": true,
"npm.packageManager": "pnpm",
"typescript.tsdk": "node_modules/typescript/lib"
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2022 Superchupu
Copyright (c) 2024 Aytch Software

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# aytchertools

Something
Aytch Software's H tools

## Usage

```js
import { detect } from 'g-detector';

detect('g', 'medium');
// TODO
```
17 changes: 10 additions & 7 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"defaultBranch": "main",
"useIgnoreFile": true
"$schema": "https://biomejs.dev/schemas/1.6.2/schema.json",
"files": {
"ignore": ["package.json"]
},
"formatter": {
"indentStyle": "space",
Expand All @@ -23,6 +20,12 @@
"enabled": false
},
"organizeImports": {
"enabled": false
"enabled": true
},
"vcs": {
"enabled": true,
"clientKind": "git",
"defaultBranch": "main",
"useIgnoreFile": true
}
}
38 changes: 21 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "g-detector",
"version": "0.1.5",
"description": "A powerful JavaScript library to detect the letter G",
"name": "aytchertools",
"version": "0.1.0",
"description": "Aytch Software's H tools",
"scripts": {
"test": "vitest run",
"build": "tsup",
"check": "biome check .",
"check:apply": "biome check --apply .",
"format": "biome format --write .",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"check": "biome format .",
"format": "biome format --write .",
"typecheck": "tsc --noEmit"
},
"main": "dist/index.js",
Expand All @@ -22,32 +23,35 @@
"files": [
"dist"
],
"author": "Superchupu",
"author": "Aytch Software",
"license": "ISC",
"keywords": [
"gasbot",
"detector",
"aytch-software",
"h"
],
"repository": {
"type": "git",
"url": "git+https://github.com/h-projects/g-detector.git"
"url": "git+https://github.com/h-projects/aytchertools.git"
},
"bugs": {
"url": "https://github.com/h-projects/g-detector/issues"
"url": "https://github.com/h-projects/aytchertools/issues"
},
"homepage": "https://github.com/h-projects/g-detector#readme",
"homepage": "https://github.com/h-projects/aytchertools#readme",
"devDependencies": {
"@biomejs/biome": "^1.5.3",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@biomejs/biome": "^1.6.2",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"eslint": "^8.57.0",
"tsup": "^8.0.2",
"typescript": "^5.3.3",
"vitest": "^1.3.1"
"typescript": "^5.4.3",
"vitest": "^1.4.0"
},
"engines": {
"node": ">=15.0.0"
},
"packageManager": "[email protected]"
"publishConfig": {
"access": "public",
"provenance": true
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit 05e1631

Please sign in to comment.