Skip to content

Commit

Permalink
Switch from yarn -> npm, custom action -> dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Feb 28, 2024
1 parent 3d60849 commit e33feaa
Show file tree
Hide file tree
Showing 13 changed files with 8,182 additions and 7,760 deletions.
21 changes: 21 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
time: '04:00'
timezone: America/New_York

- package-ecosystem: npm
directory: '/'
versioning-strategy: increase
schedule:
interval: weekly
time: '04:00'
timezone: America/New_York
groups:
prod:
dependency-type:
- 'production'
dev:
dependency-type:
- 'development'
ignore:
- dependency-name: '@types/node'
- dependency-name: 'node-fetch'
versions:
- 3.x
8 changes: 4 additions & 4 deletions .github/workflows/test-wpt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: npm
- uses: actions/setup-python@v5
with:
python-version: '3.x'
Expand All @@ -66,8 +66,8 @@ jobs:

- name: Build polyfill
run: |
yarn install --immutable
yarn build:wpt
npm install
npm run build:wpt
- name: Setup WPT
run: |
Expand All @@ -83,7 +83,7 @@ jobs:
./wpt serve --inject-script=${{ github.workspace }}/dist/css-anchor-positioning-wpt.umd.cjs &
cd ..
cp -r wpt-results/test-results .
yarn test:wpt
npm run test:wpt
- name: Push to WPT results branch
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: npm
- name: Install dependencies
run: |
yarn install --immutable
npm install
npx playwright install --with-deps
- run: yarn test:ci
- run: npm run test:ci

lint:
name: Lint
Expand All @@ -33,8 +33,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: npm
- name: Lint
run: |
yarn install --immutable
yarn lint:ci
npm install
npm run lint:ci
59 changes: 0 additions & 59 deletions .github/workflows/upgrade-deps.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.17
v20
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

783 changes: 0 additions & 783 deletions .yarn/releases/yarn-3.2.3.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions .yarnrc.yml

This file was deleted.

16 changes: 8 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ Please follow the [OddBird Code of Conduct](https://www.oddbird.net/conduct/).
## Development

- Clone the repository.
- Install dependencies: `yarn install`.
- Start dev server: `yarn serve`. Visit `localhost:3000`.
- Install dependencies: `npm install`.
- Start dev server: `npm run serve`. Visit `localhost:3000`.

## Code style

JS code is formatted with prettier, and CSS is formatted with stylelint.

- Lint: `yarn lint:ci`
- Format & lint: `yarn lint`
- Lint: `npm run lint:ci`
- Format & lint: `npm run lint`

We recommend setting up your IDE to automatically format code for you.

## Testing

Unit tests and end-to-end tests are available in the `tests/` folder.

- Run all tests: `yarn test`
- Run unit tests: `yarn test:unit`
- Run all tests: `npm run test`
- Run unit tests: `npm run test:unit`
- Run end-to-end tests:
- Configure Playwright (this step is only required once or when the version of
`@playwright/test` changes in package.json):
`npx playwright install --with-deps`
- Run tests (Chromium only): `yarn test:e2e`
- Run tests (Chromium, Firefox & Webkit): `yarn test:e2e:ci`
- Run tests (Chromium only): `npm run test:e2e`
- Run tests (Chromium, Firefox & Webkit): `npm run test:e2e:ci`
Loading

0 comments on commit e33feaa

Please sign in to comment.