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

Commit df701e8

Browse files
committed
chore: drop import map
1 parent 4b24666 commit df701e8

File tree

26 files changed

+61
-65
lines changed

26 files changed

+61
-65
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ You will need [Deno](https://deno.land/) 1.7+.
2222

2323
```bash
2424
# ssr/development with HMR
25-
ALEPH_DEV_PORT=2020 deno run -A --unstable --import-map=import_map.json --location=http://localhost cli.ts dev ./examples/hello-world -L debug
25+
ALEPH_DEV_PORT=2020 deno run -A --unstable --location=http://localhost cli.ts dev ./examples/hello-world -L debug
2626

2727
# ssr/production
28-
ALEPH_DEV_PORT=2020 deno run -A --unstable --import-map=import_map.json --location=http://localhost cli.ts start ./examples/hello-world -L debug
28+
ALEPH_DEV_PORT=2020 deno run -A --unstable --location=http://localhost cli.ts start ./examples/hello-world -L debug
2929

3030
# ssg
31-
ALEPH_DEV_PORT=2020 deno run -A --unstable --import-map=import_map.json --location=http://localhost cli.ts build ./examples/hello-world -L debug
31+
ALEPH_DEV_PORT=2020 deno run -A --unstable --location=http://localhost cli.ts build ./examples/hello-world -L debug
3232

3333
# run all tests
3434
deno test -A --unstable --import-map=import_map.json --location=https://deno.land/x/aleph

cli.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import * as path from 'std/path/mod.ts'
2-
import { walk } from 'std/fs/walk.ts'
3-
import * as flags from 'std/flags/mod.ts'
1+
import { resolve, basename } from 'https://deno.land/std@0.90.0/path/mod.ts'
2+
import { walk } from 'https://deno.land/std@0.90.0/fs/walk.ts'
3+
import { parse } from 'https://deno.land/std@0.90.0/flags/mod.ts'
44
import { existsDirSync } from './shared/fs.ts'
55
import type { LevelNames } from './shared/log.ts'
66
import log from './shared/log.ts'
@@ -33,7 +33,7 @@ Options:
3333
`
3434

3535
async function main() {
36-
const { _: args, ...options } = flags.parse(Deno.args)
36+
const { _: args, ...options } = parse(Deno.args)
3737

3838
// prints aleph.js version
3939
if (options.v) {
@@ -99,8 +99,8 @@ async function main() {
9999
log.setLevel(l.toLowerCase() as LevelNames)
100100
}
101101

102-
// check working Dir
103-
const workingDir = path.resolve(String(args[0] || '.'))
102+
// check working dir
103+
const workingDir = resolve(String(args[0] || '.'))
104104
if (!existsDirSync(workingDir)) {
105105
log.fatal('No such directory:', workingDir)
106106
}
@@ -116,7 +116,7 @@ async function main() {
116116
Deno.env.set(key, value.trim())
117117
}
118118
})
119-
log.info('load env from', path.basename(p))
119+
log.info('load env from', basename(p))
120120
}
121121

122122
await cmd(workingDir, options)

cli/init.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Untar } from 'std/archive/tar.ts'
2-
import { green, dim } from 'std/fmt/colors.ts'
3-
import { ensureDir } from 'std/fs/ensure_dir.ts'
4-
import { join } from 'std/path/mod.ts'
1+
import { Untar } from 'https://deno.land/std@0.90.0/archive/tar.ts'
2+
import { green, dim } from 'https://deno.land/std@0.90.0/fmt/colors.ts'
3+
import { ensureDir } from 'https://deno.land/std@0.90.0/fs/ensure_dir.ts'
4+
import { join } from 'https://deno.land/std@0.90.0/path/mod.ts'
55
import { gzipDecode } from 'gzip'
66
import { ensureTextFile } from '../shared/fs.ts'
77
import util from '../shared/util.ts'

cli/upgrade.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { red } from 'https://deno.land/[email protected]/fmt/colors.ts'
22
import { dirname, join } from 'https://deno.land/[email protected]/path/mod.ts'
3-
import { existsFileSync } from '../shared/fs.ts'
3+
import { existsSync } from 'https://deno.land/[email protected]/fs/exists.ts'
44

55
const versionMetaUrl = 'https://cdn.deno.land/aleph/meta/versions.json'
66

@@ -27,7 +27,7 @@ export default async function (version = 'latest') {
2727
}
2828

2929
const denoExecPath = Deno.execPath()
30-
const cmdExists = existsFileSync(join(dirname(denoExecPath), 'aleph'))
30+
const cmdExists = existsSync(join(dirname(denoExecPath), 'aleph'))
3131
const p = Deno.run({
3232
cmd: [
3333
denoExecPath,
@@ -37,7 +37,6 @@ export default async function (version = 'latest') {
3737
'--unstable',
3838
'-n', 'aleph',
3939
'--location', 'https://deno.land/x/aleph',
40-
'--import-map', 'https://deno.land/x/aleph@{version}/import_map.json',
4140
`https://deno.land/x/aleph@${version}/cli.ts`
4241
],
4342
stdout: 'null',

examples/42-wasm/aleph.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import css from 'aleph/plugins/css.ts'
2-
import sass from 'aleph/plugins/sass.ts'
3-
import wasm from 'aleph/plugins/wasm.ts'
4-
import type { Config } from 'aleph/types.ts'
1+
import css from '../../plugins/css.ts'
2+
import sass from '../../plugins/sass.ts'
3+
import wasm from '../../plugins/wasm.ts'
4+
import type { Config } from '../../types.ts'
55

66
export default (): Config => ({
77
plugins: [css(), sass(), wasm()]

examples/hello-world-spa/aleph.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import css from 'aleph/plugins/css.ts'
2-
import type { Config } from 'aleph/types.ts'
1+
import css from '../../plugins/css.ts'
2+
import type { Config } from '../../types.ts'
33

44
export default (): Config => ({
55
plugins: [

examples/hello-world-src-dir/aleph.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import css from 'aleph/plugins/css.ts'
2-
import type { Config } from 'aleph/types.ts'
1+
import css from '../../plugins/css.ts'
2+
import type { Config } from '../../types.ts'
33

44
export default (): Config => ({
55
plugins: [

examples/hello-world/aleph.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import css from 'aleph/plugins/css.ts'
2-
import type { Config } from 'aleph/types.ts'
1+
import css from '../../plugins/css.ts'
2+
import type { Config } from '../../types.ts'
33

44
export default (): Config => ({
55
plugins: [

framework/core/routing_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { assertEquals } from 'std/testing/asserts.ts'
1+
import { assertEquals } from 'https://deno.land/std@0.90.0/testing/asserts.ts'
22
import { Routing } from './routing.ts'
33

44
Deno.test(`routing`, () => {

framework/react/init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { dirname } from 'std/path/mod.ts'
1+
import { dirname } from 'https://deno.land/std@0.90.0/path/mod.ts'
22
import {
33
getAlephPkgUri,
44
getRelativePath,

0 commit comments

Comments
 (0)