-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
13,174 additions
and
13,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,6 @@ version: 2.1 | |
orbs: | ||
browser-tools: circleci/[email protected] | ||
|
||
aliases: | ||
- &restore_yarn_cache | ||
keys: | ||
- v1-yarn-deps-{{ checksum "yarn.lock" }} | ||
- &save_yarn_cache | ||
paths: | ||
- ~/.cache/yarn | ||
key: v1-yarn-deps-{{ checksum "yarn.lock" }} | ||
- &filter_master | ||
branches: | ||
only: master | ||
|
||
defaults: &defaults | ||
working_directory: ~/picassojs | ||
# Available images https://hub.docker.com/r/circleci/node/tags/ | ||
|
@@ -25,9 +13,24 @@ jobs: | |
<<: *defaults | ||
steps: | ||
- checkout | ||
- restore_cache: *restore_yarn_cache | ||
- run: yarn install --frozen-lockfile | ||
- save_cache: *save_yarn_cache | ||
- restore_cache: | ||
name: Restore pnpm cache | ||
keys: | ||
- pnpm-packages-{{ checksum "pnpm-lock.yaml" }} | ||
- run: | ||
name: Enable pnpm | ||
command: | | ||
corepack enable pnpm --install-directory ~/bin | ||
pnpm config set store-dir .pnpm-store | ||
- run: | ||
name: Install dependencies | ||
command: | | ||
pnpm install --frozen-lockfile | ||
- save_cache: | ||
name: Save pnpm cache | ||
key: pnpm-packages-{{ checksum "pnpm-lock.yaml" }} | ||
paths: | ||
- .pnpm-store | ||
- store_artifacts: | ||
path: package.json | ||
- persist_to_workspace: | ||
|
@@ -40,7 +43,7 @@ jobs: | |
steps: | ||
- attach_workspace: | ||
at: ~/picassojs | ||
- run: yarn run build | ||
- run: pnpm run build | ||
- store_artifacts: | ||
path: packages/picasso.js/dist | ||
- store_artifacts: | ||
|
@@ -61,14 +64,14 @@ jobs: | |
steps: | ||
- attach_workspace: | ||
at: ~/picassojs | ||
- run: yarn run lint | ||
- run: pnpm run lint | ||
|
||
types: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: ~/picassojs | ||
- run: yarn run types:check | ||
- run: pnpm run types:check | ||
|
||
api-governance: | ||
<<: *defaults | ||
|
@@ -113,7 +116,7 @@ jobs: | |
steps: | ||
- attach_workspace: | ||
at: ~/picassojs | ||
- run: yarn run test:component | ||
- run: pnpm run test:component | ||
|
||
test-integration: | ||
<<: *defaults | ||
|
@@ -122,7 +125,7 @@ jobs: | |
at: ~/picassojs | ||
- browser-tools/install-chrome | ||
- browser-tools/install-chromedriver | ||
- run: yarn run test:integration:ci | ||
- run: pnpm run test:integration:ci | ||
|
||
workflows: | ||
version: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,13 +14,15 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
- name: Install dependencies | ||
shell: bash | ||
run: yarn install --immutable --frozen-lockfile | ||
run: pnpm install --frozen-lockfile | ||
- name: Run unit tests | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: ${{github.workspace}}/reports/lcov.info:lcov | ||
coverageCommand: yarn test:unit --ci --coverage --reporters="github-actions" --reporters="summary" | ||
coverageCommand: pnpm test:unit --ci --coverage --reporters="github-actions" --reporters="summary" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn commitlint --edit $1 | ||
pnpm commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn pretty-quick --staged | ||
pnpm pretty-quick --staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
dist/ | ||
docs/scriptappy.json | ||
packages/picasso.js/types/index.d.ts | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ | |
} | ||
}, | ||
"version": "2.3.0", | ||
"npmClient": "yarn" | ||
"npmClient": "pnpm" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,12 +21,11 @@ | |
"test:integration:server": "rollup -c ./test/integration/rollup.config.js", | ||
"test:unit": "jest", | ||
"test:unit:watch": "jest --watch", | ||
"prepare": "husky install", | ||
"prepare": "husky", | ||
"types:check": "tsc --noEmit" | ||
}, | ||
"engines": { | ||
"node": ">=8", | ||
"yarn": "~1.9.2 || > 1.9.10" | ||
"node": ">=18" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "7.25.6", | ||
|
@@ -66,11 +65,8 @@ | |
"rollup-plugin-node-resolve": "5.2.0", | ||
"rollup-plugin-serve": "1.1.1", | ||
"sinon": "19.0.2", | ||
"sinon-chai": "4.0.0" | ||
"sinon-chai": "4.0.0", | ||
"typescript": "5.6.3" | ||
}, | ||
"workspaces": [ | ||
"docs", | ||
"packages/*", | ||
"plugins/*" | ||
] | ||
"packageManager": "[email protected]+sha512.e5a7e52a4183a02d5931057f7a0dbff9d5e9ce3161e33fa68ae392125b79282a8a8a470a51dfc8a0ed86221442eb2fb57019b0990ed24fab519bf0e1bc5ccfc4" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.