Skip to content

Commit f9e3f68

Browse files
John Richard Chipps-HardingPauloMFJ
andauthored
Initial Version (#1)
* Initial Version * Tweak * Update test/utils/mockRaf.tsx * Implement v2 use-animation-request * Update README * Tweak * Tweaks * Tweaks * Fix tests + tweaks Co-authored-by: Paulo <[email protected]>
1 parent 8d14dc3 commit f9e3f68

22 files changed

+1223
-300
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @digitaljohn
1+
* @paulomfj @digitaljohn

.github/ISSUE_TEMPLATE/REPORT_A_BUG.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/REPORT_A_DOCS_ISSUE.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/REQUEST_A_FEATURE.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 0 additions & 12 deletions
This file was deleted.
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [master]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [master]
20+
schedule:
21+
- cron: "20 23 * * 0"
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["javascript"]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://git.io/codeql-language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v2
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v1
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
52+
53+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54+
# If this step fails, then you should remove it and run the build manually (see below)
55+
- name: Autobuild
56+
uses: github/codeql-action/autobuild@v1
57+
58+
# ℹ️ Command-line programs to run using the OS shell.
59+
# 📚 https://git.io/JvXDl
60+
61+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62+
# and modify them (or add more) to build your code if your project
63+
# uses a compiled language
64+
65+
#- run: |
66+
# make bootstrap
67+
# make release
68+
69+
- name: Perform CodeQL Analysis
70+
uses: github/codeql-action/analyze@v1

.github/workflows/npmpublish.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
# This workflow integrates a collection of open source static analysis tools
7+
# with GitHub code scanning. For documentation, or to provide feedback, visit
8+
# https://github.com/github/ossar-action
9+
name: OSSAR
10+
11+
on:
12+
push:
13+
branches: [master]
14+
pull_request:
15+
# The branches below must be a subset of the branches above
16+
branches: [master]
17+
schedule:
18+
- cron: "26 15 * * 3"
19+
20+
jobs:
21+
OSSAR-Scan:
22+
# OSSAR runs on windows-latest.
23+
# ubuntu-latest and macos-latest support coming soon
24+
runs-on: windows-latest
25+
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v2
29+
30+
# Ensure a compatible version of dotnet is installed.
31+
# The [Microsoft Security Code Analysis CLI](https://aka.ms/mscadocs) is built with dotnet v3.1.201.
32+
# A version greater than or equal to v3.1.201 of dotnet must be installed on the agent in order to run this action.
33+
# GitHub hosted runners already have a compatible version of dotnet installed and this step may be skipped.
34+
# For self-hosted runners, ensure dotnet version 3.1.201 or later is installed by including this action:
35+
# - name: Install .NET
36+
# uses: actions/setup-dotnet@v1
37+
# with:
38+
# dotnet-version: '3.1.x'
39+
# Run open source static analysis tools
40+
- name: Run OSSAR
41+
uses: github/ossar-action@v1
42+
id: ossar
43+
44+
# Upload results to the Security tab
45+
- name: Upload OSSAR results
46+
uses: github/codeql-action/upload-sarif@v1
47+
with:
48+
sarif_file: ${{ steps.ossar.outputs.sarifFile }}
Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
name: Test
1+
name: test
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
branches:
6+
- master
47

58
jobs:
69
test:
710
runs-on: ubuntu-latest
811

912
strategy:
1013
matrix:
11-
node-version: [10.x, 12.x, 14.x]
14+
node-version: [12.x, 14.x, 16.x]
1215

1316
steps:
1417
- uses: actions/checkout@v1
@@ -18,11 +21,11 @@ jobs:
1821
with:
1922
node-version: ${{ matrix.node-version }}
2023

21-
- name: npm install, build, and test
24+
- name: npm install and build
2225
run: |
2326
npm ci
2427
npm run build --if-present
2528
npm run lint
26-
npm test
29+
npm run test
2730
env:
2831
CI: true

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [12.x, 14.x, 16.x]
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
18+
- name: Use Node.js ${{ matrix.node-version }}
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: ${{ matrix.node-version }}
22+
23+
- name: npm install and build
24+
run: |
25+
npm ci
26+
npm run build --if-present
27+
npm run lint
28+
npm run test
29+
env:
30+
CI: true
31+
32+
publish-npm:
33+
needs: test
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-node@v1
38+
with:
39+
node-version: 16
40+
registry-url: https://registry.npmjs.org/
41+
- run: npm ci
42+
- run: npm publish --access=public
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)