diff --git a/main.mjs b/main.mjs index 31c16fb..8d8b156 100644 --- a/main.mjs +++ b/main.mjs @@ -95,8 +95,9 @@ async function getLocalFiles(args) { try { const [, , repoArg] = process.argv; + const options = Object.keys(cfg).join(' | '); if (!repoArg) { - throw "error: Pls input repo: info | ghh | XX"; + throw `error: Pls input repo: ${options}`; } const filename = `.ftp-deploy-sync-state.json`; const _args = { diff --git a/repo-config.js b/repo-config.js index 944b0bc..9abb5f2 100644 --- a/repo-config.js +++ b/repo-config.js @@ -1,4 +1,4 @@ -const defaultExclude = ['**/node_modules/**', '**/.git*/**', '**/.git*', '*.{exe,docx}', '**/cache*/**', '**/tmp*/**', '**/logs/**', '**/web.config', '.idea/**']; +const defaultExclude = ['**/node_modules/**', '**/.git*/**', '**/.git*', '**/.well-known/**', '*.{exe,docx}', '**/cache*/**', '**/tmp*/**', '**/logs/**', '**/web.config', '.idea/**']; export const cfg = { 'info': { @@ -27,4 +27,8 @@ export const cfg = { folder: 'data.chinahighlights.com', exclude: [].concat(defaultExclude, []), }, + 'ah': { + folder: 'asiahighlights.com', + exclude: [].concat(defaultExclude, ['**/{image,design,system,pdf}/**']), + }, };