-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The following is what I got with npm install,
✘ ~/dev/tmp cat node_modules/@superbogy/zly/bin/index.js | head -20
#!/usr/bin/env node
const commander = require('commander');
const fs = require('fs');
const color = require('cli-color');
const Yaml = require('yaml');
const Zly = require('../lib/index');
const server = require('../lib/server').server;
commander.version('0.1.3')
.option('-o, --output <path>', 'put the result to file')
.option('-w, --workspace', 'yaml file root path')
.option('-f, --format <type>', 'format output style, yaml or json', 'yaml')
.option('-p, --pretty', 'pretty out put')
.option('-s, --server', 'start a swagger ui')
.option('-e, --extname <ext>', 'extend name, split with comma')
.parse(process.argv);
try {
const entry = commander.args[0];
It's not the same as the code with tav 0.1.3
Lines 1 to 20 in 3d73eae
| #!/usr/bin/env node | |
| const commander = require('commander'); | |
| const fs = require('fs'); | |
| const color = require('cli-color'); | |
| const Yaml = require('yaml'); | |
| const Zly = require('../lib/index'); | |
| const watcher = require('chokidar'); | |
| const express = require('express'); | |
| const swaggerUi = require('swagger-ui-express'); | |
| const expressWS = require('express-ws'); | |
| const path = require('path'); | |
| const server = require('../lib/server').server; | |
| const startServer1 = (entry, workspace, extnames, port=2020) => { | |
| const app = express(); | |
| expressWS(app); | |
| app.use('/', swaggerUi.serve); | |
| app.use('/static', express.static(path.resolve('../static'))); | |
| app.get('/', (req, res, next) => { |
I believe this issue leads to a 404 error about ws.js.
Metadata
Metadata
Assignees
Labels
No labels