Project for my Personal Site
lukeautry / tsoa-example Goto Github PK
View Code? Open in Web Editor NEWAn example of tsoa usage
License: MIT License
An example of tsoa usage
License: MIT License
Project for my Personal Site
npm run build
...
tsoa swagger
/Users/oleg/Develop/2016/github.com/enterprise-react-app/packages/tsoa-example/node_modules/tsoa/dist/cli.js:21
const getConfig = (configPath = 'tsoa.json') => {
^
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3
Just did a fresh clone & npm install. (Windows 10, Node 6.9.2, NPM 4.5.0)
This is the npm start output:
λ npm start
> [email protected] start E:\SourceCode\tsoa-example
> npm run build && node ./dist/server.js
> [email protected] build E:\SourceCode\tsoa-example
> npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui
> [email protected] clean E:\SourceCode\tsoa-example
> rimraf dist
> [email protected] lint E:\SourceCode\tsoa-example
> tslint ./src/**/*.ts
> [email protected] swagger-gen E:\SourceCode\tsoa-example
> tsoa swagger
> [email protected] routes-gen E:\SourceCode\tsoa-example
> tsoa routes
node_modules/@types/node/index.d.ts(358,17): error TS1110: Type expected.
node_modules/@types/node/index.d.ts(1821,15): error TS1110: Type expected.
node_modules/@types/node/index.d.ts(1825,14): error TS1110: Type expected.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the tsoa-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs tsoa-example
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls tsoa-example
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\samue_000\AppData\Roaming\npm-cache\_logs\2017-05-14T15_21_40_915Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: `npm run build && node ./dist/server.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script 'npm run build && node ./dist/server.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the tsoa-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build && node ./dist/server.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs tsoa-example
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls tsoa-example
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\samue_000\AppData\Roaming\npm-cache\_logs\2017-05-14T15_21_40_951Z-debug.log
Any reference on how testing should be done with tsoa?
How to test on model and controller level?
Is it possible to pass this api request to rabbitmq ?
there seems to be many modules under the _gen directory such as routing files, etc., but this sub-directory is git ignored and thus not present in the repository.
running 'yarn', works OK:
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 2.12s.
running 'yarn start', failed with error:
yarn run v1.22.5
$ npm run build && node ./dist/server.js
> [email protected] build C:\Users\zg892471\Downloads\tsoa-example-master\tsoa-example-master
> npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui
> [email protected] clean C:\Users\zg892471\Downloads\tsoa-example-master\tsoa-example-master
> rimraf dist
> [email protected] lint C:\Users\zg892471\Downloads\tsoa-example-master\tsoa-example-master
> tslint ./src/**/*.ts
ERROR: src/server.ts:3:1 - Import sources within a group must be alphabetized.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] lint: `tslint ./src/**/*.ts`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\zg892471\AppData\Roaming\npm-cache\_logs\2020-12-22T17_36_22_218Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: `npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\zg892471\AppData\Roaming\npm-cache\_logs\2020-12-22T17_36_22_264Z-debug.log
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
after npm install
on a fresh clone trying to npm run build
fails during both swagger-gen and routes-gen with:
Error: Error generate parameter method: 'AccountsController.current' argument: someFlag Error: Parameter 'someFlag' can't macth in path: '/Current'
I tried updating the deps in package.json and that just ended up with me having a type conflict between the Account model and an Account type in node_modules someplace
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.