mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-03-19 15:01:06 +08:00
Merge branch 'develop' into cli-fix
This commit is contained in:
commit
eeab1f7beb
@ -20,9 +20,6 @@ packageExtensions:
|
||||
dependencies:
|
||||
react: "*"
|
||||
react-dom: "*"
|
||||
rc-dropdown@*:
|
||||
dependencies:
|
||||
rc-util: "*"
|
||||
rc-input-number@*:
|
||||
dependencies:
|
||||
react: "*"
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/api",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/build",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -652,6 +652,12 @@ export default {
|
||||
type: 'App "license" should be a string.',
|
||||
},
|
||||
},
|
||||
version: {
|
||||
type: 'string',
|
||||
errorMessage: {
|
||||
type: 'App "version" should be a string.',
|
||||
},
|
||||
},
|
||||
app: {
|
||||
$ref: '#/definitions/app',
|
||||
},
|
||||
|
@ -28,6 +28,7 @@ async function runDevServer({ context, directory }) {
|
||||
LOWDEFY_BUILD_REF_RESOLVER: context.options.refResolver,
|
||||
LOWDEFY_DIRECTORY_CONFIG: context.directories.config,
|
||||
LOWDEFY_PACKAGE_MANAGER: context.packageManager,
|
||||
LOWDEFY_SERVER_DEV_OPEN_BROWSER: !!context.options.open,
|
||||
LOWDEFY_SERVER_DEV_WATCH: JSON.stringify(context.options.watch),
|
||||
LOWDEFY_SERVER_DEV_WATCH_IGNORE: JSON.stringify(context.options.watchIgnore),
|
||||
PORT: context.options.port,
|
||||
|
@ -69,6 +69,7 @@ program
|
||||
'Change config directory. Default is the current working directory.'
|
||||
)
|
||||
.option('--disable-telemetry', 'Disable telemetry.')
|
||||
.option('--no-open', 'Do not open a new tab in the default browser.')
|
||||
.option(
|
||||
'--package-manager <package-manager>',
|
||||
'The package manager to use. Options are "npm" or "yarn".'
|
||||
|
@ -29,7 +29,7 @@ _ref:
|
||||
The root schema for a Lowdefy app is:
|
||||
- `lowdefy: string`: __Required__ - The Lowdefy version number the app uses. This is required and cannot be a reference to another file.
|
||||
- `name: string`: A name for the application.
|
||||
- `licence: string`: A [SPDX licence ID](https://spdx.org/licenses/). You can use this to indicate the project's licence if you are licencing your project under a specific software licence. If you wish to indicate to others that you do not grant the right to use your project, you can optionally use `UNLICENSED` for this field. How you share your Lowdefy config is up to you.
|
||||
- `license: string`: A [SPDX license ID](https://spdx.org/licenses/). You can use this to indicate the project's license if you are licencing your project under a specific software license. If you wish to indicate to others that you do not grant the right to use your project, you can optionally use `UNLICENSED` for this field. How you share your Lowdefy config is up to you.
|
||||
- `cli: object`: An object with configuration for the CLI.
|
||||
- `config: object`: An object with app configuration like the home page pageId.
|
||||
- `global: object`: A data object that can be accessed anywhere in the app using the [`_global`](/_global) operator.
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
name: '@lowdefy/docs'
|
||||
lowdefy: 4.0.0-alpha.12
|
||||
licence: Apache-2.0
|
||||
license: Apache-2.0
|
||||
|
||||
cli:
|
||||
disableTelemetry: true
|
||||
|
@ -55,7 +55,7 @@ _ref:
|
||||
|
||||
#### Step 6.1 - Create a Github repository
|
||||
|
||||
Create a new Github repository. You can do that [here](https://github.com/new). Do not initialize the repository with a `.gitignore`, `README`, or licence file.
|
||||
Create a new Github repository. You can do that [here](https://github.com/new). Do not initialize the repository with a `.gitignore`, `README`, or license file.
|
||||
|
||||
#### Step 6.2 - Add your files to the repository
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/engine",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/layout",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/actions-core",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-axios-http",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-elasticsearch",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-google-sheets",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-knex",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-mongodb",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-redis",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-sendgrid",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/connection-stripe",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators-change-case",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators-diff",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators-js",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators-mql",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators-nunjucks",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators-uuid",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/operators-yaml",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/plugin-aws",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/plugin-next-auth",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -80,7 +80,9 @@ async function run() {
|
||||
try {
|
||||
const serverPromise = startServer(context);
|
||||
await wait(800);
|
||||
opener(`http://localhost:${context.options.port}`);
|
||||
if (process.env.LOWDEFY_SERVER_DEV_OPEN_BROWSER === 'true') {
|
||||
opener(`http://localhost:${context.options.port}`);
|
||||
}
|
||||
await serverPromise;
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/ajv",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/block-dev",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Lowdefy Block Development Tools",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/block-utils",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "Lowdefy Block Utils",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/helpers",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/jest-yaml-transform",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "A Jest Transform for YAML.",
|
||||
"main": "./dist/index.js",
|
||||
"homepage": "https://lowdefy.com",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/node-utils",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@lowdefy/nunjucks",
|
||||
"version": "4.0.0-alpha.12",
|
||||
"licence": "Apache-2.0",
|
||||
"license": "Apache-2.0",
|
||||
"description": "",
|
||||
"homepage": "https://lowdefy.com",
|
||||
"keywords": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user