Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ jobs:
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('./package.json') }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('./package.json') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install yarn
run: yarn install
${{ runner.os }}-pnpm-
- name: Install pnpm
run: pnpm install
- name: Run Vitest
run: yarn vitest
run: pnpm run vitest
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
restore-keys: |
${{ runner.os }}-node-modules
- name: Install dependencies
run: yarn install
run: pnpm install
- name: Lint JS files
run: yarn run lint
run: pnpm run lint
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Gemfile.lock
.ruby-version
.idea
node_modules
yarn.lock

8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ gem 'alchemy-json_api'
```

And then execute:

```bash
$ bundle
```

Or install it yourself as:

```bash
$ gem install alchemy-json_api
```
Expand All @@ -27,9 +29,11 @@ $ gem install alchemy-json_api
Run this in your application:

```
yarn add "@alchemy_cms/json_api"
npm install @alchemy_cms/json_api --save
```

or with the package manager of your choice

## Usage

### In your Rails app
Expand Down Expand Up @@ -68,7 +72,9 @@ Alchemy::JsonApi.key_transform = :camel_lower
It defaults to `:underscore`.

## Contributing

Contribution directions go here.

## License

The gem is available as open source under the terms of the [BSD-3-Clause license](https://opensource.org/licenses/BSD-3-Clause).
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,20 @@
"@ungap/structured-clone": "^1.0.1"
},
"devDependencies": {
"vitest": "^3.2.4",
"tslib": "^2.8.1",
"@babel/core": "^7.19.0",
"@babel/preset-env": "^7.19.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-typescript": "^12.1.3",
"prettier": "^3.3.3",
"rollup": "^4.24.4"
"rollup": "^4.24.4",
"vitest": "^3.2.4"
},
"scripts": {
"build": "rollup --config",
"lint": "prettier --check 'src/**/*.js'",
"test": "vitest"
},
"browserslist": "> 0.25%, not dead"
"browserslist": "> 0.25%, not dead",
"packageManager": "[email protected]"
}
Loading
Loading