Skip to content
Merged
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
14 changes: 14 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
* text eol=lf
*.exe binary
*.png binary
*.jpg binary
*.jpeg binary
*.ico binary
*.icns binary
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
*.ldml binary
*.zip binary
34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Lint

on:
push:
branches: [main]
pull_request:
branches: [main]

permissions:
contents: read

jobs:
lint:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run all linters
run: npm run lint

- name: Run format checking
run: npm run format:check
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ This is a Webpack project configured to build Platform.Bible extensions. The gen

## To install

### Install dependencies:
### Install dependencies

1. Follow the instructions to install [`paranext-core`](https://github.com/paranext/paranext-core#developer-install). We recommend you clone `paranext-core` in the same parent directory in which you cloned this repository so you do not have to [reconfigure paths](#configure-paths-to-paranext-core-repo) to `paranext-core`.
2. In this repo, run `npm install` to install local and published dependencies
Expand Down Expand Up @@ -155,7 +155,7 @@ These steps will walk you through releasing a version on GitHub and bumping the
<details>
<summary>[Optional] Create a new pre-release and bump versions branch manually </summary>

#### Manually create a new pre-release and bump versions branch
### Manually create a new pre-release and bump versions branch

Alternatively, you can create a new pre-release manually:

Expand Down Expand Up @@ -197,7 +197,7 @@ Following are some problems you may encounter while publishing and steps to solv

If you see the following error in the GitHub Actions workflow logs while packaging:

```
```bash
Module build failed (from ./node_modules/swc-loader/src/index.js):
Error: Failed to load native binding
```
Expand All @@ -223,7 +223,7 @@ Then follow [the instructions for customizing the new extension](https://github.
<details>
<summary>[Optional] Creating a new extension manually</summary>

#### Manually create a new extension
### Manually create a new extension

Alternatively, you can create a new extension manually:

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"start:production": "cross-env MAIN_ARGS=\"--extensionDirs $INIT_CWD/dist\" concurrently \"npm:watch:production\" \"npm:start:core\"",
"lint": "npm run lint:scripts && npm run lint:styles",
"lint:scripts": "cross-env NODE_ENV=development eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .",
"lint:styles": "stylelint **/*.{css,scss}",
"lint:styles": "stylelint **/*.{css,scss} --allow-empty-input",
"lint-fix": "npm run lint-fix:scripts && npm run lint:styles -- --fix",
"lint-fix:scripts": "npm run format && npm run lint:scripts",
"postinstall": "tsx ./lib/add-remotes.ts",
Expand Down