Skip to content

Commit

Permalink
Require Node.js 18 and add TypeScript types
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 17, 2023
1 parent c07983e commit ec7233e
Show file tree
Hide file tree
Showing 19 changed files with 317 additions and 462 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.yml]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
3 changes: 3 additions & 0 deletions .github/security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Security Policy

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI
on:
- push
- pull_request
jobs:
test:
name: Node.js ${{ matrix.node-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 16
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
14 changes: 0 additions & 14 deletions .github/workflows/tests.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules
components
build
yarn.lock
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
97 changes: 0 additions & 97 deletions History.md

This file was deleted.

20 changes: 0 additions & 20 deletions LICENSE - MIT

This file was deleted.

14 changes: 0 additions & 14 deletions Makefile

This file was deleted.

34 changes: 0 additions & 34 deletions Readme.md

This file was deleted.

19 changes: 0 additions & 19 deletions component.json

This file was deleted.

Loading

0 comments on commit ec7233e

Please sign in to comment.