Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.0 Release #3

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"projectName": "html-to-latex",
"projectOwner": "jdalrymple",
"repoType": "github",
"repoHost": "https://github.com",
"files": ["README.md"],
"imageSize": 25,
"commit": false,
"wrapperTemplate": "<p><%= bodyContent %></p>",
"commitConvention": "angular",
"contributorTemplate": "<a href=\"<%= contributor.profile %>\"><img src=\"https://images.weserv.nl/?url=<%= contributor.avatar_url %>&h=<%= options.imageSize %>&w=<%= options.imageSize %>&fit=cover&mask=circle&maxage=7d\" alt=\"<%= contributor.name %>\"/>",
"contributors": [
{
"login": "jdalrymple",
"name": "Justin Dalrymple",
"avatar_url": "https://avatars3.githubusercontent.com/u/3743662?v=4",
"profile": "https://github.com/jdalrymple",
"contributions": ["code", "review", "maintenance", "bug", "ideas", "doc", "test", "infra"]
}
],
"contributorsPerLine": 26
}
63 changes: 63 additions & 0 deletions .autorc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
noVersionPrefix: true

plugins:
- npm
- released
- first-time-contributor
- all-contributors

prereleaseBranches:
- next

noDefaultLabels: true

labels:
- name: breaking
changelogTitle: 💥 Breaking Change
description: Changes are not backwards compatible
releaseType: major

- name: type:feature
changelogTitle: ✨ Feature
description: Changes add a new feature
releaseType: minor

- name: type:bug
changelogTitle: 🐛 Bug Fix
description: Changes fix a minor bug
releaseType: minor

- name: type:hot fix
changelogTitle: 🚑 Hot Fix
description: Changes fix a critical bug
releaseType: minor

- name: type:technical debt
changelogTitle: 🔨 Technical Debt
description: Changes only affect the internal code, improving performance/quality
releaseType: patch

- name: type:security
changelogTitle: 🔒 Security
description: Changes improve the code security
releaseType: patch

- name: type:dependencies
changelogTitle: ↕️ Dependencies
description: Changes upgrade or remove dependencies
releaseType: patch

- name: type:types
changelogTitle: 🗃️ Typescript Definitions
description: Changes only affect typescript definitions
releaseType: patch

- name: type:testing
changelogTitle: 🚨 Tests
description: Changes affect test code
releaseType: none

- name: type:documentation
changelogTitle: 📚 Documentation
description: Changes only affect the documentation
releaseType: none
21 changes: 3 additions & 18 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
engines:
shellcheck:
enabled: true
duplication:
enabled: true
config:
languages:
javascript:
mass_threshold: 70
count_threshold: 3
version: '2'

ratings:
paths:
- '**.js'

exclude_paths:
- node_modules
- coverage
- dist
exclude_patterns:
- '**/test/'
40 changes: 32 additions & 8 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,53 @@
env:
node: true
jest/globals: true

extends:
- airbnb-base
- plugin:@typescript-eslint/recommended-requiring-type-checking
- plugin:prettier/recommended
- plugin:jest/recommended

parser: '@typescript-eslint/parser'

parserOptions:
project:
- './tsconfig.json'

ignorePatterns:
- node_modules/
- dist/
- '**/rollup.config.js'

plugins:
- '@typescript-eslint'
- prettier
- import

rules:
no-console:
- error
- allow:
- debug

no-use-before-define:
- error
- functions: false
classes: false

import/prefer-default-export: off
import/extensions:

sort-imports:
- error
- never
- json: always
- ignoreCase: false
ignoreDeclarationSort: true
ignoreMemberSort: false
memberSyntaxSortOrder:
- none
- all
- multiple
- single
allowSeparatedGroups: true

settings:
import/resolver:
typescript:
node:
extensions:
- .js
extensions: ['.mjs', '.cjs', '.js', '.jsx', '.json', '.mts', '.cts', '.ts', '.tsx', '.d.ts']
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: '🐞 Bug report'
labels: bug
about: Something is not working as it should
---

**Description**

- Node.js version:
- Package version:
- OS & version:

<!-- *(Brief description of your issue here)*

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.) -->

**Steps to reproduce**

<!-- *(Tell us how to reproduce this issue. Please provide a working demo, you can use this template as a base)* -->

**Expected behaviour**

<!-- *(What is supposed to happen?)* -->

**Actual behaviour**

<!-- *(What happens instead?)* -->

**Possible fixes**

<!-- *(Any possible suggestions on how to fix this problem)* -->

**Checklist**

- [ ] I have checked that this is not a duplicate issue.
- [ ] I have read the documentation.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-proposal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: '🚀 Feature request'
labels: feature
about: Suggest an idea
---

**Description**

<!-- *(Brief description of the feature)* -->

**Proposal**

<!-- *(Outline how you plan to implement this feature if you have one)* -->

**Checklist**

- [ ] I have checked that this is not a duplicate issue.
- [ ] I have read the documentation.
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/3-question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: '❓ Question'
labels: question
about: Something is unclear or needs to be discussed
---

<!-- Please make sure the new issue you are opening is not a duplicate -->

**Description**

<!-- *(Brief description of your question here)*-->

**Checklist**

- [ ] I have checked that this is not a duplicate issue.
- [ ] I have read the documentation.
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/4-technical-debt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: '🚧 Technical Debt'
labels: 'technical debt'
about: Suggest an improvement to the codebase
---

**Description**

<!-- *(Brief description of your issue here)*

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.) -->

**Possible solutions**

<!-- *(Any possible suggestions on how to improve this code)* -->

**Checklist**

- [ ] I have checked that this is not a duplicate issue.
- [ ] I have read the documentation.
32 changes: 32 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Setup'

runs:
using: 'composite'
steps:
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
shell: bash
run: pnpm install
Loading
Loading