Upgrade to Deno 1.30.2
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
Signed-off-by: Sam Therapy <sam@samtherapy.net>master
parent
0cacd65653
commit
90ee5d0a69
@ -1,6 +1,6 @@
|
||||
import { parse } from "std/encoding/toml.ts";
|
||||
import { parse } from "std/encoding/toml.ts"
|
||||
|
||||
export default async function toml(path: string | URL) {
|
||||
const content = await Deno.readTextFile(path);
|
||||
return parse(content);
|
||||
const content = await Deno.readTextFile(path)
|
||||
return parse(content)
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"imports": {
|
||||
"lume/": "https://deno.land/x/lume@v1.14.2/",
|
||||
"experimental/": "https://raw.githubusercontent.com/lumeland/experimental-plugins/main/",
|
||||
"std/": "https://deno.land/std/"
|
||||
}
|
||||
}
|
@ -1,21 +1,21 @@
|
||||
import Server from "https://deno.land/x/lume@v1.13.2/core/server.ts";
|
||||
import expires from "https://deno.land/x/lume@v1.13.2/middlewares/expires.ts";
|
||||
import not_found from "https://deno.land/x/lume@v1.13.2/middlewares/not_found.ts";
|
||||
import Server from "lume/core/server.ts"
|
||||
import expires from "lume/middlewares/expires.ts"
|
||||
import not_found from "lume/middlewares/not_found.ts"
|
||||
|
||||
const port = 8000;
|
||||
const port = 8000
|
||||
|
||||
const server = new Server({
|
||||
port: port,
|
||||
root: `${Deno.cwd()}/dist`,
|
||||
});
|
||||
})
|
||||
|
||||
server.use(expires());
|
||||
server.use(expires())
|
||||
|
||||
server.use(not_found({
|
||||
root: `${Deno.cwd()}/dist`,
|
||||
page404: "404.html",
|
||||
}));
|
||||
}))
|
||||
|
||||
server.start();
|
||||
server.start()
|
||||
|
||||
console.log(`Listening on http://localhost:${port}`);
|
||||
console.log(`Listening on http://localhost:${port}`)
|
||||
|
Loading…
Reference in new issue