Skip to content

Commit aff1f37

Browse files
committed
Restructure the repository
1 parent f830031 commit aff1f37

21 files changed

+3305
-7032
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "badrap/sorted-queue" }],
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/curvy-loops-shout.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@badrap/sorted-queue": minor
3+
---
4+
5+
Add "engines" field to package.json

.devcontainer/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM node:18-alpine
2-
RUN apk add --no-cache git openssh ripgrep
1+
FROM node:22-alpine
2+
RUN apk add --no-cache \
3+
git \
4+
openssh \
5+
ripgrep
6+
RUN mkdir -p /workspace && chown node:node /workspace
37
USER node
4-
RUN mkdir -p /home/node/workspace/node_modules /home/node/workspace/dist
8+
RUN mkdir -p /workspace/node_modules /workspace/dist

.devcontainer/devcontainer.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
{
2-
"name": "Devcontainer",
2+
"name": "@badrap/sorted-queue",
33
"build": {
44
"dockerfile": "Dockerfile"
55
},
66
"postCreateCommand": "npm ci",
77
"remoteUser": "node",
8-
"workspaceFolder": "/home/node/workspace",
9-
"workspaceMount": "source=${localWorkspaceFolder},target=/home/node/workspace,type=bind",
8+
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
9+
"workspaceFolder": "/workspace",
1010
"mounts": [
11-
"type=volume,target=/home/node/workspace/node_modules",
12-
"type=volume,target=/home/node/workspace/dist"
11+
"type=volume,target=/workspace/node_modules",
12+
"type=volume,target=/workspace/dist"
1313
],
1414
"customizations": {
1515
"vscode": {
16-
"extensions": [
17-
"dbaeumer.vscode-eslint",
18-
"esbenp.prettier-vscode",
19-
]
16+
"extensions": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
2017
}
2118
}
2219
}

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on: ["push", "pull_request"]
4+
5+
# Disable all permissions by default, requiring explicit permission definitions for all jobs.
6+
permissions: {}
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
with:
16+
persist-credentials: false
17+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
18+
with:
19+
node-version: 22
20+
cache: npm
21+
- run: npm ci
22+
- run: npm run lint
23+
- run: npm run typecheck
24+
- run: npm test

.github/workflows/main.yml

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

.github/workflows/publish.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
# Disable all permissions by default, requiring explicit permission definitions for all jobs.
11+
permissions: {}
12+
13+
jobs:
14+
check:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
steps:
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
with:
21+
persist-credentials: false
22+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
23+
with:
24+
node-version: 22
25+
cache: npm
26+
registry-url: "https://registry.npmjs.org"
27+
- run: npm ci
28+
- run: npm run lint
29+
- run: npm run typecheck
30+
- run: npm test
31+
32+
publish:
33+
needs: check
34+
runs-on: ubuntu-latest
35+
permissions:
36+
contents: write
37+
id-token: write
38+
pull-requests: write
39+
issues: read
40+
steps:
41+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
42+
with:
43+
persist-credentials: false
44+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
45+
with:
46+
node-version: 22
47+
cache: npm
48+
registry-url: "https://registry.npmjs.org"
49+
# Ensure npm 11.5.1 or later is installed for OIDC authentication.
50+
- name: Update npm
51+
run: npm install -g npm@latest
52+
- name: Install dependencies
53+
run: npm ci
54+
- name: Create Release Pull Request or Publish to npm
55+
id: changesets
56+
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
57+
with:
58+
version: npm run bump
59+
publish: npm run release
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ logs
44
npm-debug.log*
55
yarn-debug.log*
66
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
711

812
# Runtime data
913
pids
@@ -16,11 +20,12 @@ lib-cov
1620

1721
# Coverage directory used by tools like istanbul
1822
coverage
23+
*.lcov
1924

2025
# nyc test coverage
2126
.nyc_output
2227

23-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
2429
.grunt
2530

2631
# Bower dependency directory (https://bower.io/)
@@ -39,12 +44,21 @@ jspm_packages/
3944
# TypeScript v1 declaration files
4045
typings/
4146

47+
# TypeScript cache
48+
*.tsbuildinfo
49+
4250
# Optional npm cache directory
4351
.npm
4452

4553
# Optional eslint cache
4654
.eslintcache
4755

56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
4862
# Optional REPL history
4963
.node_repl_history
5064

@@ -56,10 +70,35 @@ typings/
5670

5771
# dotenv environment variables file
5872
.env
73+
.env.test
5974

60-
# next.js build output
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
6179
.next
6280

63-
# Build directories
64-
dist/
65-
.rts2_cache_*
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port

0 commit comments

Comments
 (0)