Skip to content
Open
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
6 changes: 1 addition & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
}
},
"settings": {},
"extensions": [
"rvest.vs-code-prettier-eslint",
"wix.vscode-import-cost",
"eamodio.gitlens"
],
"extensions": ["oxc.oxc-vscode", "wix.vscode-import-cost", "eamodio.gitlens"],
"postCreateCommand": "npm ci --ignore-scripts",
"remoteUser": "node"
}
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ updates:
schedule:
interval: daily
allow:
- dependency-name: '@jspm/generator'
- dependency-name: '@jspm/import-map'
- dependency-name: "@jspm/generator"
- dependency-name: "@jspm/import-map"
51 changes: 37 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,57 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x, 24.x, 26.x]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js ${{ matrix.node-version }}
- name: Install Node.js 26
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: npm install

node-version: 26.x

- name: Setup Chomp
uses: guybedford/chomp-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


- name: Install dependencies
run: npm ci --ignore-scripts

- name: Build
run: chomp build

- name: Lint
run: chomp lint


- name: Check formatting
run: chomp format:check

- name: Run tests
run: chomp test
env:
CI: true
CI: true

- name: Upload compiled tests
uses: actions/upload-artifact@v4
with:
name: compiled-tests
path: dist

runtime:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x, 24.x, 26.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci --omit=dev --ignore-scripts
- uses: actions/download-artifact@v4
with:
name: compiled-tests
path: dist
- run: node --test dist/tests/*.test.js tests/e2e/test.js
59 changes: 29 additions & 30 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ name: "CodeQL"

on:
push:
branches: [ main ]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main]
schedule:
- cron: '27 6 * * 2'
- cron: "27 6 * * 2"

jobs:
analyze:
Expand All @@ -32,41 +32,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
language: ["javascript"]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
.bin/
.cache
.eslintcache
dist
36 changes: 0 additions & 36 deletions .husky/_/husky.sh

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/post-merge

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

6 changes: 6 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 120,
"sortPackageJson": false,
"ignorePatterns": ["dist/**", "tmp/**", "node_modules/**", ".cache/**", "package-lock.json", "node.importmap"]
}
10 changes: 10 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript"],
"categories": {
"correctness": "error"
},
"env": {
"node": true
}
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["oxc.oxc-vscode"]
}
6 changes: 2 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
{
"editor.wordWrap": "on",
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"eslint.packageManager": "pnpm",
"eslint.run": "onSave",
"editor.defaultFormatter": "oxc.oxc-vscode",
"editor.formatOnSave": true,
"testing.automaticallyOpenPeekView": "never"
}
30 changes: 8 additions & 22 deletions chompfile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,47 +19,37 @@ name = 'clean'
run = 'rm -rf dist'

[[task]]
name = 'commit'
run = 'git-cz'

[[task]]
name = 'default'
run = 'npm install --no-save react-dom@17.0.2 @teleporthq/teleport-project-generator-react@0.25.4 @teleporthq/teleport-project-generator-preact@0.20.0 chalk express morgan react-router@5.2.1 react-router-dom@5.2.1'
name = 'format'
run = 'npm run format'

[[task]]
name = 'format'
run = 'prettier --write **/*.{ts,json,md}'
name = 'format:check'
run = 'npm run format:check'

[[task]]
name = 'lint'
run = 'eslint src --ext .ts'
deps = ['src/#.ts']
run = 'npm run lint'

[[task]]
name = 'lint:fix'
run = 'eslint src --ext .ts --fix'
deps = ['src/#.ts']
run = 'npm run lint:fix'

[[task]]
name = 'post-merge'
deps = ['npm:install', 'build']

[[task]]
name = 'pre-commit'
deps = ['typecheck', 'test:changed', 'lint:fix', 'format']
deps = ['typecheck', 'test:changed', 'lint', 'format:check']

[[task]]
name = 'prepare'
run = 'husky install'
run = 'npm run hooks:install'

[[task]]
name = 'prepublishOnly'
deps = ['test', 'build']

[[task]]
name = 'release'
run = 'release-it'

[[task]]
name = 'server'
deps = ['server:build', 'server:start']
Expand Down Expand Up @@ -97,10 +87,6 @@ run = 'npm run test:unit'
name = 'typecheck'
run = 'tsc --noEmit'

[[task]]
name = 'upgrade'
run = 'npm update --latest'

[[task]]
name = 'dir-size'
run = 'du -hs .cache'
Loading
Loading