Skip to content

Commit

Permalink
Move syntaxes to packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cooolbros committed Feb 7, 2025
1 parent 8547a7a commit 72f72c2
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 19 deletions.
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
!packages/syntaxes/dist
.github
.gitignore
.vscode
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const withNextra = nextra({
themes: ["light-plus", "dark-plus"],
langs: [
// @ts-ignore
async () => await import("../syntaxes/dist/hudanimations.tmLanguage.json", { with: { type: "json" } }),
async () => await import("../syntaxes/dist/popfile.tmLanguage.json", { with: { type: "json" } }),
async () => await import("../syntaxes/dist/vdf.tmLanguage.json", { with: { type: "json" } }),
async () => await import("syntaxes/hudanimations.tmLanguage.json", { with: { type: "json" } }),
async () => await import("syntaxes/popfile.tmLanguage.json", { with: { type: "json" } }),
async () => await import("syntaxes/vdf.tmLanguage.json", { with: { type: "json" } }),
]
})
}
Expand Down
1 change: 1 addition & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react": "^19.0.0",
"react-dom": "^19.0.0",
"rehype-pretty-code": "^0.14.0",
"syntaxes": "workspace:^",
"tailwindcss": "^3.4.17",
"tsconfig": "workspace:^"
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,25 +298,25 @@
{
"language": "hudanimations",
"scopeName": "source.hudanimations",
"path": "./apps/syntaxes/dist/hudanimations.tmLanguage.json"
"path": "./packages/syntaxes/dist/hudanimations.tmLanguage.json"
},
{
"language": "popfile",
"scopeName": "source.popfile",
"path": "./apps/syntaxes/dist/popfile.tmLanguage.json",
"path": "./packages/syntaxes/dist/popfile.tmLanguage.json",
"embeddedLanguages": {
"meta.embedded.block.squirrel": "squirrel"
}
},
{
"language": "vmt",
"scopeName": "source.vmt",
"path": "./apps/syntaxes/dist/vmt.tmLanguage.json"
"path": "./packages/syntaxes/dist/vmt.tmLanguage.json"
},
{
"language": "vdf",
"scopeName": "source.vdf",
"path": "./apps/syntaxes/dist/vdf.tmLanguage.json"
"path": "./packages/syntaxes/dist/vdf.tmLanguage.json"
}
],
"languages": [
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions apps/syntaxes/package.json → packages/syntaxes/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"name": "syntaxes",
"publishConfig": {
"directory": "dist"
},
"scripts": {
"dev": "node --watch-path=./src build",
"build": "node build"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
28 changes: 16 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 72f72c2

Please sign in to comment.