Commit 461309a1 authored by rockyl's avatar rockyl

init

parents
Pipeline #121345 failed with stages
in 0 seconds
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# TypeScript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
# parcel-bundler cache (https://parceljs.org/)
.cache
# next.js build output
.next
# nuxt.js build output
.nuxt
# vuepress build output
.vuepress/dist
# Serverless directories
.serverless
/**
* Created by rockyl on 2019-04-29.
*/
const {execute: executeDeclareGenerator} = require('scilla-declare-generator/bin/cli-wrapper');
const {execute: executeTsCompiler} = require('scilla-ts-compiler/bin/cli-wrapper');
exports.execute = async function (program) {
if (!program.input) {
console.warn('parameter is incorrect');
process.exit(1);
}
await executeDeclareGenerator(program);
await executeTsCompiler(program);
};
#!/usr/bin/env node
/**
* Created by rockyl on 2019-04-26.
*/
const {execute} = require("./cli-wrapper");
const program = require('commander');
program
.version('1.0.0')
.description('scilla serverside cli')
.option('-i, --input [string]', 'input file')
.option('-p, --projectPath [string]', 'path of project')
.parse(process.argv);
execute(program).catch(e=>{
console.error(e);
process.exit(2);
});
{
"name": "scilla-serverside-cli",
"version": "1.0.0",
"main": "src/index.js",
"bin": "bin/cli.js",
"license": "MIT",
"dependencies": {
"scilla-declare-generator": "git+http://gitlab2.dui88.com/laoqifeng/scilla-declare-generator.git",
"scilla-ts-compiler": "git+http://gitlab2.dui88.com/laoqifeng/scilla-ts-compiler.git"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
/**
* Created by rockyl on 2019-04-29.
*/
This diff is collapsed.
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