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
60 changes: 0 additions & 60 deletions .babelrc.js

This file was deleted.

40 changes: 40 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "react-vtree",
"image": "ghcr.io/ausginer/devimages/node:latest",
"workspaceFolder": "/workspaces/react-vtree",
"runArgs": ["--name=reactvtree_dev"],
"containerEnv": {
"PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD": "1",
"CODEX_HOME": "/workspaces/react-vtree/.agents/codex"
},
"forwardPorts": [9876, 6006, 5176, 24678],
"remoteUser": "node",
"updateRemoteUserUID": true,
"mounts": [
{
"source": "${localWorkspaceFolderBasename}_nodemodules",
"target": "${containerWorkspaceFolder}/node_modules",
"type": "volume"
}
],
"customizations": {
"vscode": {
"extensions": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"EditorConfig.EditorConfig",
"runem.lit-plugin",
"openai.chatgpt",
"vitest.explorer",
"github.vscode-github-actions",
"oxc.oxc-vscode",
"YoavBls.pretty-ts-errors",
"acoreyj.restart-ts-eslint-server",
"TypeScriptTeam.native-preview",
"eamodio.gitlens",
"unifiedjs.vscode-mdx"
]
}
},
"postCreateCommand": "bash .devcontainer/post-create.sh"
}
4 changes: 4 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -e

sudo chown -R node:node /workspaces/react-vtree/node_modules
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

19 changes: 0 additions & 19 deletions .eslintrc

This file was deleted.

59 changes: 27 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
name: CI

on:
workflow_dispatch:
push:
branches: [master]
paths:
- '.github/workflows/ci.yml'
- '__stories__/**'
- '__tests__/**'
- '.storybook/**'
- '.lintstagedrc.json'
- '.oxfmtrc.json'
- '.oxlintrc.json'
- '.prettierrc.json'
- 'src/**'
- 'scripts'
- '.eslintignore'
- '.eslintrc'
- '.prettierignore'
- '.prettierrc'
- 'babel.config.json'
- 'jest.config.js'
- 'eslint.config.ts'
- 'package.json'
- 'package-lock.json'
- 'sonar-project.properties'
- 'tsdown.config.ts'
- 'tsconfig.json'
- 'tsconfig.prod.json'
- 'vitest.config.ts'
pull_request:
branches: [master]
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/ci.yml'
- '__stories__/**'
- '__tests__/**'
- '.storybook/**'
- '.lintstagedrc.json'
- '.oxfmtrc.json'
- '.oxlintrc.json'
- '.prettierrc.json'
- 'src/**'
- 'scripts'
- '.eslintignore'
- '.eslintrc'
- '.prettierignore'
- '.prettierrc'
- 'babel.config.json'
- 'jest.config.js'
- 'eslint.config.ts'
- 'package.json'
- 'package-lock.json'
- 'sonar-project.properties'
- 'tsdown.config.ts'
- 'tsconfig.json'
- 'tsconfig.prod.json'
- 'vitest.config.ts'
jobs:
testing:
name: Testing and Analysis
Expand All @@ -44,23 +47,15 @@ jobs:

steps:
- name: Checkout project code
uses: actions/checkout@v2
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Use Node.js 14.x
uses: actions/setup-node@v1
- name: Use Node.js LTS
uses: actions/setup-node@v6
with:
node-version: 14.x
cache: npm
node-version: lts/*
- name: Installation
run: npm ci
- name: Linting
- name: Check
run: npm run check
- name: Testing
run: npm run test:coverage
env:
CI: true
- name: Analysis
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,19 @@
# testing
/.nyc_output
/coverage
/storybook-static

# production
/dist
/.cache
/.vite
/.vitest

# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*

.agents/codex
4 changes: 0 additions & 4 deletions .lintstagedrc

This file was deleted.

4 changes: 4 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.{ts,tsx,mts,cts,js,mjs,cjs}": ["oxfmt --write", "eslint --fix"],
"*.{json,md}": ["oxfmt --write"]
}
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
git-tag-version=false
prefer-dedupe=true
save-exact=true
7 changes: 7 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"singleQuote": true,
"printWidth": 80,
"trailingComma": "all",
"embeddedLanguageFormatting": "auto"
}
Loading