1
This commit is contained in:
parent
cc6e1e0ed1
commit
0ca1cb8d08
@ -5,7 +5,7 @@ const assert = require('assert');
|
||||
class MyDoc {
|
||||
|
||||
constructor() {
|
||||
this.workDir = '.';
|
||||
this.workDir = './';
|
||||
}
|
||||
|
||||
async init() {
|
||||
@ -13,6 +13,20 @@ class MyDoc {
|
||||
}
|
||||
|
||||
async convert() {
|
||||
this.env = fs.readFileSync(`${this.workDir}env.json`, 'utf8');
|
||||
let data = `
|
||||
<?php5
|
||||
class Doc
|
||||
{
|
||||
|
||||
`;
|
||||
if (fs.existsSync(`${this.workDir}README.php`)) {
|
||||
data += fs.readFileSync(`${this.workDir}README.php`, 'utf8');
|
||||
}
|
||||
const files = fs.readdirSync('./', {encoding:'utf8', withFileTypes:true});
|
||||
files.forEach((item) => {
|
||||
console.log(item);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user