Skip to content

Commit

Permalink
upgrade lume, publish with github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kuboon committed Feb 3, 2024
1 parent 60426c0 commit 3c0757b
Show file tree
Hide file tree
Showing 22 changed files with 1,105 additions and 361 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/lume.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This is a basic workflow to help you get started with Actions

name: lume

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Setup Deno environment
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: lume build
run: deno task build --location=https://npap.kbn.one
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.DS_Store
Thumbs.db
.aleph/
dist/
_site/
20 changes: 0 additions & 20 deletions .vscode/launch.json

This file was deleted.

5 changes: 0 additions & 5 deletions _aleph/bin/build

This file was deleted.

17 changes: 0 additions & 17 deletions _aleph/bin/bundle.ts

This file was deleted.

6 changes: 2 additions & 4 deletions _config.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import lume from "lume/mod.ts";
/// import esbuild from "./esbuild_component.ts";
import esbuild from "lume/plugins/esbuild.ts";
import inline from "./inline.ts";
import inline from "lume/plugins/inline.ts";
import jsx from "lume/plugins/jsx.ts";
import sass from "lume/plugins/sass.ts";

const site = lume({
src: './src',
dest: './docs',
src: './src'
});

site.copy("_assets", ".");
Expand Down
26 changes: 13 additions & 13 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"tasks": {
"lume": "echo \"import 'lume/cli.ts'\" | deno run --unstable -A -",
"build": "deno task lume",
"serve": "deno task lume -s"
},
"compilerOptions": {
"lib": [
"dom",
"dom.iterable",
"dom.asynciterable",
"deno.ns",
"deno.unstable"
],
"jsx": "react"
"jsx": "react-jsx",
"jsxImportSource": "npm:react",
"types": [
"lume/types.ts"
]
},
"importMap": "import_map.json",
"tasks": {
"build": "deno run -A https://deno.land/x/lume@v1.7.4/ci.ts",
"serve": "deno task build -- -s"
"imports": {
"lume/": "https://deno.land/x/lume@v2.0.3/"
}
}
}
Loading

0 comments on commit 3c0757b

Please sign in to comment.