mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-08-22 00:24:46 -05:00
Add cache warming command
This commit is contained in:
@@ -3,6 +3,7 @@ import consoleStamp from 'console-stamp';
|
||||
import cron from './cron.mjs';
|
||||
import { sendTweets } from './twitter/index.mjs';
|
||||
import { updateAll } from './data/index.mjs';
|
||||
import { warmCache } from "./splatnet/index.mjs";
|
||||
|
||||
consoleStamp(console);
|
||||
dotenv.config();
|
||||
@@ -11,6 +12,7 @@ const actions = {
|
||||
cron,
|
||||
twitter: sendTweets,
|
||||
splatnet: updateAll,
|
||||
warmCache,
|
||||
}
|
||||
|
||||
const command = process.argv[2];
|
||||
|
||||
@@ -8,7 +8,8 @@
|
||||
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
|
||||
"cron": "node app/index.mjs cron",
|
||||
"twitter": "node app/index.mjs twitter",
|
||||
"splatnet": "node app/index.mjs splatnet"
|
||||
"splatnet": "node app/index.mjs splatnet",
|
||||
"warmCache": "node app/index.mjs warmCache"
|
||||
},
|
||||
"dependencies": {
|
||||
"console-stamp": "^3.0.6",
|
||||
|
||||
Reference in New Issue
Block a user