Add project files
This commit is contained in:
parent
2f330bc55e
commit
f559086c27
6 changed files with 103 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
_site
|
40
.vscode/launch.json
vendored
Normal file
40
.vscode/launch.json
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"request": "launch",
|
||||
"type": "pwa-node",
|
||||
"program": "https:/deno.land/x/lume@v1.5.1/cli.ts",
|
||||
"cwd": "${workspaceFolder}",
|
||||
"runtimeExecutable": "deno",
|
||||
"runtimeArgs": [
|
||||
"run",
|
||||
"--unstable",
|
||||
"--import-map=.vscode/lume_import_map.json",
|
||||
"--inspect",
|
||||
"--allow-all"
|
||||
],
|
||||
"attachSimplePort": 9229,
|
||||
"name": "Lume build"
|
||||
},
|
||||
{
|
||||
"request": "launch",
|
||||
"type": "pwa-node",
|
||||
"program": "https:/deno.land/x/lume@v1.5.1/cli.ts",
|
||||
"cwd": "${workspaceFolder}",
|
||||
"runtimeExecutable": "deno",
|
||||
"runtimeArgs": [
|
||||
"run",
|
||||
"--unstable",
|
||||
"--import-map=.vscode/lume_import_map.json",
|
||||
"--inspect",
|
||||
"--allow-all"
|
||||
],
|
||||
"attachSimplePort": 9229,
|
||||
"name": "Lume serve",
|
||||
"args": [
|
||||
"--serve"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
8
.vscode/settings.json
vendored
Normal file
8
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"deno.enable": true,
|
||||
"deno.lint": true,
|
||||
"deno.unstable": true,
|
||||
"deno.suggest.imports.hosts": {
|
||||
"https://deno.land": true
|
||||
}
|
||||
}
|
36
.vscode/workflows/ci.yml
vendored
Normal file
36
.vscode/workflows/ci.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: ci
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: deploy
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
DEPLOY_API_ENDPOINT: https://deno-staging.com
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Deno
|
||||
uses: denoland/setup-deno@main
|
||||
with:
|
||||
deno-version: 1.18.2
|
||||
|
||||
- name: Build site
|
||||
run: deno run -A https://deno.land/x/lume/ci.ts
|
||||
|
||||
- name: Deploy to Deno Deploy
|
||||
uses: lucacasonato/deployctl@github_action
|
||||
with:
|
||||
project: lume-example
|
||||
entrypoint: https://deno.land/std/http/file_server.ts
|
||||
cwd: _site
|
6
_config.ts
Normal file
6
_config.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
import lume from "https:/deno.land/x/lume@v1.5.1/mod.ts";
|
||||
|
||||
const site = lume();
|
||||
site.copy("assets", ".");
|
||||
|
||||
export default site;
|
12
index.njk
Normal file
12
index.njk
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
title: Welcome to my page
|
||||
---
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ title }}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{ title }}</h1>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue