Skip to content

Commit

Permalink
feat!: complete rework
Browse files Browse the repository at this point in the history
- Use Prettier for formatting
- Use composite TypeScript projects
- Use generics in custom AST and resolve them for outputs that don’t support generics
- Add tests
- Export AST types
- Export single renderers
- JSON Schema renderer option to control unresolvedProperties/additionalProperties
- Tests

The Markdown generation may still be improved.
  • Loading branch information
elyukai committed Nov 9, 2023
1 parent b4739d0 commit 1960dd9
Show file tree
Hide file tree
Showing 35 changed files with 4,403 additions and 1,568 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ on:
- v[0-9]+.[0-9]+.[0-9]+*

jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 16
# - run: npm ci
# - run: npm test
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npm test

publish-npm:
# needs: build
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
*.ast.json
*.ast.resolved.json
*.tsbuildinfo
node_modules
lib
libtest
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
.github
*.tsbuildinfo
.versionrc.json
.vscode
CODEOWNERS
libtest
src
test
tsconfig.json
1 change: 1 addition & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
semi: false
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"cwd": "${workspaceFolder}/../optolith-database-schema",
"program": "${workspaceFolder}/src/bin/cli.ts",
"outFiles": [
"${workspaceFolder}/lib/**/*.js"
]
}
]
}
Loading

0 comments on commit 1960dd9

Please sign in to comment.