-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(scripts): cleanup & enforce code style (#1388)
- Loading branch information
Showing
23 changed files
with
290 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"@std/path": "jsr:@std/path@^1.0.6", | ||
"@std/yaml": "jsr:@std/yaml@^1.0.5", | ||
"ajv": "npm:[email protected]", | ||
"catppuccin-repo/": "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/", | ||
"@catppuccin/catppuccin/": "https://raw.githubusercontent.com/catppuccin/catppuccin/d4f2666c2b04337f0a8632713de0889d9a7d332d/", | ||
"handlebars": "npm:[email protected]", | ||
"json-schema-to-typescript": "npm:[email protected]", | ||
"less": "npm:[email protected]", | ||
|
@@ -25,13 +25,22 @@ | |
"usercss-meta": "npm:[email protected]" | ||
}, | ||
"tasks": { | ||
"ci:generate": "deno run -A ./scripts/generate/main.ts", | ||
"ci:generate-import": "deno run -A ./scripts/import-styles/main.ts", | ||
"ci:sync-maintainers": "deno run -A ./scripts/sync-maintainers/main.ts", | ||
"generate": "deno run -A ./scripts/generate/main.ts", | ||
"stylus-import": "deno run -A ./scripts/stylus-import/main.ts", | ||
"sync-maintainers": "deno run -A ./scripts/sync-maintainers/main.ts", | ||
"lint": "deno run -A ./scripts/lint/main.ts", | ||
"lint:fix": "deno task lint --fix", | ||
"update-types": "deno run -A ./scripts/update-types.ts", | ||
"update-types": "deno run -A ./scripts/types/update-types.ts", | ||
"format": "deno run -A npm:[email protected] --write ." | ||
}, | ||
"nodeModulesDir": true | ||
"nodeModulesDir": true, | ||
"fmt": { | ||
"include": ["scripts/**/*.ts"] | ||
}, | ||
"lint": { | ||
"rules": { | ||
"tags": ["recommended"], | ||
"include": ["verbatim-module-syntax"] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import PORTS_SCHEMA from "@catppuccin/catppuccin/resources/ports.schema.json" with { | ||
type: "json", | ||
}; | ||
import USERSTYLES_SCHEMA from "@/userstyles.schema.json" with { | ||
type: "json", | ||
}; | ||
|
||
import * as path from "@std/path"; | ||
|
||
const ROOT = import.meta.dirname; | ||
if (!ROOT) throw new Error("ROOT was not located."); | ||
|
||
/** | ||
* Absolute path to the repository. | ||
*/ | ||
export const REPO_ROOT = path.join(ROOT, ".."); | ||
|
||
export { PORTS_SCHEMA, USERSTYLES_SCHEMA }; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.