master
Lei OT 2 years ago
parent 37f0cea17c
commit a134633bc8

@ -95,8 +95,9 @@ async function getLocalFiles(args) {
try { try {
const [, , repoArg] = process.argv; const [, , repoArg] = process.argv;
const options = Object.keys(cfg).join(' | ');
if (!repoArg) { if (!repoArg) {
throw "error: Pls input repo: info | ghh | XX"; throw `error: Pls input repo: ${options}`;
} }
const filename = `.ftp-deploy-sync-state.json`; const filename = `.ftp-deploy-sync-state.json`;
const _args = { const _args = {

@ -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 = { export const cfg = {
'info': { 'info': {
@ -27,4 +27,8 @@ export const cfg = {
folder: 'data.chinahighlights.com', folder: 'data.chinahighlights.com',
exclude: [].concat(defaultExclude, []), exclude: [].concat(defaultExclude, []),
}, },
'ah': {
folder: 'asiahighlights.com',
exclude: [].concat(defaultExclude, ['**/{image,design,system,pdf}/**']),
},
}; };

Loading…
Cancel
Save