Skip to content

Commit

Permalink
Switched from yarn to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederikP committed Mar 1, 2021
1 parent dda689d commit 4e29afd
Show file tree
Hide file tree
Showing 6 changed files with 8,194 additions and 2,721 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- name: Install dependencies
id: install_dependencies
run: |
npm install -g yarn
yarn install --frozen-lockfile
npm install
- name: Lint and formatting check
id: linting
run: |
Expand All @@ -33,11 +32,11 @@ jobs:
- name: Unit tests
id: run_tests
run: |
yarn test-xarf
npm run test-xarf
- name: Bundle xarf and test bundled schemas
id: bundle
run: |
yarn bundle-xarf
npm run bundle-xarf
ajv -c ajv-formats -s xarf_bundled.schema.json -d "samples/positive/**/*.json"
ajv -c ajv-formats -s xarf_deref.schema.json -d "samples/positive/**/*.json"
- name: Archive schemas
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ ajv -s xarf.schema.json -d "samples/positive/**/*.json" -r "schemas/**/*.schema.
1. Add a new schema in `schemas/development/` as [subtype].schema.json and try to reuse as much as possible from xarf_shared.schema.json
1. Add an example sample to `samples/positive/development/`
1. Add the new schema to the list in `schemas/development/xarf.schema.json`
1. Run tests locally: `yarn test-xarf`
1. Run tests locally: `npm run test-xarf`
1. Open up a github PR
1. Discuss and improve

Expand All @@ -154,8 +154,8 @@ Use [our bundling script](bundle_xarf.js) to create a single file schema.
```bash
git clone https://github.com/abusix/xarf.git
cd xarf
yarn install --frozen-lockfile
yarn bundle-xarf
npm install
npm bundle-xarf
```

It will generate two files:
Expand Down
Loading

0 comments on commit 4e29afd

Please sign in to comment.