Skip to content

Commit

Permalink
Merge branch 'develop' into request-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gervwyk committed Jun 7, 2022
2 parents e29d88b + d570f4c commit 6e06ce1
Show file tree
Hide file tree
Showing 39 changed files with 47 additions and 39 deletions.
3 changes: 0 additions & 3 deletions .yarnrc.yml
Expand Up @@ -20,9 +20,6 @@ packageExtensions:
dependencies:
react: "*"
react-dom: "*"
rc-dropdown@*:
dependencies:
rc-util: "*"
rc-input-number@*:
dependencies:
react: "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/api/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/build/package.json
@@ -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": [
Expand Down
6 changes: 6 additions & 0 deletions packages/build/src/lowdefySchema.js
Expand Up @@ -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',
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/commands/dev/runDevServer.js
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/index.js
Expand Up @@ -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".'
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/src/utils/startUp.js
Expand Up @@ -30,8 +30,9 @@ async function startUp({ context, options = {}, command }) {
context.command = command.name();
context.commandLineOptions = options;
context.print = createPrint();

context.configDirectory = path.resolve(options.configDirectory || process.cwd());
context.configDirectory = path.resolve(
options.configDirectory || process.env.LOWDEFY_DIRECTORY_CONFIG || process.cwd()
);
const { cliConfig, lowdefyVersion, plugins } = await getLowdefyYaml(context);
context.cliConfig = cliConfig;
context.lowdefyVersion = lowdefyVersion;
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/concepts/lowdefy-schema.yaml
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/lowdefy.yaml
Expand Up @@ -14,7 +14,7 @@

name: '@lowdefy/docs'
lowdefy: 4.0.0-alpha.12
licence: Apache-2.0
license: Apache-2.0

cli:
disableTelemetry: true
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/tutorial/tutorial-deploy.yaml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/engine/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/layout/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/operators/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/actions/actions-core/package.json
@@ -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": [
Expand Down
@@ -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": [
Expand Down
@@ -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": [
Expand Down
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/connections/connection-knex/package.json
@@ -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": [
Expand Down
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/connections/connection-redis/package.json
@@ -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": [
Expand Down
@@ -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": [
Expand Down
@@ -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": [
Expand Down
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/operators/operators-diff/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/operators/operators-js/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/operators/operators-mql/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/operators/operators-nunjucks/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/operators/operators-uuid/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/operators/operators-yaml/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/plugins/plugin-aws/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/plugins/plugins/plugin-next-auth/package.json
@@ -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": [
Expand Down
4 changes: 3 additions & 1 deletion packages/server-dev/manager/run.mjs
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/ajv/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/block-dev/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/block-utils/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/helpers/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/jest-yaml-transform/package.json
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/node-utils/package.json
@@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/nunjucks/package.json
@@ -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": [
Expand Down

0 comments on commit 6e06ce1

Please sign in to comment.