Compare commits
No commits in common. "a67b04ba512f551a8a8140bf41e90d7c3b4d2a92" and "8075facfa3d5c935dd3b2e9b4a3892f1be11c682" have entirely different histories.
a67b04ba51
...
8075facfa3
|
|
@ -1,5 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
bun run check || exit 1
|
bun run check || exit 1
|
||||||
bun run build || exit 1
|
bun run build || exit 1
|
||||||
git add ./public/bundle.js
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
||||||
// Remove a project. Careful! There's no undo.
|
|
||||||
|
|
||||||
import { rmdirSync } from "fs"
|
|
||||||
import { DEFAULT_PROJECT } from "@/config"
|
|
||||||
import { projectDir, projects, projectName } from "@/project"
|
|
||||||
import load from "./load"
|
|
||||||
|
|
||||||
export default function (project: string, confirm = false) {
|
|
||||||
if (!projects().includes(project)) throw `no ${project} project`
|
|
||||||
if (project === DEFAULT_PROJECT) throw `can't delete ${DEFAULT_PROJECT} project`
|
|
||||||
if (!confirm) throw `> Are you POSITIVE?\n> Run again with 'true' at the end:\n\n$ rmproject ${project} true`
|
|
||||||
|
|
||||||
const isCurrent = projectName() === project
|
|
||||||
|
|
||||||
rmdirSync(projectDir(project), { recursive: true })
|
|
||||||
|
|
||||||
if (isCurrent)
|
|
||||||
|
|
||||||
return `${project} deleted`
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
////
|
////
|
||||||
// version: 8075fac
|
// version: 178711c
|
||||||
|
|
||||||
// src/js/dom.ts
|
// src/js/dom.ts
|
||||||
var content2 = $("content");
|
var content2 = $("content");
|
||||||
|
|
@ -741,7 +741,7 @@ function handleCompletion(e) {
|
||||||
const input = cmdInput.value;
|
const input = cmdInput.value;
|
||||||
for (const command of Object.keys(commands)) {
|
for (const command of Object.keys(commands)) {
|
||||||
if (command.startsWith(input)) {
|
if (command.startsWith(input)) {
|
||||||
cmdInput.value = command + " ";
|
cmdInput.value = command;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ function handleCompletion(e: KeyboardEvent) {
|
||||||
|
|
||||||
for (const command of Object.keys(commands)) {
|
for (const command of Object.keys(commands)) {
|
||||||
if (command.startsWith(input)) {
|
if (command.startsWith(input)) {
|
||||||
cmdInput.value = command + " "
|
cmdInput.value = command
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user