Commit 50fed0f1 authored by rockyl's avatar rockyl

init

parent acfe82e4
...@@ -11,7 +11,7 @@ const program = require('commander'); ...@@ -11,7 +11,7 @@ const program = require('commander');
const {generateDeclareMap} = require('../src/index'); const {generateDeclareMap} = require('../src/index');
program program
.version('1.0.2') .version('1.0.3')
.description('scilla declare generator') .description('scilla declare generator')
.option('-i, --input [string]', 'input file') .option('-i, --input [string]', 'input file')
.option('-o, --output [string]', 'output file') .option('-o, --output [string]', 'output file')
...@@ -24,6 +24,7 @@ if(!program.input || program.output){ ...@@ -24,6 +24,7 @@ if(!program.input || program.output){
} }
const componentsPath = program.pathofcomponents || path.join(os.homedir(), '.scilla', 'components'); const componentsPath = program.pathofcomponents || path.join(os.homedir(), '.scilla', 'components');
console.log('componentsPath: ', componentsPath);
const componentsSrcPath = path.join(componentsPath, 'src'); const componentsSrcPath = path.join(componentsPath, 'src');
const tsconfig = fs.readJsonSync(path.join(componentsPath, 'tsconfig.json')); const tsconfig = fs.readJsonSync(path.join(componentsPath, 'tsconfig.json'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment