Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit beb1fd6

Browse files
authored
Merge pull request #49 from eisberg-labs/fix-48
fix: update dependencies, ci and next-14 example
2 parents 11e8518 + 895fe87 commit beb1fd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+7514
-19811
lines changed

.cspell.json

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

.editorconfig

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
# editorconfig.org
2-
3-
[*]
4-
charset = utf-8
5-
indent_style = space
6-
indent_size = 2
7-
end_of_line = lf
8-
insert_final_newline = true
9-
trim_trailing_whitespace = true
10-
11-
[*.md]
12-
trim_trailing_whitespace = false
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
max_line_length = 120
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.mdx]
16+
trim_trailing_whitespace = false

.eslintignore

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

.eslintrc.js

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

.gitattributes

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

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Continuous Integration
2+
on:
3+
workflow_dispatch:
4+
push:
5+
6+
jobs:
7+
test-and-build:
8+
runs-on: ubuntu-latest
9+
name: Test and build loader
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
- name: Use Node.js
15+
uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: "npm"
19+
- run: npm ci
20+
- run: npm run lint
21+
- run: npm run security
22+
- name: Build loader
23+
run: npm run build
24+
- name: Start Xvfb
25+
run: |
26+
Xvfb :99 -screen 0 1024x768x24 &
27+
export DISPLAY=:99
28+
- name: Test
29+
env:
30+
DISPLAY: :99
31+
run: |
32+
sudo apt update && sudo apt install -y libxtst-dev libpng-dev
33+
npm test

.github/workflows/nodejs.yml

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

.github/workflows/release-please.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
outputs:
16+
tag_name: ${{ steps.release.outputs.tag_name}}
17+
release_created: ${{ steps.release.outputs.release_created}}
18+
steps:
19+
- uses: googleapis/release-please-action@v4
20+
id: release
21+
with:
22+
token: ${{ secrets.GITHUB_TOKEN }}
23+
config-file: release-please-config.json
24+
manifest-file: .release-please-manifest.json
25+
- name: Print release outputs for debugging
26+
continue-on-error: true
27+
run: |
28+
echo "Release outputs:"
29+
echo "${{ toJson(steps.release.outputs) }}"
30+
release-loader:
31+
if: ${{needs.release-please.outputs.release_created}}
32+
runs-on: ubuntu-latest
33+
needs: release-please
34+
steps:
35+
- uses: actions/checkout@v4
36+
with:
37+
fetch-depth: 0
38+
- name: Use Node.js
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 20
42+
cache: "npm"
43+
- run: npm ci
44+
- name: Test
45+
run: |
46+
sudo apt update && sudo apt install -y libxtst-dev libpng-dev
47+
npm test
48+
- run: npm run build
49+
- run: zip -r nextjsnodeloader.zip dist
50+
- name: Upload Release Artifact
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
run: gh release upload ${{ needs.release-please.outputs.tag_name }} nextjsnodeloader.zip
54+
- run: npm publish
55+
env:
56+
NPM_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
57+
if: ${{ steps.release.outputs.release_created }}

.gitignore

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
logs
2-
*.log
3-
npm-debug.log*
4-
.eslintcache
5-
/coverage
6-
/dist
7-
/local
8-
/reports
9-
node_modules
10-
.DS_Store
11-
Thumbs.db
12-
.idea
13-
.vscode
14-
*.sublime-project
15-
*.sublime-workspace
16-
*.iml
17-
test/fixtures/example/build
18-
test/fixtures/example/node_modules
19-
.next
1+
logs
2+
*.log
3+
npm-debug.log*
4+
.eslintcache
5+
/coverage
6+
/dist
7+
/local
8+
/reports
9+
node_modules
10+
.DS_Store
11+
Thumbs.db
12+
.idea
13+
.vscode
14+
*.sublime-project
15+
*.sublime-workspace
16+
*.iml
17+
test/example/build
18+
test/example/node_modules
19+
.next

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 120,
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"bracketSameLine": true,
6+
"trailingComma": "es5",
7+
"singleAttributePerLine": true
8+
}

0 commit comments

Comments
 (0)