diff options
author | 2021-03-15 14:18:39 -0400 | |
---|---|---|
committer | 2021-03-15 14:18:39 -0400 | |
commit | 47d1c22449cb2c3a236170382ae9e8210a711ee0 (patch) | |
tree | 0e33bac9f9c1e0233cf7c028079a9aa148b085a6 /src | |
parent | af6b029e95e9c98e6fb9c642915d461b8d7f448e (diff) | |
download | astro-47d1c22449cb2c3a236170382ae9e8210a711ee0.tar.gz astro-47d1c22449cb2c3a236170382ae9e8210a711ee0.tar.zst astro-47d1c22449cb2c3a236170382ae9e8210a711ee0.zip |
magicthing -> astro
Diffstat (limited to 'src')
-rw-r--r-- | src/@types/astro.ts (renamed from src/@types/magicthing.ts) | 4 | ||||
-rw-r--r-- | src/dev.ts | 6 | ||||
-rw-r--r-- | src/generate.ts | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/src/@types/magicthing.ts b/src/@types/astro.ts index 00644a3c6..493d7d22a 100644 --- a/src/@types/magicthing.ts +++ b/src/@types/astro.ts @@ -1,11 +1,11 @@ -export interface MagicConfigRaw { +export interface AstroConfigRaw { dist: string; projectRoot: string; hmxRoot: string; } -export interface MagicConfig { +export interface AstroConfig { dist: string; projectRoot: URL; hmxRoot: URL; diff --git a/src/dev.ts b/src/dev.ts index a90f4c839..3caf8e7f0 100644 --- a/src/dev.ts +++ b/src/dev.ts @@ -1,4 +1,4 @@ -import type { MagicConfig } from './@types/magicthing'; +import type { AstroConfig } from './@types/astro'; import { loadConfiguration, startServer as startSnowpackServer } from 'snowpack'; import { existsSync, promises as fsPromises } from 'fs'; import http from 'http'; @@ -11,8 +11,8 @@ const require = createRequire(import.meta.url); const hostname = '127.0.0.1'; const port = 3000; -export default async function(magicConfig: MagicConfig) { - const { projectRoot, hmxRoot } = magicConfig; +export default async function(astroConfig: AstroConfig) { + const { projectRoot, hmxRoot } = astroConfig; const internalPath = new URL('./frontend/', import.meta.url); const snowpackConfigPath = new URL('./snowpack.config.js', projectRoot); diff --git a/src/generate.ts b/src/generate.ts index de7f76b25..51dbd055a 100644 --- a/src/generate.ts +++ b/src/generate.ts @@ -1,4 +1,4 @@ -import type { MagicConfig } from './@types/magicthing'; +import type { AstroConfig } from './@types/astro'; import { loadConfiguration, startServer as startSnowpackServer } from 'snowpack'; import { promises as fsPromises } from 'fs'; import { relative as pathRelative } from 'path'; @@ -18,10 +18,10 @@ async function* allPages(root: URL): AsyncGenerator<URL, void, unknown> { } } -export default async function(magicConfig: MagicConfig) { - const { projectRoot, hmxRoot } = magicConfig; +export default async function(astroConfig: AstroConfig) { + const { projectRoot, hmxRoot } = astroConfig; const pageRoot = new URL('./pages/', hmxRoot); - const dist = new URL(magicConfig.dist + '/', projectRoot); + const dist = new URL(astroConfig.dist + '/', projectRoot); const configPath = new URL('./snowpack.config.js', projectRoot).pathname; const config = await loadConfiguration({ |