Skip to content

Commit

Permalink
fix README; nix fancy boilerplate stuff; add test to GH Actions; bump…
Browse files Browse the repository at this point in the history
… version
  • Loading branch information
Michael Warner authored and Michael Warner committed Sep 13, 2023
1 parent 9dc6e73 commit e61c14d
Show file tree
Hide file tree
Showing 14 changed files with 6,168 additions and 19,143 deletions.
28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

42 changes: 0 additions & 42 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

18 changes: 15 additions & 3 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Reusable workflow for PRs; to eject, you can replace this file with
# https://github.com/ryansonshine/ryansonshine/blob/main/.github/workflows/pr.yml
name: Pull Request

on: [pull_request]

jobs:
build:
uses: ryansonshine/ryansonshine/.github/workflows/pr.yml@main
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x, 18.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build --if-present
- run: npm test
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm test
- run: npm run build
- run: npm publish --access=public
env:
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/release.yml

This file was deleted.

1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/prepare-commit-msg

This file was deleted.

52 changes: 0 additions & 52 deletions .vscode/launch.json

This file was deleted.

31 changes: 1 addition & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ npm install @michaelallenwarner/el-is
## Usage

```ts
import { elIs } from 'el-is';
import { elIs } from '@michaelallenwarner/el-is';

const htmlElement = document.querySelector('section'); // `HTMLElement | null`
if (htmlElement && elIs(htmlElement, 'SECTION')) {
Expand Down Expand Up @@ -87,32 +87,3 @@ A few more notes:
#### Returns

`el` is `E` & { `tagName`: `T` }

<!-- markdownlint-disable-next-line MD053 -->
[build-img]:https://github.com/MichaelAllenWarner/el-is/actions/workflows/release.yml/badge.svg
<!-- markdownlint-disable-next-line MD053 -->
[build-url]:https://github.com/MichaelAllenWarner/el-is/actions/workflows/release.yml
<!-- markdownlint-disable-next-line MD053 -->
[downloads-img]:https://img.shields.io/npm/dt/typescript-npm-package-template
<!-- markdownlint-disable-next-line MD053 -->
[downloads-url]:https://www.npmtrends.com/typescript-npm-package-template
<!-- markdownlint-disable-next-line MD053 -->
[npm-img]:https://img.shields.io/npm/v/typescript-npm-package-template
<!-- markdownlint-disable-next-line MD053 -->
[npm-url]:https://www.npmjs.com/package/typescript-npm-package-template
<!-- markdownlint-disable-next-line MD053 -->
[issues-img]:https://img.shields.io/github/issues/MichaelAllenWarner/el-is
<!-- markdownlint-disable-next-line MD053 -->
[issues-url]:https://github.com/MichaelAllenWarner/el-is/issues
<!-- markdownlint-disable-next-line MD053 -->
[codecov-img]:https://codecov.io/gh/MichaelAllenWarner/el-is/branch/main/graph/badge.svg
<!-- markdownlint-disable-next-line MD053 -->
[codecov-url]:https://codecov.io/gh/MichaelAllenWarner/el-is
<!-- markdownlint-disable-next-line MD053 -->
[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
<!-- markdownlint-disable-next-line MD053 -->
[semantic-release-url]:https://github.com/semantic-release/semantic-release
<!-- markdownlint-disable-next-line MD053 -->
[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
<!-- markdownlint-disable-next-line MD053 -->
[commitizen-url]:http://commitizen.github.io/cz-cli/
Loading

0 comments on commit e61c14d

Please sign in to comment.