Commit aa1c079e authored by rockyl's avatar rockyl

init

parent 7b25ecd9
...@@ -18,6 +18,10 @@ program ...@@ -18,6 +18,10 @@ program
.option('-v, --verbose [boolean]', 'verbose mode', false) .option('-v, --verbose [boolean]', 'verbose mode', false)
.parse(process.argv); .parse(process.argv);
if(!program.input || program.output){
process.exit(1);
}
const systemComponentsPath = path.join(os.homedir(), '.scilla', 'components'); const systemComponentsPath = path.join(os.homedir(), '.scilla', 'components');
const systemComponentsSrcPath = path.join(systemComponentsPath, 'src'); const systemComponentsSrcPath = path.join(systemComponentsPath, 'src');
const tsconfig = fs.readJsonSync(path.join(systemComponentsPath, 'tsconfig.json')); const tsconfig = fs.readJsonSync(path.join(systemComponentsPath, 'tsconfig.json'));
...@@ -46,7 +50,7 @@ if(program.verbose){ ...@@ -46,7 +50,7 @@ if(program.verbose){
if(Object.keys(result.missingDependencies).length > 0){ if(Object.keys(result.missingDependencies).length > 0){
console.warn(JSON.stringify(result.missingDependencies, null, '\t')); console.warn(JSON.stringify(result.missingDependencies, null, '\t'));
process.exit(1); process.exit(2);
} }
fs.ensureDirSync(path.dirname(program.output)); fs.ensureDirSync(path.dirname(program.output));
......
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