@nocobase/server
Advanced tools
Comparing version 0.7.0-alpha.22 to 0.7.0-alpha.23
@@ -0,3 +1,3 @@ | ||
import { Command } from 'commander'; | ||
import Application from '../application'; | ||
import { Command } from 'commander'; | ||
export declare function createCli(app: Application): Command; |
@@ -15,4 +15,4 @@ import { Command } from 'commander'; | ||
}; | ||
program.command('start').description('start NocoBase application').action(runSubCommand('start')); | ||
program.command('install').option('-f, --force').option('-c, --clean').action(runSubCommand('install')); | ||
program.command('start').description('start NocoBase application').option('-s, --silent').action(runSubCommand('start')); | ||
program.command('install').option('-f, --force').option('-c, --clean').option('-s, --silent').action(runSubCommand('install')); | ||
program.command('db:sync').option('-f, --force').action(runSubCommand('db-sync')); | ||
@@ -19,0 +19,0 @@ program.command('console').action(runSubCommand('console')); |
@@ -16,13 +16,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (tables.includes('collections')) { | ||
console.log(); | ||
console.log(); | ||
console.log(chalk.yellow('NocoBase is already installed. To reinstall, please execute:')); | ||
console.log(); | ||
let command = 'yarn nocobase install -f'; | ||
console.log(chalk.yellow(command)); | ||
console.log(); | ||
console.log(); | ||
if (!opts.silent) { | ||
console.log(); | ||
console.log(); | ||
console.log(chalk.yellow('NocoBase is already installed. To reinstall, please execute:')); | ||
console.log(); | ||
let command = 'yarn nocobase install -f'; | ||
console.log(chalk.yellow(command)); | ||
console.log(); | ||
console.log(); | ||
} | ||
return; | ||
} | ||
} | ||
if (!opts.silent) { | ||
console.log(`NocoBase installing`); | ||
} | ||
yield app.install({ | ||
@@ -38,3 +43,6 @@ cliArgs, | ||
}); | ||
if (!opts.silent) { | ||
console.log(`NocoBase installed`); | ||
} | ||
}); | ||
//# sourceMappingURL=install.js.map |
@@ -21,4 +21,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}); | ||
console.log(`🚀 nocobase server had started at http://${host}:${port}`); | ||
if (!opts.silent) { | ||
console.log(`🚀 NocoBase server running at: http://${host === '0.0.0.0' ? 'localhost' : host}:${port}/`); | ||
} | ||
}); | ||
//# sourceMappingURL=start.js.map |
@@ -0,3 +1,3 @@ | ||
import { Command } from 'commander'; | ||
import Application from '../application'; | ||
import { Command } from 'commander'; | ||
export declare function createCli(app: Application): Command; |
@@ -18,4 +18,4 @@ "use strict"; | ||
}; | ||
program.command('start').description('start NocoBase application').action(runSubCommand('start')); | ||
program.command('install').option('-f, --force').option('-c, --clean').action(runSubCommand('install')); | ||
program.command('start').description('start NocoBase application').option('-s, --silent').action(runSubCommand('start')); | ||
program.command('install').option('-f, --force').option('-c, --clean').option('-s, --silent').action(runSubCommand('install')); | ||
program.command('db:sync').option('-f, --force').action(runSubCommand('db-sync')); | ||
@@ -22,0 +22,0 @@ program.command('console').action(runSubCommand('console')); |
@@ -21,13 +21,18 @@ "use strict"; | ||
if (tables.includes('collections')) { | ||
console.log(); | ||
console.log(); | ||
console.log(chalk_1.default.yellow('NocoBase is already installed. To reinstall, please execute:')); | ||
console.log(); | ||
let command = 'yarn nocobase install -f'; | ||
console.log(chalk_1.default.yellow(command)); | ||
console.log(); | ||
console.log(); | ||
if (!opts.silent) { | ||
console.log(); | ||
console.log(); | ||
console.log(chalk_1.default.yellow('NocoBase is already installed. To reinstall, please execute:')); | ||
console.log(); | ||
let command = 'yarn nocobase install -f'; | ||
console.log(chalk_1.default.yellow(command)); | ||
console.log(); | ||
console.log(); | ||
} | ||
return; | ||
} | ||
} | ||
if (!opts.silent) { | ||
console.log(`NocoBase installing`); | ||
} | ||
yield app.install({ | ||
@@ -43,3 +48,6 @@ cliArgs, | ||
}); | ||
if (!opts.silent) { | ||
console.log(`NocoBase installed`); | ||
} | ||
}); | ||
//# sourceMappingURL=install.js.map |
@@ -23,4 +23,6 @@ "use strict"; | ||
}); | ||
console.log(`🚀 nocobase server had started at http://${host}:${port}`); | ||
if (!opts.silent) { | ||
console.log(`🚀 NocoBase server running at: http://${host === '0.0.0.0' ? 'localhost' : host}:${port}/`); | ||
} | ||
}); | ||
//# sourceMappingURL=start.js.map |
{ | ||
"name": "@nocobase/server", | ||
"version": "0.7.0-alpha.22", | ||
"version": "0.7.0-alpha.23", | ||
"main": "lib/index.js", | ||
@@ -21,6 +21,6 @@ "types": "./lib/index.d.ts", | ||
"@koa/router": "^9.4.0", | ||
"@nocobase/acl": "0.7.0-alpha.22", | ||
"@nocobase/actions": "0.7.0-alpha.22", | ||
"@nocobase/database": "0.7.0-alpha.22", | ||
"@nocobase/resourcer": "0.7.0-alpha.22", | ||
"@nocobase/acl": "0.7.0-alpha.23", | ||
"@nocobase/actions": "0.7.0-alpha.23", | ||
"@nocobase/database": "0.7.0-alpha.23", | ||
"@nocobase/resourcer": "0.7.0-alpha.23", | ||
"chalk": "^4.1.1", | ||
@@ -36,3 +36,3 @@ "commander": "^8.1.0", | ||
}, | ||
"gitHead": "dc5e9c80ed57ffd9b2f652f68a9444bfb79647db" | ||
"gitHead": "32ce4ea85201140eeb78f33f443038dfffb02083" | ||
} |
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
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
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
202816
2263
+ Added@nocobase/acl@0.7.0-alpha.23(transitive)
+ Added@nocobase/actions@0.7.0-alpha.23(transitive)
+ Added@nocobase/database@0.7.0-alpha.23(transitive)
+ Added@nocobase/resourcer@0.7.0-alpha.23(transitive)
+ Added@nocobase/utils@0.7.0-alpha.23(transitive)
- Removed@nocobase/acl@0.7.0-alpha.22(transitive)
- Removed@nocobase/actions@0.7.0-alpha.22(transitive)
- Removed@nocobase/database@0.7.0-alpha.22(transitive)
- Removed@nocobase/resourcer@0.7.0-alpha.22(transitive)
- Removed@nocobase/utils@0.7.0-alpha.22(transitive)
Updated@nocobase/acl@0.7.0-alpha.23