Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit fc9e2ff

Browse files
author
Je
committed
chore: rename deps.ts to std.ts
1 parent cf049bb commit fc9e2ff

12 files changed

+17
-17
lines changed

cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { listenAndServe, path, ServerRequest } from './deps.ts'
21
import { createHtml } from './html.ts'
32
import log from './log.ts'
43
import { getContentType } from './server/mime.ts'
4+
import { listenAndServe, path, ServerRequest } from './std.ts'
55
import util from './util.ts'
66
import { version } from './version.ts'
77

cli/init.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { ensureDir, ensureFile, fromStreamReader, gzipDecode, path, Untar } from '../deps.ts'
1+
import { gzipDecode } from 'https://deno.land/x/[email protected]/mod.ts'
2+
import { ensureDir, ensureFile, fromStreamReader, path, Untar } from '../std.ts'
23
import util from '../util.ts'
34

45
export const helpMessage = `Initiate a new aleph app.

log.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { colors } from './deps.ts'
1+
import { colors } from './std.ts'
22

33
export enum Level {
44
Debug = 0,

project.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
import { colors, ensureDir, less, minify, path, Sha1, walk } from './deps.ts'
1+
import { minify } from 'https://esm.sh/terser'
22
import { EventEmitter } from './events.ts'
33
import { createHtml } from './html.ts'
44
import log from './log.ts'
55
import route from './route.ts'
6+
import { colors, ensureDir, path, Sha1, walk } from './std.ts'
67
import { compile } from './tsc/compile.ts'
78
import type { APIHandle, Config, Location, RouterURL } from './types.ts'
89
import util, { hashShort } from './util.ts'
10+
import './vendor/clean-css-builds/v4.2.2.js'
11+
import less from './vendor/less/less.js'
912

1013
const reHttp = /^https?:\/\//i
1114
const reModuleExt = /\.(js|jsx|mjs|ts|tsx)$/i

server/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ServerRequest } from '../deps.ts'
1+
import type { ServerRequest } from '../std.ts'
22
import type { APIRequest, APIResponse } from '../types.ts'
33

44
export class PostAPIRequest implements APIRequest {

server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { path, serve, ws } from '../deps.ts'
21
import { createHtml } from '../html.ts'
32
import log from '../log.ts'
43
import Project from '../project.ts'
54
import route from '../route.ts'
5+
import { path, serve, ws } from '../std.ts'
66
import util, { hashShort } from '../util.ts'
77
import { PostAPIRequest, PostAPIResponse } from './api.ts'
88
import { getContentType } from './mime.ts'

deps.ts renamed to std.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { Tar, Untar } from 'https://deno.land/[email protected]/archive/tar.ts'
1+
export { Untar } from 'https://deno.land/[email protected]/archive/tar.ts'
22
export * as colors from 'https://deno.land/[email protected]/fmt/colors.ts'
33
export { ensureDir } from 'https://deno.land/[email protected]/fs/ensure_dir.ts'
44
export { ensureFile } from 'https://deno.land/[email protected]/fs/ensure_file.ts'
@@ -8,8 +8,4 @@ export * from 'https://deno.land/[email protected]/http/server.ts'
88
export { fromStreamReader } from 'https://deno.land/[email protected]/io/mod.ts'
99
export * as path from 'https://deno.land/[email protected]/path/mod.ts'
1010
export * as ws from 'https://deno.land/[email protected]/ws/mod.ts'
11-
export { gzipDecode, gzipEncode } from 'https://deno.land/x/[email protected]/mod.ts'
12-
export { minify } from 'https://esm.sh/[[email protected],[email protected]]/terser'
13-
export { default as ts } from 'https://esm.sh/[[email protected],[email protected]]/typescript'
14-
export { default as less } from './vendor/less/less.js'
15-
import './vendor/clean-css-builds/v4.2.2.js'
11+

tsc/compile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ts } from '../deps.ts'
1+
import ts from 'https://esm.sh/typescript'
22
import transformImportPathRewrite from './transform-import-path-rewrite.ts'
33
import transformReactJsxSource from './transform-react-jsx-source.ts'
44
import transformReactRefresh from './transform-react-refresh.ts'

tsc/transform-import-path-rewrite.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ts } from '../deps.ts'
1+
import ts from 'https://esm.sh/typescript'
22

33
/**
44
* TS AST transformer to rewrite import path.

tsc/transform-react-jsx-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ts } from '../deps.ts'
1+
import ts from 'https://esm.sh/typescript'
22

33
/**
44
* TypeScript AST Transformer that adds source file and line number to JSX elements.

0 commit comments

Comments
 (0)