Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Botonic with Node v20 #2780

Merged
merged 46 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 45 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
5d61c4a
chore(botonic): remove botonic-api from 1.0.0-dev.1
Iru89 Feb 9, 2024
ea54a4d
chore(botonic): remove botonic-nlp package
Iru89 Feb 9, 2024
6566f47
chore(botonic): remove botonic-intent-classification package
Iru89 Feb 9, 2024
9876740
chore(botonic): remove botonic-ner package
Iru89 Feb 9, 2024
f315897
chore(botonic): remove botonic-pulumi package
Iru89 Feb 9, 2024
c338127
chore(botonic): remove create-botonic-app package
Iru89 Feb 9, 2024
4e9ca50
chore(botonic): remove package-lock.json of all packages
Iru89 Feb 9, 2024
d980456
chore(botonic): create a npm monorepo, tsconfig files to build as cjs…
Iru89 Feb 9, 2024
55425d2
chore(botonic-core): update botonic-core to Node20 using the monorepo
Iru89 Feb 9, 2024
13260d5
chore(botonic-react): update botonic-react to Node20 using the monorepo
Iru89 Feb 9, 2024
11da6ed
chore(plugin-flow-builder): update plugin-flow-builder to Node20 usin…
Iru89 Feb 9, 2024
6f759e7
chore(plugin-knowledge-bases): update plugin-knowledge-bases to Node2…
Iru89 Feb 9, 2024
5f13061
chore(plugin-hubtype-babel): update plugin-hubtype-babel to Node20 us…
Iru89 Feb 9, 2024
0761345
chore(plugin-hubtype-analytics): update plugin-hubtype-analytics to N…
Iru89 Feb 9, 2024
51193fa
chore(plugin-watson): update plugin-watson to Node20 using the monorepo
Iru89 Feb 13, 2024
47c90af
chore(plugin-segment): update plugin-segment to Node20 using the mono…
Iru89 Feb 13, 2024
68c90b7
chore(plugin-luis): update plugin-luis to Node20 using the monorepo
Iru89 Feb 13, 2024
b7f5da8
chore(plugin-inbenta): update plugin-inbenta to Node20 using the mono…
Iru89 Feb 13, 2024
bd726bd
chore(plugin-google-analytics): update plugin-google-analytics to Nod…
Iru89 Feb 13, 2024
c158333
chore(plugin-dialowflow): update plugin-dialogflow to Node20 using th…
Iru89 Feb 13, 2024
0ac5505
chore(plugin-dynamodb): update plugin-dynamodb to Node20 using the mo…
Iru89 Feb 13, 2024
6f97aaa
chore(plugin-google-translation): update plugin-google-translation to…
Iru89 Feb 13, 2024
98c3144
chore(plugin-dashbot): update plugin-dashbot to Node20 using the mono…
Iru89 Feb 13, 2024
6619c2c
chore(plugin-contentful): update plugin-contentful to Node20 using th…
Iru89 Feb 20, 2024
c3a700c
chore(eslint-config): update eslint-config packages versions to use …
Iru89 Feb 20, 2024
15d8d49
chore(botonic-dx): update botonic-dx packages versions to use Node20 …
Iru89 Feb 20, 2024
9fe5832
chore(botonic): fix lint errors
Iru89 Feb 20, 2024
cc0985e
chore(botonic): update root package, tsconfig.base.json, remove lerna…
Iru89 Feb 20, 2024
dfb1c9c
chore(botonic): remove github actions for removed packages
Iru89 Feb 22, 2024
dbb6db0
chore(botonic): update to node 20 github actions
Iru89 Feb 22, 2024
b514059
fix(botonic-react): avoid access to undefined atributs
Iru89 Feb 22, 2024
5553e41
chore(botonic): publish new alpha version for all packages and add np…
Iru89 Feb 22, 2024
d617837
refactor(plugin-flow-builder): change crypto for uuid to be able to r…
Iru89 Feb 27, 2024
ed6f51d
feat(botonic-examples): add examples in botonic monorepo
Iru89 Mar 2, 2024
730f216
chore(botonic-cli): update botonic-cli to Node20 using the monorepoan…
Iru89 Mar 4, 2024
2f95657
chore(botonic-dx): upgrade dependencies in botonic-dx and botonic-esl…
Iru89 Mar 4, 2024
72617f5
chore(plugin-contentful): add tsconfig for tests
Iru89 Mar 4, 2024
9761ef7
chore(plugin): update github actions using monorepo and pre-commit-co…
Iru89 Mar 4, 2024
70a5e4f
chore(botonic): remove preinstall script and lint_ci for all packages
Iru89 Mar 6, 2024
500c822
chore(botonic): publish all packages with 0.25.0-beta.0
Iru89 Mar 25, 2024
2114a22
chore(botonic-examples): unique package name for each example, and ad…
Iru89 Mar 25, 2024
32fa91a
refactor(botonic-cli): download and extract example with version from…
Iru89 Mar 26, 2024
c3ce58e
chore(botonic-cli): publish 0.25.0-beta.0 for all examples and @boton…
Iru89 Mar 26, 2024
16d7c4a
chore(botonic): keep @botonic/core as dependency to pass lint_core
Iru89 Mar 26, 2024
ad9268e
chore(plugin-dynamodb): update github action for plugin-dynamodb to b…
Iru89 Mar 26, 2024
4321665
plugin-flow-builder: use only content id outside plugin (#2790)
Iru89 Mar 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .github/workflows/botonic-ci-test-all-packages.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Botonic test all packages
name: Botonic CI test all packages

on:
workflow_dispatch:
Expand Down Expand Up @@ -49,6 +49,7 @@ jobs:
PACKAGE_NAME: Botonic plugin-dialogflow tests
PACKAGE: botonic-plugin-dialogflow
UNIT_TEST_COMMAND: npm run test_ci
BUILD_COMMAND: 'cd ../botonic-core && npm run build && cd ../botonic-plugin-dialogflow && npm run build'
PUBLISH_TESTS_RESULTS: 'yes'
NEEDS_CODECOV_UPLOAD: 'yes'

Expand All @@ -68,7 +69,7 @@ jobs:
with:
PACKAGE_NAME: Botonic plugin-google-analytics tests
PACKAGE: botonic-plugin-google-analytics
BUILD_COMMAND: ''
BUILD_COMMAND: 'cd ../botonic-core && npm run build && cd ../botonic-plugin-google-analytics && npm run build'
UNIT_TEST_COMMAND: ''

botonic-plugin-inbenta-tests:
Expand Down Expand Up @@ -113,4 +114,5 @@ jobs:
with:
PACKAGE_NAME: Botonic react tests
PACKAGE: botonic-react
BUILD_COMMAND: 'cd ../botonic-core && npm run build && cd ../botonic-react && npm run build'
NEEDS_CODECOV_UPLOAD: 'yes'
16 changes: 8 additions & 8 deletions .github/workflows/botonic-common-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
NODE_VERSION:
type: string
description: 'Node version of the package'
default: '14'
default: '20'
required: false
PACKAGE_NAME:
type: string
Expand Down Expand Up @@ -44,20 +44,20 @@ on:
required: false

jobs:
bot-tests:
botonic-tests:
name: ${{ inputs.PACKAGE_NAME }} tests
runs-on: ubuntu-latest
steps:
- name: Checking out to current branch
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setting up node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.NODE_VERSION }}

- name: Setting up cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -75,8 +75,8 @@ jobs:
role-duration-seconds: 900
role-session-name: HubtypeCITests

- name: Install dev dependencies
run: (cd ./packages/${{ inputs.PACKAGE }} && npm install -D)
- name: Install dependencies
run: npm install

- name: Build
if: ${{ inputs.BUILD_COMMAND != '' }}
Expand All @@ -95,7 +95,7 @@ jobs:
CONTENTFUL_TEST_MANAGE_TOKEN: ${{ secrets.CONTENTFUL_TEST_MANAGE_TOKEN }}

- name: Verify lint
run: (cd ./packages/${{ inputs.PACKAGE }} && npm run lint_ci)
run: (cd ./packages/${{ inputs.PACKAGE }} && npm run lint_core)

- name: Publish Unit Test Results
if: ${{ inputs.PUBLISH_TESTS_RESULTS != '' && always() }}
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/botonic-nlp-tests.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/botonic-nlu-tests.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/botonic-plugin-dialogflow-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
with:
PACKAGE_NAME: Botonic plugin-dialogflow tests
PACKAGE: botonic-plugin-dialogflow
BUILD_COMMAND: 'cd ../botonic-core && npm run build && cd ../botonic-plugin-dialogflow && npm run build'
UNIT_TEST_COMMAND: npm run test_ci
PUBLISH_TESTS_RESULTS: 'yes'
NEEDS_CODECOV_UPLOAD: 'yes'
2 changes: 1 addition & 1 deletion .github/workflows/botonic-plugin-dynamo-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
with:
PACKAGE_NAME: Botonic plugin-dynamodb Tests
PACKAGE: botonic-plugin-dynamodb
BUILD_COMMAND: npm run build_unit_tests
BUILD_COMMAND: 'cd ../botonic-core && npm run build && cd ../botonic-plugin-dynamodb && npm run build_unit_tests'
NEEDS_CODECOV_UPLOAD: 'yes'
NEEDS_AWS_CRED: 'yes'
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
with:
PACKAGE_NAME: Botonic plugin-google-analytics tests
PACKAGE: botonic-plugin-google-analytics
BUILD_COMMAND: ''
BUILD_COMMAND: 'cd ../botonic-core && npm run build && cd ../botonic-plugin-google-analytics && npm run build'
UNIT_TEST_COMMAND: ''
19 changes: 0 additions & 19 deletions .github/workflows/botonic-plugin-intent-classification-tests.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/botonic-plugin-ner-tests.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/botonic-plugin-nlu-tests.yml

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/botonic-react-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ jobs:
with:
PACKAGE_NAME: Botonic react tests
PACKAGE: botonic-react
BUILD_COMMAND: 'cd ../botonic-core && npm run build && cd ../botonic-react && npm run build'
NEEDS_CODECOV_UPLOAD: 'yes'
45 changes: 2 additions & 43 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,13 @@ repos:
entry: bash scripts/qa/old/lint-package.sh packages/botonic-cli
language: system
files: ^packages/botonic-cli/

- id: core
name: core
entry: scripts/qa/old/lint-package.sh packages/botonic-core
language: system
files: ^packages/botonic-core/

- id: core-d-ts
name: core-d-ts
entry: scripts/qa/old/lint-d-ts.sh packages/botonic-core
language: system
files: ^packages/botonic-core/src/.*\.d\.ts

- id: nlu
name: nlu
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-nlu
language: system
files: ^packages/botonic-plugin-nlu/

- id: nlp
name: nlp
entry: scripts/qa/old/lint-package.sh packages/botonic-nlp
language: system
files: ^packages/botonic-nlp

- id: contentful
name: contentful
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-contentful
Expand Down Expand Up @@ -74,12 +57,6 @@ repos:
language: system
files: ^packages/botonic-plugin-luis/

- id: plugin-nlu
name: plugin-nlu
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-nlu
language: system
files: ^packages/botonic-plugin-nlu/

- id: segment
name: segment
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-segment
Expand All @@ -98,12 +75,6 @@ repos:
language: system
files: ^packages/botonic-react/

- id: react-d-ts
name: react-d-ts
entry: scripts/qa/old/lint-d-ts.sh packages/botonic-react
language: system
files: ^packages/botonic-react/src/.*\.d\.ts

- id: google-analytics
name: google-analytics
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-google-analytics
Expand All @@ -122,24 +93,12 @@ repos:
language: system
files: ^docs/

- id: plugin-ner
name: plugin-ner
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-ner
language: system
files: ^packages/botonic-plugin-ner/

- id: plugin-intent-classification
name: plugin-intent-classification
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-intent-classification
language: system
files: ^packages/botonic-plugin-intent-classification/

- id: plugin-flow-builder
name: plugin-flow-builder
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-flow-builder
language: system
files: ^packages/botonic-plugin-flow-builder/

- id: hubtype-analytics
name: hubtype-analytics
entry: scripts/qa/old/lint-package.sh packages/botonic-plugin-hubtype-analytics
Expand Down
Loading
Loading