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
24 changes: 2 additions & 22 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,41 +14,21 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:import/recommended',
// 'plugin:@typescript-eslint/recommended',
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:prettier/recommended',
'plugin:vue/recommended',
],
rules: {
// Prettier rules (optional overrides, Prettier is opinionated by default)
'prettier/prettier': 'error',

// Code quality rules
'no-console': 'warn',
'no-debugger': 'error',

// enforce esm
'import/no-commonjs': 'error',

// TS-specific strictness
// '@typescript-eslint/no-floating-promises': 'error',
// '@typescript-eslint/no-misused-promises': 'error',
// '@typescript-eslint/explicit-function-return-type': 'off', // optional
// '@typescript-eslint/consistent-type-imports': 'warn',

// // Optional: strict null rules
// '@typescript-eslint/strict-boolean-expressions': 'warn',
},
settings: {
'import/resolver': {
'typescript-bun': {
project: true,
alwaysTryTypes: true,
},
'exports': true,
'node': true,
exports: true,
node: true,
},
},
};
76 changes: 10 additions & 66 deletions .github/workflows/pr-docs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,79 +12,23 @@ jobs:
matrix:
os:
- ubuntu-24.04
node-version:
- "20"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache version builds
uses: actions/cache@v4
with:
key: lando-mvb-docs
path: docs/.vitepress/cache/@lando/mvb
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v4
key: tanaabsite-mvb-docs
path: .vitepress/cache/@tanaab/mvb
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
bun-version-file: .bun-version
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile

# Run tests
run: bun install --no-save --frozen-lockfile
- name: Run linter
run: npm run lint
- name: Test mvb
run: npm run docs:mvb
run: bun run lint
# - name: Test mvb
# run: npm run mvb
- name: Test build
run: npm run docs:build

lando-docs-tests:
runs-on: ${{ matrix.os }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEBUG: "@lando/*"
strategy:
matrix:
os:
- ubuntu-24.04
node-version:
- "20"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Bundle Deps
uses: lando/prepare-release-action@v3
with:
lando-plugin: true
version: dev
sync: false
- name: Install pkg dependencies
run: npm clean-install --prefer-offline --frozen-lockfile --production
- name: Package into node binary
uses: lando/pkg-action@v6
id: pkg-action
with:
entrypoint: bin/lando
filename: lando
node-version: ${{ matrix.node-version }}
options: --options dns-result-order=ipv4first
upload: false
pkg: "@yao-pkg/pkg@5.16.1"
- name: Install full deps
run: npm clean-install --prefer-offline --frozen-lockfile
- name: Setup lando ${{ steps.pkg-action.outputs.file }}
uses: lando/setup-lando@v3
with:
lando-version: ${{ steps.pkg-action.outputs.file }}
telemetry: false
config: |
setup.skipCommonPlugins=true
- name: Lando tests
run: |
lando start
lando vitepress build docs
run: bun run build
16 changes: 5 additions & 11 deletions .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,14 @@ jobs:
matrix:
os:
- ubuntu-24.04
node-version:
- "20"
steps:
# Install deps and cache
- name: Checkout code
uses: actions/checkout@v4
- name: Install node ${{ matrix.node-version }}
uses: actions/setup-node@v4
- name: Install Bun
uses: oven-sh/setup-bun@v2
with:
node-version: ${{ matrix.node-version }}
cache: npm
bun-version-file: .bun-version
- name: Install dependencies
run: npm clean-install --prefer-offline --frozen-lockfile

# Run the linter
run: bun install --no-save --frozen-lockfile
- name: Run code linter
run: npm run lint
run: bun run lint
87 changes: 0 additions & 87 deletions .github/workflows/pr-release-tests.yml

This file was deleted.

Loading