Comparing version 0.0.63 to 0.0.64
@@ -31,16 +31,17 @@ #!/usr/bin/env node | ||
const comment = { | ||
create: 'Init a new aca project [dirname]', | ||
server: 'Create a server [dirname] application, [dirname] default: server.', | ||
client: 'Create a client [dirname] application, [dirname] default: client.', | ||
add: 'Add a app config. -s(--server) or -c(--client): server app or client app, -a [name]: apiDir name, default src/aca.server or src/aca.client', | ||
up: 'Alter database schema and generate api', | ||
rollback: 'Rollback to previous release', | ||
create: 'create a new aca project <projectName>', | ||
server: 'create a server app, [appName] default: server', | ||
client: 'create a client app, [appName] default: client', | ||
add: 'add yourself app to the project, -s(--server) -c(--client), -a(--apiDir) [path]: default src/aca.server src/aca.client', | ||
up: 'create or alter database schema, and generate api', | ||
rollback: 'rollback to previous release', | ||
}; | ||
const usage = ` | ||
aca create [dirname] ${comment.create} | ||
aca server [dirname] ${comment.server} | ||
aca client [dirname] ${comment.client} | ||
aca add [dirname] <-s or -c> -a [name] ${comment.add} | ||
aca up ${comment.up} | ||
aca rollback ${comment.rollback} | ||
aca create <projectName> ${comment.create} | ||
aca server [appName] ${comment.server} | ||
aca client [appName] ${comment.client} | ||
aca add [appName] -s -c -a [path] ${comment.add} | ||
aca up ${comment.up} | ||
aca rollback ${comment.rollback} | ||
aca --version show current version | ||
`; | ||
@@ -47,0 +48,0 @@ if (yargs.argv._.length) { |
{ | ||
"name": "aca.ts", | ||
"version": "0.0.63", | ||
"version": "0.0.64", | ||
"description": "Aca.ts is a CLI based on Typescript and Knex.js. It can automatically sync database schema, automatically generate APIs for accessing the database, automatically create frontend APIs through backend functions (like RPC).", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -70,3 +70,3 @@ English | [įŽäŊä¸æ](https://aca.ts.center) | ||
<img with="80px" hight="180px" src="https://aca.ts.center/static/config.jpg"> | ||
<img with="80px" hight="180px" src="https://aca.ts.center/config.jpg"> | ||
@@ -104,7 +104,7 @@ 3. Use the following method to create aca.ts apps: | ||
> <font color=red>The generated backend APIs usage example are as follows:</font> <img with="80px" hight="180px" src="https://aca.ts.center/static/server-koa-index.jpg"> | ||
> <font color=red>The generated backend APIs usage example are as follows:</font> <img with="80px" hight="180px" src="https://aca.ts.center/server-koa-index.jpg"> | ||
# | ||
> <font color=red>The generated frontend APIs usage example are as follows:</font> <img with="80px" hight="180px" src="https://aca.ts.center/static/client-react-app.jpg"> | ||
> <font color=red>The generated frontend APIs usage example are as follows:</font> <img with="80px" hight="180px" src="https://aca.ts.center/client-react-app.jpg"> | ||
@@ -111,0 +111,0 @@ # |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
285025
4736