Skip to content

fix: convert npm to yarn #234

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

Merged
merged 11 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 20 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,63 +24,70 @@ jobs:
- checkout
- restore_cache:
keys:
- dependency-cache-{{ checksum "package-lock.json" }}
- dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: npm i --force #Remove force once webex version is upgraded in sdk-component-adapter
command: yarn install
- save_cache:
key: dependency-cache-{{ checksum "package-lock.json" }}
paths: node_modules
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- node_modules
- packages/*/node_modules
- persist_to_workspace:
root: .
paths: node_modules
paths:
- node_modules
- packages/*/node_modules

linter:
executor: node-executor
steps:
- checkout_from_workspace
- run:
name: Linting
command: npm run test:eslint
command: yarn workspace @webex/widgets run test:eslint

e2e_test:
executor: node-executor
steps:
- checkout_from_workspace
- run:
name: Test E2E
command: npm run test:e2e
command: yarn workspace @webex/widgets run test:e2e

build:
executor: node-executor
steps:
- checkout_from_workspace
- run:
name: Build
command: npm run build
command: yarn workspace @webex/widgets run build
- persist_to_workspace:
root: .
paths: dist
paths:
- packages/@webex/widgets/dist

docs:
executor: node-executor
steps:
- checkout_from_workspace
- run:
name: Build Demo Into Docs Folder
command: npm run demo:build
command: yarn workspace @webex/widgets run demo:build
- persist_to_workspace:
root: .
paths: docs
paths:
- packages/@webex/widgets/docs

release:
executor: node-executor
steps:
- checkout_from_workspace
- run:
name: Release
command: npm run release
command: yarn workspace @webex/widgets run release

# execute the jobs in a orderly manner
# execute the jobs in an orderly manner
workflows:
setup_test_release:
jobs:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,5 @@ reports/
!package.json
!package-lock.json
node_modules/
.yarn/*
!.yarn/releases
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-4.5.1.cjs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
yarnPath: .yarn/releases/yarn-4.5.1.cjs
checksumBehavior: update
nodeLinker: node-modules
npmRegistryServer: "https://registry.npmjs.org"
Loading