changed files depending on the old folder "app" to the new folder "src"
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
crontab -l > mycron
|
crontab -l > mycron
|
||||||
echo "0 8 * * * bun run ./app/app.ts --today > /dev/null 2>&1" >> mycron
|
echo "0 8 * * * bun run ./src/app.ts --today > /dev/null 2>&1" >> mycron
|
||||||
echo "0 * * * * bun run ./app/app.ts --all > /dev/null 2>&1" >> mycron
|
echo "0 * * * * bun run ./src/app.ts > /dev/null 2>&1" >> mycron
|
||||||
crontab mycron
|
crontab mycron
|
||||||
rm mycron
|
rm mycron
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"name": "eventcalender",
|
"name": "eventcalender",
|
||||||
"module": "index.ts",
|
"module": "./src/app.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/bun": "^1.3.0"
|
"@types/bun": "^1.3.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bun run ./app/app.ts",
|
"dev": "bun run ./src/app.ts",
|
||||||
"dev:init": "bun run ./app/app.ts --init",
|
"dev:init": "bun run ./src/app.ts --init",
|
||||||
"db:init": "bun run ./run/db_init.ts",
|
"db:init": "bun run ./run/db_init.ts",
|
||||||
"db:deleteall": "bun run ./run/db_deleteall.ts",
|
"db:deleteall": "bun run ./run/db_deleteall.ts",
|
||||||
"build": "bun build ./app/app.ts --compile --outfile ./build/77th_event_calendar_notification"
|
"build": "bun build ./src/app.ts --compile --outfile ./build/77th_event_calendar_notification"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "^5"
|
"typescript": "^5"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import * as db from "../app/sql";
|
import * as db from "../src/sql";
|
||||||
|
|
||||||
const query = db.db.query("DELETE FROM events;");
|
const query = db.db.query("DELETE FROM events;");
|
||||||
query.run();
|
query.run();
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Event } from "../app/component/event/events";
|
import { Event } from "../src/component/event/events";
|
||||||
import * as db from "../app/sql";
|
import * as db from "../src/sql";
|
||||||
import { Database } from "bun:sqlite";
|
import { Database } from "bun:sqlite";
|
||||||
|
|
||||||
export function init ( db: Database ) {
|
export function init ( db: Database ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user