draig-car
Advanced tools
Comparing version 1.0.9 to 1.2.0
@@ -277,8 +277,8 @@ const fs = require('fs') | ||
const subprocess = spwn('sh', ['-c', packager + ' start'], { | ||
detached: true, | ||
detached: !sync, | ||
stdio: sync ? 'inherit' : 'ignore', | ||
cwd: ctx.argv.projectDir | ||
}) | ||
console.log('API started with pid', subprocess.pid) | ||
if (!sync) { | ||
console.log('API started with pid', subprocess.pid) | ||
subprocess.unref() | ||
@@ -357,4 +357,3 @@ saveAPIpid(ctx, subprocess.pid) | ||
await runPackager(ctx, 'migrate-down') | ||
if(!fs.existsSync(path.resolve(migrations, fname)) | ||
&& fs.existsSync(path.resolve(migrations, nfname))) | ||
if(fs.existsSync(path.resolve(migrations, nfname))) | ||
fs.renameSync( | ||
@@ -361,0 +360,0 @@ path.resolve(migrations, nfname), |
{ | ||
"name": "draig-car", | ||
"version": "1.0.9", | ||
"version": "1.2.0", | ||
"description": "Database REST API interactive generator CLI and REPL\nOpenAPI3 based JS generator with interactive ORM/ODM REPL", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
13
TODO.md
@@ -1,2 +0,3 @@ | ||
# Next path: fixes and improvements | ||
# Next patch: fixes and improvements | ||
+ `faker` seeds: work in progress (faker extensions?, customization?) | ||
@@ -8,2 +9,6 @@ + Petstore: revisite awful endpoints | ||
+ application/xml media type support | ||
+ Custom services: customization via x-draig-nogenerate and x-draig-ioc-service: | ||
should require `package.json` patching for external requires auto merging - Use | ||
(Dependency injection)[https://github.com/zazoomauro/node-dependency-injection] | ||
- OAuth2 / API Auth | ||
@@ -14,11 +19,9 @@ - Compatibility with API Managers (statistics, audit, transaction, tracing)... | ||
- Test, regresion tests, unit tests, integrations tests... tests, tests, tests. | ||
- Seed generator compatibility with GUUIDs | ||
- UUIDs: java and seed generator compatibility with GUUIDs | ||
- Docs: video tutorials, startup guide, template guide, x-draig docs | ||
- POST generalization to array of objects? | ||
- application/xml media type support | ||
- Custom code: handler customization via x-draig-nogenerate and x-draig-ext-service | ||
and `package.json` patching for external requires auto merging | ||
- Introspection!: inverse engineering of DB schema to OAS3 schemas w/relations | ||
- UUID generation instead of sequence | ||
- Better migrations (i.e. django-like) | ||
- Headers in response? (i.e. X-Rate-Limit, X-Expires-After, etc.) | ||
@@ -25,0 +28,0 @@ # Next major |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
159464
60
2198
20