mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-02 20:11:54 +08:00
Add CI
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
const fs = require('fs');
|
||||
const { promises: fsPromises } = fs;
|
||||
const pathFn = require('path');
|
||||
let table;
|
||||
const table = require('table');
|
||||
|
||||
const PRESET_MITM_HOSTNAMES = [
|
||||
'*baidu.com',
|
||||
@@ -23,14 +23,6 @@ const PRESET_MITM_HOSTNAMES = [
|
||||
'*.prod.hosts.ooklaserver.net'
|
||||
];
|
||||
|
||||
try {
|
||||
table = require('table');
|
||||
} catch (e) {
|
||||
console.log('Dependency "table" not found');
|
||||
console.log('"npm i table" then try again!');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
(async () => {
|
||||
const folderListPath = pathFn.resolve(__dirname, '../List/');
|
||||
const rulesets = await listDir(folderListPath);
|
||||
|
||||
Reference in New Issue
Block a user