Skip to content

Commit

Permalink
feat: upgrade toolchain to latest (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
effervescentia authored Apr 23, 2024
1 parent bafeabb commit 3eb2244
Show file tree
Hide file tree
Showing 159 changed files with 3,557 additions and 5,150 deletions.
44 changes: 31 additions & 13 deletions .circleci/continue-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
parameters:
ssh-fingerprint:
type: string
default: "SHA256:r/0YTSpeTcY6psL0RvgtmDjZJB+raeTcfd/5bcQQ2DQ"
default: 'SHA256:r/0YTSpeTcY6psL0RvgtmDjZJB+raeTcfd/5bcQQ2DQ'
build-apps:
type: boolean
default: false
Expand All @@ -21,14 +21,14 @@ defaults:
- vfcommon/notify_slack:
channel: dev_general
event: fail
mentions: "@eng_platform"
mentions: '@eng_platform'
template: basic_fail_1
branch_pattern: master

executors:
playwright:
docker:
- image: mcr.microsoft.com/playwright:v1.41.1-jammy
- image: mcr.microsoft.com/playwright:v1.43.1-jammy

jobs:
test: # Main unit, style, and dependency tests
Expand All @@ -41,16 +41,25 @@ jobs:
avoid_post_install_scripts: false
- vfcommon/monorepo_lint_report:
run_on_root: true
- vfcommon/monorepo_types_tests:
run_on_root: true
- vfcommon/monorepo_dependency_tests:
run_on_root: true
- vfcommon/monorepo_unit_tests:
run_on_root: true
- run:
name: Collect test reports
command: |
# copy all .report.xml files to the root directory
# and give them unique names based on their paths
find . -type f -name "*.report.xml" | xargs -I {} sh -c 'cp {} reports/$(echo {} | cut -c 3- | tr "/" "_")'
- store_test_results:
path: './reports'
- vfcommon/monorepo_save_cache:
package: "all"
monorepo_engine: "turborepo"
cache_identifier: "monorepo-test-cache"
## disable sonarcloud until project set up
# - sonarcloud/scan
package: 'all'
monorepo_engine: 'turborepo'
cache_identifier: 'monorepo-test-cache'
- sonarcloud/scan

e2e:
executor: playwright
Expand All @@ -65,6 +74,15 @@ jobs:
command: yarn test:e2e
- store_artifacts:
path: packages/react-chat/test-results
- run:
name: Collect test reports
command: |
# copy all .report.xml files to the root directory
# and give them unique names based on their paths
mkdir -p reports
find . -type f -name "*.report.xml" | xargs -I {} sh -c 'cp {} reports/$(echo {} | cut -c 3- | tr "/" "_")'
- store_test_results:
path: './reports'

push-to-cdn: # Main unit, style, and dependency tests
executor: vfcommon/node-executor-node-20
Expand All @@ -87,13 +105,13 @@ workflows:
avoid_post_install_scripts: false
name: build
package: all
monorepo_engine: "turborepo"
monorepo_engine: 'turborepo'
force_execute: true
run_in_container: false
container_folder_to_copy: "" #Copy all
container_folder_to_copy: '' #Copy all
post_build_steps:
- persist_to_workspace:
root: "."
root: '.'
paths:
- ./packages/*/dist # persist dist folder too

Expand All @@ -115,8 +133,8 @@ workflows:
avoid_post_install_scripts: false
ssh_key: << pipeline.parameters.ssh-fingerprint >>
context: dev-test
release_engine: "lite"
commit_message: "chore(release): publish --skip-ci"
release_engine: 'lite'
commit_message: 'chore(release): publish --skip-ci'
requires:
- test
- e2e
Expand Down
34 changes: 0 additions & 34 deletions .depcheckrc

This file was deleted.

31 changes: 8 additions & 23 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,30 +1,15 @@
# EditorConfig: https://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[vcbuild.bat]
end_of_line = crlf

[Makefile]
indent_size = 8
indent_style = tab

[{deps}/**]
charset = ignore
end_of_line = ignore
indent_size = ignore
indent_style = ignore
trim_trailing_whitespace = ignore

[{test/fixtures,deps,tools/node_modules,tools/gyp,tools/icu,tools/msvs}/**]
insert_final_newline = false

[*.js]
[*.json]
trim_trailing_whitespace = false
max_line_length = 150
54 changes: 32 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1,46 @@
.DS_Store
.idea
*.log
*.local
.cache

# Node
node_modules
dump.rdb

coverage
log/
# output
build
dist
storybook-static
docs

.nyc_output
# Turborepo
.turbo

# Dotenv
.env
.env.*
!.env.e2e
!.env.test

# MacOS
.DS_Store

# ESlint
.eslintcache

# Yarn
.pnp.*
.yarn/*
.yarn
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

# build folders
build
dist

# docs
docs

#Sonar report
sonar/
nyc_coverage*
# Tests
reports
*.report.xml

.turbo
# Coverage
sonar

.env.*

build-storybook.log
storybook-static/
#jetbrains
.idea
1 change: 0 additions & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn commitlint --edit "$1"
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
1 change: 0 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn git-branch-check
4 changes: 0 additions & 4 deletions .lintstagedrc.js

This file was deleted.

27 changes: 23 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
coverage
.idea
.nyc_output
CHANGELOG.md

# Node
node_modules

# output
build
dist
node_modules
storybook-static

# Yarn
.pnp.*
.yarn
*.lock

# Yalc
.yalc

# Coverage
sonar

# Tests
*.report.xml

# Playwright
test-results
5 changes: 0 additions & 5 deletions .releaserc

This file was deleted.

68 changes: 44 additions & 24 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,48 @@
{
"editor.formatOnSave": true,
"eslint.format.enable": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescriptreact]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.tslint": "explicit",
"source.fixAll.eslint": "explicit"
},
"eslint.runtime": "node",
"eslint.execArgv": ["--max_old_space_size=8192"],
"eslint.options": {
"extensions": [
".js",
".jsx",
".md",
".mdx",
".ts",
".tsx"
]
},
"eslint.validate": [
"markdown",
"mdx",
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
]
}
"eslint.format.enable": true,
"eslint.experimental.useFlatConfig": true,
"search.exclude": {
"**/node_modules": true,
"**/build": true,
"**/dist": true,
"**/test-results": true,
"**/playwright-report": true,
"**/sonar": true,
"**/.husky": true,
"**/.yarn": true,
"**/.turbo": true
}
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ Ensure that the `verify: { projectID: ... }` field is replaced with your Voicefl
s = d.getElementsByTagName(t)[0];
v.onload = function () {
window.voiceflow.chat.load({
verify: { projectID: "XXXXXX..." },
verify: { projectID: 'XXXXXX...' },
});
};
v.src = "https://cdn.voiceflow.com/widget/bundle.mjs";
v.type = "text/javascript";
v.src = 'https://cdn.voiceflow.com/widget/bundle.mjs';
v.type = 'text/javascript';
s.parentNode.insertBefore(v, s);
})(document, "script");
})(document, 'script');
</script>
```

Expand Down
3 changes: 0 additions & 3 deletions commitlint.config.js

This file was deleted.

Loading

0 comments on commit 3eb2244

Please sign in to comment.