Skip to content

Commit

Permalink
fix: convert npm to yarn (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkesavan13 authored Oct 29, 2024
1 parent e7ddee7 commit 432ed3c
Show file tree
Hide file tree
Showing 246 changed files with 23,624 additions and 45,596 deletions.
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

0 comments on commit 432ed3c

Please sign in to comment.