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
34 changes: 34 additions & 0 deletions .github/workflows/publish-jsr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish to JSR

on:
push:
tags:
- '*.*.*'

permissions:
contents: read
id-token: write

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v6

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.8.0

- name: Deno CI
run: deno ci

- name: Run linter
run: deno task lint

- name: Run tests
run: deno task test

- name: Publish package
run: deno publish
45 changes: 20 additions & 25 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,31 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno

name: Tests

on:
push:
pull_request:
workflow_dispatch:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read
contents: read

jobs:
test:
runs-on: ubuntu-latest
test:
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v6

steps:
- name: Setup repo
uses: actions/checkout@v4
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.8.0

- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: 2.8.0
- name: Deno CI
run: deno ci

- name: Run linter
run: deno task lint
- name: Run linter
run: deno task lint

- name: Run tests
run: deno task test
- name: Run tests
run: deno task test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/deno.lock
/examples/feature--*
/examples/readme--*
/examples/usage--*
Expand Down
34 changes: 33 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
{
"name": "@fontoxml/docxml",
"version": "5.22.0",
"description": "A module for making .docx documents from scratch or from an existing .docx or .dotx template.",
"description": "Create, modify, and parse Microsoft Word (.docx) documents programmatically. Build documents from scratch or use existing templates. Supports vanilla JavaScript and JSX syntax with full TypeScript support.",
"license": "MIT",
"author": "FontoXML",
"keywords": [
"docx",
"word",
"document",
"markup",
"office",
"microsoft-word",
"template"
],
"homepage": "https://jsr.io/@fontoxml/docxml",
"repository": {
"type": "git",
"url": "https://github.com/fontoxml/docxml"
},
"bugs": "https://github.com/fontoxml/docxml/issues",
"exports": "./mod.ts",
"publish": {
"exclude": [
".github/",
".vscode/",
".npmrc",
"deno.lock",
"assets/",
"coverage/",
"docs/",
"eslint.config.mjs",
"examples/",
"playground/",
".prettierrc.json",
"inspect.ts",
"lib/utilities/src/tests.ts",
"**/*.test.ts",
"**/*.test.tsx",
"**/test/**",
"**/__tests__/**"
]
},
"compilerOptions": {
"strict": true,
"lib": ["deno.ns", "dom", "dom.iterable"],
Expand Down
Loading