Skip to content

Commit

Permalink
V2 (#956)
Browse files Browse the repository at this point in the history
* Migrate to pnpm and Update .gitignore

* Migrate to Biome and Restyle code

* Migration from jest and Rollup.js to Vite and Vitest

* Monorepolize with pnpm and turbo

* Add examples and integration tests

* Fix build configs

* Update Node.js version to 20

* Add changeset

* Refactor build and check workflows

* Remove release-drafter configuration file

* Improve

* Fix for lint

* Add Deno setup for CI

* Add turbo build setup caching

* Update GitHub Actions caching for Turbo

* Remove unused Deno registry configurations

* Update pnpm/action-setup to v3.0.0

* Add @types/node

* Update dependencies and pipeline in turbo.json

* Refactor Real World AST Snapshot tests

* Fix import statement in real-world.test.ts

* Add testAstSnapshot function to real-world.test.ts

* Fix function signature in testAstSnapshot

* Fix concurrent test failed

* Remove unused function testAstSnapshot()

* Add lefthook

* Fix escape function to properly handle backslashes

* Remove postinstall script from package.json

* Separate packages

* Update CONTRIBUTING.md with pnpm commands

* Add setup for Graphviz

* Add architecture documentation and version support policy

* Add codegen dependency to test:unit task

* Update CI workflow to use Turbo and add integration tests

* Update codegen inputs and outputs

* Update build.yaml to include/exclude specific files and directories

* Update artifact upload path in build workflow

* Add v2.0.0 Changeset

* Add PullRequest Snapshot Release workflow

* Add publishConfig to package.json files

* Update package.json files with additional files, funding, and keywords

* Add Node.js engine requirement to package.json files

* Update package.json files

* Refactor core and update build settings

* Remove deprecated AttributeKeyDict type

* Add privatePackages configuration

* Update package descriptions and README

* Update Makefile to use pnpm instead of yarn for svgo

* Update tsconfig.json to remove empty "include" array

* Add .npmignore files and update imports

* Remove unnecessary files from package.json

* Add src folder to .npmignore files

* Update Suponser badge link

* Fix typedoc configuration

* Add CD workflow for automated release process

* Update file extensions and dependencies in webpack build examples

* Update typedoc.json file
  • Loading branch information
kamiazya committed Mar 1, 2024
1 parent 273c1f4 commit 1e4f57a
Show file tree
Hide file tree
Showing 351 changed files with 643,465 additions and 638,018 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"files": [
"README.md",
"README_ja.md"
"packages/ts-graphviz/README.md"
],
"imageSize": 100,
"commit": false,
Expand Down
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
20 changes: 20 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "ts-graphviz/ts-graphviz"
}
],
"privatePackages": {
"tag": false,
"version": false
},
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
296 changes: 296 additions & 0 deletions .changeset/good-students-design.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-16
FROM mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye

RUN apt-get update && apt-get install -y graphviz && \
curl -fsSL https://deno.land/x/install/install.sh | sh
43 changes: 27 additions & 16 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,33 @@
"build": {
"dockerfile": "Dockerfile"
},
"postCreateCommand": "yarn install --frozen-lockfile",
"extensions": [
"EditorConfig.EditorConfig",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"Orta.vscode-jest",
"denoland.vscode-deno"
],
"settings": {
"editor.formatOnSave": false,
"editor.formatOnPaste": false,
"editor.formatOnType": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"typescript.tsdk": "node_modules/typescript/lib"
"postCreateCommand": "pnpm install",
"customizations": {
"vscode": {
"extensions": [
"EditorConfig.EditorConfig",
"biomejs.biome",
"denoland.vscode-deno"
],
"settings": {
"editor.formatOnSave": false,
"editor.formatOnPaste": false,
"editor.formatOnType": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib",
"deno.enable": true,
"deno.lint": false,
"deno.unstable": true,
"deno.enablePaths": [
"./examples/deno",
"packages/ts-grahviz/src/adapter/deno.ts",
"packages/ts-grahviz/lib/adapter/deno.js"
],
"deno.cache": "./e2e/envs/deno/.deno"
}
}
},
"remoteEnv": {
"PATH": "/home/node/.deno/bin:${containerEnv:PATH}"
Expand Down
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc.yaml

This file was deleted.

119 changes: 12 additions & 107 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,109 +1,14 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10
ignore:
- dependency-name: eslint-config-prettier
versions:
- 7.2.0
- 8.0.0
- 8.1.0
- 8.2.0
- dependency-name: rollup
versions:
- 2.38.1
- 2.38.3
- 2.38.4
- 2.38.5
- 2.39.0
- 2.39.1
- 2.40.0
- 2.41.0
- 2.41.1
- 2.41.2
- 2.41.3
- 2.41.4
- 2.41.5
- 2.42.0
- 2.42.2
- 2.42.3
- 2.42.4
- 2.43.1
- 2.44.0
- 2.45.0
- 2.45.1
- 2.45.2
- dependency-name: eslint
versions:
- 7.18.0
- 7.19.0
- 7.20.0
- 7.21.0
- 7.22.0
- 7.23.0
- 7.24.0
- dependency-name: eslint-plugin-jest
versions:
- 24.1.5
- 24.1.8
- 24.1.9
- 24.2.0
- 24.2.1
- 24.3.1
- 24.3.2
- 24.3.4
- 24.3.5
- dependency-name: "@typescript-eslint/eslint-plugin"
versions:
- 4.14.1
- 4.14.2
- 4.15.0
- 4.15.1
- 4.15.2
- 4.16.1
- 4.17.0
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- dependency-name: "@typescript-eslint/parser"
versions:
- 4.14.1
- 4.14.2
- 4.15.0
- 4.15.1
- 4.15.2
- 4.16.1
- 4.17.0
- 4.18.0
- 4.19.0
- 4.20.0
- 4.21.0
- dependency-name: typedoc
versions:
- 0.20.19
- 0.20.20
- 0.20.23
- 0.20.24
- 0.20.25
- 0.20.27
- 0.20.28
- 0.20.29
- 0.20.30
- 0.20.32
- 0.20.33
- 0.20.34
- 0.20.35
- dependency-name: ts-jest
versions:
- 26.5.0
- 26.5.1
- 26.5.2
- 26.5.3
- 26.5.4
- dependency-name: typescript
versions:
- 4.1.4
- package-ecosystem: npm
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: weekly
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
22 changes: 0 additions & 22 deletions .github/release-drafter.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/.build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build Artifact
on:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: dtinth/setup-github-actions-caching-for-turbo@a0e976d970c2a94366a26984efcef3030e2c0115 # v1.2.0
with:
cache-prefix: turbo-
- name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@d5b2b6b67007094b256f3fd2fa6cf0ac41ceef25 # v2.0.0
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
- name: Setup Node.js
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
cache: pnpm
node-version-file: ./.node-version
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
path: |
packages/**/lib
!**/node_modules
name: packages
26 changes: 26 additions & 0 deletions .github/workflows/.check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Check Format and Lint
on:
workflow_call:

jobs:
biome:
name: Check with Biome
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Repo
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: dtinth/setup-github-actions-caching-for-turbo@a0e976d970c2a94366a26984efcef3030e2c0115 # v1.2.0
with:
cache-prefix: turbo-
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
- name: Setup Node.js 20
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: ./.node-version
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Check
run: npx biome ci .

0 comments on commit 1e4f57a

Please sign in to comment.