Skip to content

Commit fd72a7d

Browse files
feat: initial migration from @guidepup/guidepup
0 parents  commit fd72a7d

27 files changed

+4009
-0
lines changed

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.github
2+
.vscode
3+
docs
4+
lib
5+
node_modules
6+
.eslintrc.js
7+
jest.config.js

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
root: true,
3+
parser: "@typescript-eslint/parser",
4+
plugins: ["@typescript-eslint"],
5+
extends: [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/recommended",
8+
"prettier",
9+
],
10+
rules: { "sort-imports": ["error", { ignoreCase: true }] },
11+
};

.github/CODEOWNERS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @cmorten

.github/CONTRIBUTING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Contributing to this repository
2+
3+
First of all, thanks for taking the time to read this document and contributing to our codebase!
4+
5+
## Getting started
6+
7+
If you're working on an existing issue then awesome! Let us know by dropping a comment in the issue.
8+
9+
If it's a new bug fix or feature that you would like to contribute, then please raise an issue so it can be tracked (and to help out others who are experiencing the same issue / want the new thing know that it's being looked at!). Be sure to check for existing issues before raising your own!
10+
11+
## Working on your feature
12+
13+
### Branching
14+
15+
On this project we follow mainline development (or trunk based development), and our default branch is `main`.
16+
17+
Therefore you need to branch from `main` and merge into `main`.
18+
19+
### Coding style
20+
21+
Generally try to match the style and conventions of the code around your changes. Ultimately we want code that is clear, concise, consistent and easy to read.
22+
23+
We use `eslint` and `prettier` for linting. You can check and correct the code style using the following commands:
24+
25+
```console
26+
# Check linting
27+
yarn lint
28+
29+
# Fix linting
30+
yarn lint:fix
31+
```
32+
33+
### Tests
34+
35+
Before opening a PR, please run the following command to make sure your branch will build and pass all the checks and tests:
36+
37+
```console
38+
yarn test
39+
```
40+
41+
## Opening a PR
42+
43+
Once you're confident your branch is ready to review, open a PR against `main` on this repo.
44+
45+
Please use the PR template as a guide, but if your change doesn't quite fit it, feel free to customize.
46+
47+
## Merging and publishing
48+
49+
When your feature branch / PR has been tested and has an approval, it is then ready to merge. Please contact a maintainer to action the merge.

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [cmorten]

.github/ISSUE_TEMPLATE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Issue
2+
3+
Setup:
4+
5+
- Node version: <replace_with_node_version (try `node --version`)>
6+
- Package version: <replace_with_package_version>
7+
- OS Platform: <replace_with_os_platform>
8+
- OS Release: <replace_with_os_release_version>
9+
10+
## Details
11+
12+
> Please replace this quote block with the details of the feature / bug you wish to be addressed. If it is a bug please do your best to add steps to reproduce.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Issue
2+
3+
Fixes #<issue_number>.
4+
5+
## Details
6+
7+
> Please replace this quote block with a brief summary of PR purpose and code changes.
8+
9+
## CheckList
10+
11+
- [ ] Has been tested (where required).
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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: [ main ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ main ]
20+
schedule:
21+
- cron: '34 4 * * 6'
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@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
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@v2
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@v2
71+
continue-on-error: true

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: 20
15+
registry-url: https://registry.npmjs.org/
16+
always-auth: true
17+
- run: yarn install --frozen-lockfile
18+
- run: npm publish --access public
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
21+
CI: true

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 20
17+
- run: yarn install --frozen-lockfile
18+
- run: yarn ci

0 commit comments

Comments
 (0)