Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
run: deno task check

- name: Build
run: deno task css
run: deno task build

- name: Deploy
uses: denoland/deployctl@v1
with:
project: "mage-docs"
entrypoint: "./src/main.tsx"
entrypoint: "./src/serve.ts"
root: "."
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
run: deno task check

- name: Build
run: deno task css
run: deno task build
10 changes: 0 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,6 @@ The repository contains a Mage Server application.
When making changes to the server in the [src](./src) directory, it is
recommended to run the server locally to test the changes.

The styles are powered by [tailwindcss](https://tailwindcss.com/) and are build
using the tailwind CLI. To build the styles run the following command:

```sh
deno task css

# or in watch mode:
deno task css --watch
```

Run the server with the following command:

```sh
Expand Down
6 changes: 6 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# To do

1. Make build id configurable via optional param to MageApp contructor, default
to guid
2. Add the asset signals api into @mage/preact, it can grab the build if off
context and set it on every render for the assetURL to use
19 changes: 9 additions & 10 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
{
"tasks": {
"dev": "deno run --allow-all --watch ./src/main.tsx",
"css": "deno run --allow-all npm:@tailwindcss/cli -i ./src/main.css -o ./public/main.css --minify",
"build": "deno run -A ./src/build.ts",
"dev": "deno run -A --watch ./src/develop.ts",
"lint": "deno lint",
"format": "deno fmt",
"check": "deno check ."
},
"imports": {
"@mage/app": "jsr:@mage/app@^0.4.0",
"@mage/preact": "jsr:@mage/preact@^0.1.4",
"@heroicons/react": "npm:@heroicons/react@^2.2.0",
"@mage/app": "jsr:@mage/app@^0.7.1",
"@mage/preact": "jsr:@mage/preact@^0.2.0",
"@mage/tailwindcss": "jsr:@mage/tailwindcss@^0.2.4",
"@preact-icons/fa": "jsr:@preact-icons/fa@^1.0.12",
"@std/path": "jsr:@std/path@^1.0.8",
"@tailwindcss/cli": "npm:@tailwindcss/cli@^4.0.3",
"@tailwindcss/postcss": "npm:@tailwindcss/postcss@^4.0.6",
"postcss": "npm:postcss@^8.5.2",
"preact": "npm:preact@^10.26.0",
"tailwindcss": "npm:tailwindcss@^4.0.3"
"@preact/signals": "npm:@preact/signals@^2.0.1",
"preact": "npm:preact@^10.26.2",
"tailwindcss": "npm:tailwindcss@^4.0.8"
},
"compilerOptions": {
"jsx": "react-jsx",
Expand Down
Loading