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
46 changes: 46 additions & 0 deletions .github/workflows/ci.yml
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
name: ci

on:
push:
branches: [main]
pull_request:

permissions:
contents: read

jobs:
build-and-test:
name: Build + Test (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [20, 22]
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: ${{ matrix.node }}
cache: npm
- run: npm ci
- run: npm run build
- run: npm test
- run: npm run lint
- run: npm run format:check

coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "22"
cache: npm
- run: npm ci
- run: npm run build
- run: npm test -- --coverage
- uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -18,7 +18,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [javascript]
language: [javascript-typescript]
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v3
Expand Down
51 changes: 14 additions & 37 deletions .github/workflows/release.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,49 +3,26 @@ name: release
on:
push:
tags:
- 'v*'
- "v*"

permissions:
contents: read
id-token: write # required for npm provenance

jobs:
release:
publish:
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout monorepo
uses: actions/checkout@v7
with:
repository: interscript/interscript

- name: Bootstrap packages
run: ruby bootstrap.rb

- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
working-directory: ruby

- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: '22'
registry-url: https://registry.npmjs.org
node-version: "22"
cache: npm
cache-dependency-path: js/package-lock.json

- name: Install gems
working-directory: ruby
run: bundle install --jobs 4 --retry 3 --with jsexec --without secryst

- name: Test Ruby package
working-directory: ruby
run: bundle exec rake

- name: Test JS package
working-directory: js
run: npm ci && npm run prepareMaps && npm test

- name: Publish to npmjs.org
registry-url: https://registry.npmjs.org
- run: npm ci
- run: npm run build
- run: npm test
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.INTERSCRIPT_NPM_TOKEN }}
working-directory: js
run: |
npm run prepareMaps
npm publish --access public
16 changes: 12 additions & 4 deletions .gitignore
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
/src/maps
/node_modules
node_modules/
dist/
coverage/
*.tsbuildinfo

# Legacy Opal bundle — do not commit (TS port will remove this entirely)
interscript.js
# Editor
.vscode/
.idea/
.DS_Store

# Logs
*.log
npm-debug.log*
7 changes: 0 additions & 7 deletions .prettierrc.json

This file was deleted.

12 changes: 0 additions & 12 deletions CHANGELOG.md

This file was deleted.

42 changes: 0 additions & 42 deletions CONTRIBUTING.md

This file was deleted.

25 changes: 25 additions & 0 deletions LICENSE
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
BSD 2-Clause License

Copyright (c) 2026 Ribose Inc. All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
31 changes: 0 additions & 31 deletions LICENSE.md

This file was deleted.

79 changes: 0 additions & 79 deletions README.adoc

This file was deleted.

Loading
Loading