Skip to content

Commit

Permalink
Merge pull request #5 from autometrics-dev/npm
Browse files Browse the repository at this point in the history
Use NPM instead of yarn
  • Loading branch information
flenter committed Mar 29, 2023
2 parents b123ec2 + 7aaa6a2 commit 4ec0ba0
Show file tree
Hide file tree
Showing 10 changed files with 5,563 additions and 5,566 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,24 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 19.x
cache: yarn
cache-dependency-path: yarn.lock
cache: 'npm'
cache-dependency-path: package-lock.json
node-version: 16.x

- name: install dependencies
run: yarn install --immutable
run: npm ci

- name: Prepare test
run: yarn pretest
run: npm run pretest
- name: Run test (linux)
run: xvfb-run -a yarn test
run: xvfb-run -a npm test
if: runner.os == 'Linux'
- name: Run test (other platforms)
run: yarn test
run: npm test
if: runner.os != 'Linux'

- name: Package extension
run: yarn run vsce package --no-dependencies
run: npx vsce package
- name: Store production artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
873 changes: 0 additions & 873 deletions .yarn/releases/yarn-3.5.0.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions .yarnrc

This file was deleted.

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

This file was deleted.

3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

## [Unreleased]

- [python] improved handling of multiple decorators
- [chore] switch from yarn to npm
- [feat] improved handling of multiple decorators

## 0.0.1

Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ This extension contributes the following settings:

### Unreleased

[python] Improved detection logic: Now multiple decorators are supported
- [python] Improved detection logic: Now multiple decorators are supported
- Change build: use npm instead of yarn 3.x. This is so we can use dependencies (required so we can support typescript)

### 0.0.1

Expand All @@ -34,13 +35,13 @@ Initial release which brings in basic Python support

This extension is build using:

- [yarn](yarnpkg.com)
- [npm](https://docs.npmjs.com/cli/v9)
- [esbuild](https://github.com/evanw/esbuild) as the bundler
- [dprint](https://github.com/dprint/dprint) as the formatter

In order to test the extension locally, you may want to install the following extensions:

- [Dprint code](https://marketplace.visualstudio.com/items?itemName=dprint.dprint). So vscode can format the code for you. You can also run `yarn format` before committing so all code is correctly formatted.
- [Dprint code](https://marketplace.visualstudio.com/items?itemName=dprint.dprint). So vscode can format the code for you. You can also run `npm run format` before committing so all code is correctly formatted.
- [esbuild Problem Matchers](https://marketplace.visualstudio.com/items?itemName=connor4312.esbuild-problem-matchers) This is needed when vscode to debug the extension.

# How to release a new version
Expand Down

0 comments on commit 4ec0ba0

Please sign in to comment.