Skip to content

Commit b1d7992

Browse files
committed
feat: first commit
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
0 parents  commit b1d7992

34 files changed

Lines changed: 16881 additions & 0 deletions

.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
"@vue/cli-plugin-babel/preset"
4+
],
5+
"plugins": [
6+
"@babel/plugin-transform-private-methods"
7+
]
8+
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
// SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
module.exports = {
5+
root: true,
6+
env: {
7+
node: true,
8+
browser: true,
9+
es2021: true,
10+
},
11+
extends: [
12+
'plugin:vue/essential',
13+
'eslint:recommended',
14+
],
15+
parserOptions: {
16+
parser: '@babel/eslint-parser',
17+
requireConfigFile: false,
18+
},
19+
rules: {
20+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
21+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
22+
},
23+
}

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: CC0-1.0
3+
4+
* @LibreSign/maintainers

.github/workflows/node.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: Node CI
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches:
10+
- main
11+
12+
permissions:
13+
contents: read
14+
15+
concurrency:
16+
group: node-${{ github.head_ref || github.run_id }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
23+
name: NPM build and lint
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
with:
28+
persist-credentials: false
29+
30+
- name: Read package.json node and npm engines version
31+
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
32+
id: versions
33+
with:
34+
fallbackNode: '^20'
35+
fallbackNpm: '^10'
36+
37+
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
38+
uses: actions/setup-node@v4
39+
with:
40+
node-version: ${{ steps.versions.outputs.nodeVersion }}
41+
42+
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
43+
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
44+
45+
- name: Install dependencies
46+
env:
47+
CYPRESS_INSTALL_BINARY: 0
48+
PUPPETEER_SKIP_DOWNLOAD: true
49+
run: npm ci
50+
51+
- name: Lint
52+
run: npm run lint
53+
54+
- name: Build library
55+
run: npm run build:lib
56+
57+
- name: Check build changes
58+
run: |
59+
bash -c "[[ ! \"`git status --porcelain `\" ]] || (echo 'Please recompile and commit the assets' && exit 1)"
60+
61+
- name: Show changes on failure
62+
if: failure()
63+
run: |
64+
git status
65+
git --no-pager diff
66+
exit 1

.github/workflows/npm-publish.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: Publish to npm
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
id-token: write
14+
15+
jobs:
16+
publish:
17+
runs-on: ubuntu-latest
18+
19+
name: Build and publish to npm
20+
steps:
21+
- name: Check actor permission level
22+
uses: skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2.1
23+
with:
24+
require: admin
25+
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Read package.json node and npm engines version
30+
uses: skjnldsv/read-package-engines-version-actions@8205673bab74a63eb9b8093402fd9e0e018663a1 # v2.2
31+
id: versions
32+
with:
33+
fallbackNode: '^20'
34+
fallbackNpm: '^10'
35+
36+
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ steps.versions.outputs.nodeVersion }}
40+
registry-url: 'https://registry.npmjs.org'
41+
42+
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
43+
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
44+
45+
- name: Install dependencies & build
46+
env:
47+
CYPRESS_INSTALL_BINARY: 0
48+
run: |
49+
npm i
50+
npm run build:lib
51+
52+
- name: Publish to npm
53+
run: npm publish --provenance --access public
54+
env:
55+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
56+
57+
- name: Setup Github Package Registry
58+
uses: actions/setup-node@v4
59+
with:
60+
registry-url: 'https://npm.pkg.github.com'
61+
62+
- name: Publish to GitHub Packages
63+
run: npm publish
64+
env:
65+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pages.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: Deploy A DEMO
5+
6+
on:
7+
workflow_dispatch:
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
22+
- name: Install & Build
23+
run: |
24+
npm i
25+
npm install -g cross-env
26+
cross-env PUBLIC_PATH=/pdf-elements/ npm run build
27+
28+
- name: Deploy
29+
uses: JamesIves/github-pages-deploy-action@v4
30+
with:
31+
branch: gh-pages
32+
folder: dist

.github/workflows/reuse.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
name: REUSE Compliance Check
5+
6+
on:
7+
pull_request:
8+
push:
9+
branches:
10+
- main
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
reuse:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
- name: REUSE Compliance Check
23+
uses: fsfe/reuse-action@v4

.gitignore

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
# Dependencies
5+
node_modules/
6+
7+
# Build outputs
8+
dist/
9+
build/
10+
11+
# IDE
12+
.idea
13+
.vscode
14+
*.iml
15+
16+
# OS
17+
.DS_Store
18+
Thumbs.db
19+
20+
# Logs
21+
*.log
22+
npm-debug.log*
23+
yarn-debug.log*
24+
yarn-error.log*
25+
lerna-debug.log*
26+
27+
# Testing
28+
coverage/
29+
.nyc_output
30+
31+
# Misc
32+
.env
33+
.env.local
34+
.env.*.local
35+
*.pem
36+
.cache

.npmignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
4+
# Source files
5+
src/
6+
examples/
7+
8+
# Config files
9+
.babelrc
10+
.eslintrc.js
11+
vue.config.js
12+
postcss.config.js
13+
14+
# Git
15+
.git/
16+
.gitignore
17+
18+
# IDE
19+
.idea
20+
.vscode
21+
*.iml
22+
23+
# CI/CD
24+
.github/
25+
26+
# Development
27+
node_modules/
28+
*.log
29+
30+
# Testing
31+
coverage/
32+
.nyc_output
33+
34+
# Misc
35+
.env
36+
.env.local
37+
*.pem

0 commit comments

Comments
 (0)