Skip to content

Commit

Permalink
Upgrade dev dependencies
Browse files Browse the repository at this point in the history
- Babel deps
- Jest
- Eslint
- Migrate from yarn to npm
- Migrate from Travis to GitHub Actions
  • Loading branch information
jbilbo committed Nov 18, 2024
1 parent b876e95 commit 61512ee
Show file tree
Hide file tree
Showing 9 changed files with 6,328 additions and 3,032 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2015"]
"presets": ["@babel/preset-env"]
}
15 changes: 9 additions & 6 deletions .eslintrc.js → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
module.exports = {
{
"env": {
"es6": true,
"es2021": true,
"node": true,
"jest": true
},
"extends": "eslint:recommended",
"overrides": [
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"rules": {
"indent": [
"error",
Expand All @@ -25,8 +31,5 @@ module.exports = {
"no-console": [
"warn"
]
},
"parserOptions": {
"sourceType": "module"
}
};
}
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI for Identifiers

on:
push:
branches:
- '**'

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [23, 22, 20, 18]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Run tests
run: npm test
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Altmetric LLP
Copyright (c) 2017-2024 Altmetric LLP

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Identifiers - PubMed ID [![Build Status](https://travis-ci.org/altmetric/identifiers-pubmed.svg?branch=master)](https://travis-ci.org/altmetric/identifiers-pubmed)
# Identifiers - PubMed ID

Extract, validate and normalize [PubMed IDs](http://www.ncbi.nlm.nih.gov/pubmed).

**Current version:** 0.1.1
**Supported Node.js versions:** 4, 5, 6, 7
**Supported Node.js versions:** 18, 20, 22, 23

## Installation

Expand All @@ -28,6 +28,6 @@ We also maintain versions of this library for [Ruby](https://github.com/altmetri

## License

Copyright © 2017 Altmetric LLP
Copyright © 2017-2024 Altmetric LLP

Distributed under the [MIT License](http://opensource.org/licenses/MIT).
Loading

0 comments on commit 61512ee

Please sign in to comment.