mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 18:45:03 +08:00
df57b4eb17
* feat: suspending, banning, now propogation * feat: added email rendering + localization support * fix: fix related to lib * refactor: moved juicer to queue task * refactor: cleanup of job processor * refactor: improved error messaging around failed email * feat: initial forgot passwor impl * fix: fixed rebase errors * feat: send back Content-Language header with requests * feat: added ban email * feat: implemented forgotten password API * fix: linting * feat: support more emails * fix: promise patches * feat: initial confirm email API * feat: added rate limiting * feat: added URL support * feat: added email docs * fix: updated docs * chore: documentation review * fix: fixed build bug * feat: implement forgot password in auth popup * test: add tests + fixes * chore: rename StatelessComponent to FunctionComponent * fix: types and test fixes * chore: upgrade deps * fix: THANK YOU TESTS FOR SAVING MY A** * chore: reorder imports * chore: remove obsolete ! * feat: implement accounts bundle * refactor: review suggestion * fix: rebase upgrade error * fix: rebase bug * feat: reset password link support * test: add tests for account password reset page * fix: remove redirect uri * fix: revert local state changes
38 lines
881 B
TypeScript
38 lines
881 B
TypeScript
#!/usr/bin/env ts-node
|
|
|
|
import program from "commander";
|
|
import path from "path";
|
|
import watch from "../";
|
|
|
|
async function run(
|
|
args: ReadonlyArray<string>,
|
|
options: Record<string, string>
|
|
) {
|
|
const only = args;
|
|
const { config: configFile = "" } = options;
|
|
if (!configFile) {
|
|
throw new Error("Config file not specified");
|
|
}
|
|
|
|
// tslint:disable-next-line:no-var-requires
|
|
let config: any = require(path.resolve(configFile));
|
|
if (config.__esModule) {
|
|
config = config.default;
|
|
}
|
|
|
|
await watch(config, { only });
|
|
}
|
|
|
|
const cmd = program
|
|
.version("0.1.0")
|
|
.usage("[watchers or sets]")
|
|
.option("-c, --config <configFile>", "Use given config file")
|
|
.description("Run watchers defined in <configFile>")
|
|
.parse(process.argv);
|
|
|
|
run(cmd.args, cmd.opts()).catch(err => {
|
|
// tslint:disable-next-line:no-console
|
|
console.error(err);
|
|
process.exit(1);
|
|
});
|