initialize node project
This commit is contained in:
7
src/Web.ts
Normal file
7
src/Web.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
class Web {
|
||||
constructor(options = {}) {
|
||||
}
|
||||
}
|
||||
|
||||
export default Web;
|
7
src/index.ts
Normal file
7
src/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import Web from './Web.ts';
|
||||
|
||||
const config = JSON.parse(await fs.promises.readFile(process.env.config || path.join('config', 'config.json'), 'utf-8'));
|
||||
|
||||
const web = new Web(config);
|
Reference in New Issue
Block a user