This repository has been archived by the owner on Sep 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…ps://esm.sh` imports to `deps/`
- Loading branch information
Showing
53 changed files
with
126 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
{ | ||
"exclude": [ | ||
"_fresh/", | ||
"**/_fresh/*" | ||
], | ||
"exclude": ["**/_fresh/*"], | ||
"lock": false, | ||
"tasks": { | ||
"cache:deps": "deno cache **/deps/**/*.ts", | ||
|
@@ -14,34 +11,30 @@ | |
"release": "deno run --allow-run --allow-read tasks/release.ts", | ||
"cov": "deno coverage ./cov/ --lcov --exclude='test.ts|testdata' > cov.lcov" | ||
}, | ||
"unstable": [ | ||
"cron", | ||
"kv" | ||
], | ||
"unstable": ["cron", "kv", "temporal"], | ||
"lint": { | ||
"exclude": [ | ||
"./lib/deps/" | ||
], | ||
"rules": { | ||
"tags": [ | ||
"fresh", | ||
"recommended" | ||
] | ||
} | ||
}, | ||
"test": { | ||
"exclude": [ | ||
"./templates" | ||
] | ||
"exclude": ["./lib/deps/"], | ||
"rules": { "tags": ["fresh", "recommended"] } | ||
}, | ||
"test": { "exclude": ["./templates"] }, | ||
"fmt": { "lineWidth": 100 }, | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
// NOTE: alias "preact" is not being resolved for deno.json(c) of monorepo | ||
// therefore we use react here (this is not needed withing the individual | ||
// projects e.g. under templates/crm/deno.json, since "preact" resolves properly) | ||
// see https://github.com/denoland/deno/issues/20582#issuecomment-1751454928 | ||
"jsxImportSource": "https://esm.sh/[email protected]" | ||
"lib": ["dom", "dom.asynciterable", "deno.ns"], | ||
"jsx": "precompile", | ||
"jsxImportSource": "preact", | ||
"jsxImportSourceTypes": "preact/compat", | ||
"jsxPrecompileSkipElements": [ | ||
"a", | ||
"img", | ||
"source", | ||
"body", | ||
"html", | ||
"head", | ||
"title", | ||
"link", | ||
"style", | ||
"meta" | ||
] | ||
}, | ||
"imports": { | ||
"@/": "./", | ||
|
@@ -51,7 +44,6 @@ | |
"react": "npm:[email protected]/compat", | ||
"react-dom": "npm:[email protected]/compat", | ||
"@preact/signals": "npm:@preact/[email protected]", | ||
"@preact/signals-core": "npm:@preact/[email protected]", | ||
"std/": "https://deno.land/[email protected]/" | ||
"@preact/signals-core": "npm:@preact/[email protected]" | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -5,8 +5,8 @@ import type { | |
Paginated, | ||
Project, | ||
} from "../../../deps/@netzo/api/mod.ts"; | ||
import { exists } from "../../../deps/std/fs.ts"; | ||
import { fromFileUrl, globToRegExp, isGlob, normalize } from "../../../deps/std/path.ts"; | ||
import { exists } from "../../../deps/@std/fs.ts"; | ||
import { fromFileUrl, globToRegExp, isGlob, normalize } from "../../../deps/@std/path.ts"; | ||
import { Spinner, wait } from "../../../deps/wait/mod.ts"; | ||
// vendored x/[email protected] to silence deprecated API warnings (Deno>=1.4) | ||
import { question } from "../../../deps/question/mod.ts"; | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { fromFileUrl, resolve } from "../../../deps/std/path.ts"; | ||
export { fromFileUrl, resolve } from "../../../deps/@std/path.ts"; | ||
export { APIError } from "./api.ts"; | ||
export { parseEntrypoint } from "./entrypoint.ts"; | ||
export { walk } from "./walk.ts"; |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import { isBinary } from "npm:[email protected]"; | ||
import { feathers } from "../../../deps/@feathersjs/feathers.ts"; | ||
import { socketio } from "../../../deps/@feathersjs/socketio-client.ts"; | ||
import { Project, ProjectAssetsFile } from "../../../deps/@netzo/api/mod.ts"; | ||
import { encodeBase64 } from "../../../deps/@std/encoding.ts"; | ||
import { isBinary } from "../../../deps/istextorbinary.ts"; | ||
import { io } from "../../../deps/socket.io-client.ts"; | ||
import { encodeBase64 } from "../../../deps/std/encoding.ts"; | ||
|
||
export const createClient = async ({ | ||
apiKey = Deno.env.get("NETZO_API_KEY")!, | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import mingo from "npm:[email protected]"; | ||
import { mingo } from "../deps/mingo.ts"; | ||
import { monotonicFactory } from "../deps/ulid.ts"; | ||
|
||
export const ulid = monotonicFactory(); | ||
|
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 @@ | ||
export * from "npm:/@libsql/[email protected]"; |
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 @@ | ||
export * from "npm:@mdx-js/[email protected]"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
export * from "jsr:@std/[email protected]/colors"; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
export * from "npm:@types/[email protected]"; |
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 @@ | ||
export * from "npm:[email protected]"; |
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 @@ | ||
export * from "npm:[email protected]"; |
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 @@ | ||
export * from "npm:[email protected]"; |
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 @@ | ||
export * from "npm:[email protected]"; |
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 @@ | ||
export { default as mingo } from "npm:[email protected]"; |
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 @@ | ||
export { default as remarkFrontmatter } from "npm:[email protected]"; |
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 @@ | ||
export { default as remarkGfm } from "npm:[email protected]"; |
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 @@ | ||
export * from "npm:[email protected]"; |
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 @@ | ||
export * from "npm:[email protected]"; |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// deno-lint-ignore-file no-explicit-any | ||
import type { Plugin, PluginRoute } from "fresh/server.ts"; | ||
import { createClient } from "npm:@libsql/[email protected]"; | ||
import { database as createDatabase } from "../../database/mod.ts"; | ||
import { createClient } from "../../deps/@libsql/client.ts"; | ||
import { eq, getTableColumns, SQL, sql } from "../../deps/drizzle-orm/mod.ts"; | ||
import { SQLiteTable } from "../../deps/drizzle-orm/sqlite-core.ts"; | ||
import { DrizzleConfig } from "../../deps/drizzle-orm/utils.ts"; | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import type { Plugin, PluginRoute } from "fresh/server.ts"; | ||
import { deepParseJson } from "npm:[email protected]"; | ||
import { unflatten } from "npm:[email protected]"; | ||
import { datastore as createDatastore } from "../../datastore/mod.ts"; | ||
import { deepParseJson } from "../../deps/deep-parse-json.ts"; | ||
import { unflatten } from "../../deps/flat.ts"; | ||
import { apiKeyAuthentication, cors } from "../middleware.ts"; | ||
import { parseRequestBody, RESPONSES } from "../utils.ts"; | ||
|
||
|
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { type PluginRoute } from "fresh/server.ts"; | ||
import { compile } from "npm:@mdx-js/mdx"; | ||
import { Root } from "npm:@types/[email protected]"; | ||
import { type MdxjsEsm } from "npm:[email protected]"; | ||
import { default as remarkFrontmatter } from "npm:[email protected]"; | ||
import { default as remarkGfm } from "npm:[email protected]"; | ||
import { Project } from "npm:[email protected]"; | ||
import { visit } from "npm:[email protected]"; | ||
import { walk } from "../../deps/std/fs.ts"; | ||
import { join, toFileUrl } from "../../deps/std/path.ts"; | ||
import { compile } from "../../deps/@mdx-js/mdx.ts"; | ||
import { walk } from "../../deps/@std/fs.ts"; | ||
import { join, toFileUrl } from "../../deps/@std/path.ts"; | ||
import { Root } from "../../deps/@types/hast.ts"; | ||
import { type MdxjsEsm } from "../../deps/mdast-util-mdxjs-esm.ts"; | ||
import { remarkFrontmatter } from "../../deps/remark-frontmatter.ts"; | ||
import { remarkGfm } from "../../deps/remark-gfm.ts"; | ||
import { Project } from "../../deps/ts-morph.ts"; | ||
import { visit } from "../../deps/unist-util-visit.ts"; | ||
|
||
export async function scanForMDXFiles(directory: string): Promise<string[]> { | ||
const files: string[] = []; | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// adapted from https://github.com/oaarnikoivu/shadcn-virtualized-combobox | ||
// @deno-types="npm:@types/[email protected]" | ||
|
||
import { blue, bold, green, red, white, yellow } from "https://deno.land/[email protected]/fmt/colors.ts"; | ||
import { blue, bold, green, red, white, yellow } from "../deps/@std/fmt/colors.ts"; | ||
import type { Project } from "./types.ts"; | ||
|
||
/** | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"exclude": ["**/_fresh/*"], | ||
"lock": false, | ||
"tasks": { | ||
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", | ||
|
@@ -9,38 +10,36 @@ | |
"preview": "deno run -A main.ts", | ||
"update": "deno run -A -r https://fresh.deno.dev/update ." | ||
}, | ||
"lint": { | ||
"rules": { | ||
"tags": [ | ||
"fresh", | ||
"recommended" | ||
] | ||
} | ||
"unstable": ["cron", "kv", "temporal"], | ||
"lint": { "rules": { "tags": ["fresh", "recommended"] } }, | ||
"fmt": { "lineWidth": 100 }, | ||
"compilerOptions": { | ||
"lib": ["dom", "dom.asynciterable", "deno.ns"], | ||
"jsx": "precompile", | ||
"jsxImportSource": "preact", | ||
"jsxImportSourceTypes": "preact/compat", | ||
"jsxPrecompileSkipElements": [ | ||
"a", | ||
"img", | ||
"source", | ||
"body", | ||
"html", | ||
"head", | ||
"title", | ||
"link", | ||
"style", | ||
"meta" | ||
] | ||
}, | ||
"exclude": [ | ||
"**/_fresh/*" | ||
], | ||
"imports": { | ||
"@/": "./", | ||
"netzo/": "../../lib/", | ||
"fresh/": "https://deno.land/x/[email protected]/", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected]", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"react": "https://esm.sh/[email protected]/compat", | ||
"react-dom": "https://esm.sh/[email protected]/compat", | ||
"std/": "https://deno.land/[email protected]/", | ||
"react/jsx-runtime": "https://esm.sh/[email protected]/compat", | ||
"tailwindcss": "npm:[email protected]", | ||
"tailwindcss/": "npm:/[email protected]/", | ||
"tailwindcss/plugin": "npm:/[email protected]/plugin.js", | ||
"$std/": "https://deno.land/[email protected]/" | ||
}, | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact" | ||
}, | ||
"nodeModulesDir": true | ||
"preact": "npm:[email protected]", | ||
"react": "npm:[email protected]/compat", | ||
"react-dom": "npm:[email protected]/compat", | ||
"@preact/signals": "npm:@preact/[email protected]", | ||
"@preact/signals-core": "npm:@preact/[email protected]", | ||
"@std/dotenv": "jsr:@std/[email protected]" | ||
} | ||
} |
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.