Skip to content

Commit

Permalink
merge: merge with master
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilK15 committed Jul 13, 2020
2 parents 654a62f + ce2d080 commit 58ef8b1
Show file tree
Hide file tree
Showing 446 changed files with 10,141 additions and 2,234 deletions.
18 changes: 9 additions & 9 deletions .adiorc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ module.exports = {
ignoreDirs: ["node_modules/", "dist/", "build/"],
packages: [
"packages/*",
"sample-project/api/apolloGateway",
"sample-project/api/settingsManager",
"sample-project/api/databaseProxy",
"sample-project/api/files/*",
"sample-project/api/formBuilder",
"sample-project/api/cms/*",
"sample-project/api/i18n/*",
"sample-project/api/pageBuilder",
"sample-project/api/security/*"
"api/apolloGateway",
"api/settingsManager",
"api/databaseProxy",
"api/files/*",
"api/formBuilder",
"api/cms/*",
"api/i18n/*",
"api/pageBuilder",
"api/security/*"
]
};
4 changes: 2 additions & 2 deletions .github/workflows/masterBranchPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build (latest)

on:
push:
branches: [ master ]
branches: [master]

env:
NODE_OPTIONS: --max_old_space_size=4096
Expand All @@ -16,7 +16,7 @@ jobs:

- uses: actions/setup-node@v2-beta
with:
node-version: '12'
node-version: "12"

- name: Install dependencies
run: yarn --frozen-lockfile
Expand Down
29 changes: 23 additions & 6 deletions .github/workflows/pullRequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,38 @@ name: Pull Request Actions

on:
pull_request:
branches: [ master ]
branches: [master]

env:
NODE_OPTIONS: --max_old_space_size=4096

jobs:
# Unlike in the "Build (beta)" workflow, if some of these fail, we want the rest of the jobs
# to continue running so that we can also find out if there are any errors in the actual code.
initial-checks:
name: Initial checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2-beta
with:
node-version: "12"

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Check code formatting
run: yarn prettier:check

- name: Check dependencies
run: yarn adio

validate-commits:
name: Validate commit messages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: webiny/action-conventional-commits@v1.0.2

build-test:
Expand All @@ -24,14 +44,11 @@ jobs:

- uses: actions/setup-node@v2-beta
with:
node-version: '12'
node-version: "12"

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Check dependencies
run: yarn adio

- name: Build packages
run: yarn build

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/releaseBeta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build (beta)

on:
push:
branches: [ release-** ]
branches: [release-**]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -16,18 +16,21 @@ jobs:
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '0'
fetch-depth: "0"

- uses: actions/setup-node@v2-beta
with:
node-version: '12'
node-version: "12"

- name: Create ".npmrc" file in the project root
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Check code formatting
run: yarn prettier:check

- name: Check dependencies
run: yarn adio

Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/releaseLatest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
types: [release-latest]

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_OPTIONS: --max_old_space_size=4096

jobs:
Expand All @@ -13,10 +15,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.client_payload.branch }}
fetch-depth: 0

- uses: actions/setup-node@v2-beta
with:
node-version: '12'
node-version: "12"

- name: Create ".npmrc" file in the project root
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc

- name: Install dependencies
run: yarn --frozen-lockfile
Expand All @@ -29,3 +37,15 @@ jobs:

- name: Run tests
run: yarn test

- name: Set git email
run: git config --global user.email "info@webiny.com"

- name: Set git username
run: git config --global user.name "webiny"

- name: Create a release on GitHub
run: yarn lerna version --force-publish --conventional-graduate --yes

- name: Release packages to NPM
run: yarn lerna publish from-package --yes
219 changes: 219 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions api/apolloGateway/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig",
"references": [
{ "path": "../../packages/handler" },
{ "path": "../../packages/handler-apollo-gateway" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 11 additions & 0 deletions api/cms/content/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../../packages/api-headless-cms" },
{ "path": "../../../packages/api-i18n" },
{ "path": "../../../packages/api-security" },
{ "path": "../../../packages/api-settings-manager" },
{ "path": "../../../packages/handler" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions api/cms/dataManager/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/api-i18n" },
{ "path": "../../../packages/api-plugin-commodo-mongodb" },
{ "path": "../../../packages/api-headless-cms" },
{ "path": "../../../packages/graphql" },
{ "path": "../../../packages/handler" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../../packages/api-headless-cms" },
{ "path": "../../../packages/api-security" },
{ "path": "../../../packages/api-settings-manager" },
{ "path": "../../../packages/api-page-builder" },
{ "path": "../../../packages/api-plugin-page-builder-resolvers-mongodb" },
{ "path": "../../../packages/api-mailchimp" },
{ "path": "../../../packages/api-cookie-policy" },
{ "path": "../../../packages/api-google-tag-manager" },
{ "path": "../../../packages/handler" },
{ "path": "../../../packages/handler-apollo-server" }
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions api/databaseProxy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig",
"references": [
{ "path": "../../packages/handler" },
{ "path": "../../packages/api-plugin-commodo-db-proxy" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions api/files/download/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/serverless-files" },
{ "path": "../../../packages/handler" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions api/files/graphql/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../../packages/api-security" },
{ "path": "../../../packages/api-settings-manager" },
{ "path": "../../../packages/api-files" },
{ "path": "../../../packages/api-plugin-files-resolvers-mongodb" },
{ "path": "../../../packages/handler" },
{ "path": "../../../packages/handler-apollo-server" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions api/files/manage/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/serverless-files" },
{ "path": "../../../packages/handler" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions api/files/transform/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/serverless-files" },
{ "path": "../../../packages/handler" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions api/formBuilder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "../../tsconfig",
"references": [
{ "path": "../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../packages/api-i18n" },
{ "path": "../../packages/api-security" },
{ "path": "../../packages/api-settings-manager" },
{ "path": "../../packages/api-form-builder" },
{ "path": "../../packages/handler" },
{ "path": "../../packages/handler-apollo-server" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
{ "path": "../../../packages/api-i18n" },
{ "path": "../../../packages/api-security" },
{ "path": "../../../packages/api-settings-manager" },
{ "path": "../../../packages/api-form-builder" },
{ "path": "../../../packages/handler" },
{ "path": "../../../packages/handler-apollo-server" }
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/api-settings-manager" },
{ "path": "../../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../../packages/api-i18n" },
{ "path": "../../../packages/handler" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions api/pageBuilder/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": "../../tsconfig",
"references": [
{ "path": "../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../packages/api-security" },
{ "path": "../../packages/api-settings-manager" },
{ "path": "../../packages/api-page-builder" },
{ "path": "../../packages/api-plugin-page-builder-resolvers-mongodb" },
{ "path": "../../packages/api-mailchimp" },
{ "path": "../../packages/api-cookie-policy" },
{ "path": "../../packages/api-google-tag-manager" },
{ "path": "../../packages/handler" },
{ "path": "../../packages/handler-apollo-server" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions api/security/graphql/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../../packages/api-security" },
{ "path": "../../../packages/api-settings-manager" },
{ "path": "../../../packages/handler" },
{ "path": "../../../packages/handler-apollo-server" }
]
}
File renamed without changes.
9 changes: 9 additions & 0 deletions api/security/validateAccessToken/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../../tsconfig",
"references": [
{ "path": "../../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../../packages/api-security" },
{ "path": "../../../packages/handler" },
{ "path": "../../../packages/handler-apollo-server" }
]
}
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions api/settingsManager/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig",
"references": [
{ "path": "../../packages/api-settings-manager" },
{ "path": "../../packages/api-plugin-commodo-db-proxy" },
{ "path": "../../packages/handler" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions apps/admin/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig",
"include": ["src"],
"exclude": ["../../packages/app-template-admin-full"],
"references": [
{ "path": "../../packages/app-template-admin-full/tsconfig.build.json" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions apps/cmsOnly/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig",
"include": ["src"],
"exclude": ["../../packages/app-template-admin", "../../packages/app-headless-cms"],
"references": [
{ "path": "../../packages/app-template-admin/tsconfig.build.json" },
{ "path": "../../packages/app-headless-cms/tsconfig.build.json" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions apps/databaseProxy/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "../../tsconfig",
"references": [
{ "path": "../../packages/handler" },
{ "path": "../../packages/api-plugin-commodo-db-proxy" }
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ module.exports.handler = async event => {
try {
const buffer = await new Promise((resolve, reject) => {
fs.readFile(filePath, (err, data) => {
if (err) return reject(err);
if (err) {
return reject(err);
}
resolve(data);
});
});
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions apps/site/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../tsconfig",
"include": ["src"],
"exclude": ["../../packages/app-template-site"],
"references": [
{ "path": "../../packages/app-template-site/tsconfig.build.json" }
]
}
File renamed without changes.

0 comments on commit 58ef8b1

Please sign in to comment.