Skip to content

Commit

Permalink
chore: Update dependencies, development
Browse files Browse the repository at this point in the history
* Switch to Github Actions
* Drop coveralls in favor of 100% coverage enforcement
  • Loading branch information
coreyfarrell committed Feb 13, 2021
1 parent bf993cd commit b272f0a
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 54 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,22 @@
name: Tests
on: [push, pull_request]

env:
CI: true

jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [10, 12, 14, 15]
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v2
- name: Node.js ${{matrix.node-version}} on ${{matrix.os}}
uses: actions/setup-node@v1
with:
node-version: ${{matrix.node-version}}
- run: npm install
- name: Test
run: npm run test
3 changes: 1 addition & 2 deletions .npmignore
@@ -1,7 +1,6 @@
.travis.yml
.nycrc
.github
*.tgz
.nyc_output/
coverage/
src/
fixtures/
Expand Down
20 changes: 20 additions & 0 deletions .nycrc
@@ -0,0 +1,20 @@
{
"temp-dir": "coverage/tmp",
"include": [
"src/*.js",
"fixtures/should-cover.js"
],
"require": [
"@babel/register"
],
"reporter": [
"lcov",
"text"
],
"lines": 100,
"functions": 100,
"statements": 100,
"branches": 100,
"sourceMap": false,
"instrument": false
}
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

11 changes: 4 additions & 7 deletions README.md
@@ -1,10 +1,4 @@
# babel-plugin-istanbul

[![Greenkeeper badge](https://badges.greenkeeper.io/istanbuljs/babel-plugin-istanbul.svg)](https://greenkeeper.io/)
[![Build Status](https://travis-ci.org/istanbuljs/babel-plugin-istanbul.svg?branch=master)](https://travis-ci.org/istanbuljs/babel-plugin-istanbul)
[![Coverage Status](https://coveralls.io/repos/github/istanbuljs/babel-plugin-istanbul/badge.svg?branch=master)](https://coveralls.io/github/istanbuljs/babel-plugin-istanbul?branch=master)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![community slack](http://devtoolscommunity.herokuapp.com/badge.svg)](http://devtoolscommunity.herokuapp.com)
# babel-plugin-istanbul [![NPM Version][npm-image]][npm-url]

_Having problems? want to contribute? join our [community slack](http://devtoolscommunity.herokuapp.com)_.

Expand Down Expand Up @@ -156,3 +150,6 @@ The approach used in `babel-plugin-istanbul` was inspired by [Thai Pangsakulyano
Available as part of the Tidelift Subscription.

The maintainers of `babel-plugin-istanbul` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-babel-plugin-istanbul?utm_source=npm-babel-plugin-istanbul&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

[npm-image]: https://img.shields.io/npm/v/babel-plugin-istanbul.svg
[npm-url]: https://npmjs.org/package/babel-plugin-istanbul
4 changes: 0 additions & 4 deletions fixtures/should-respect-cwd.js

This file was deleted.

40 changes: 12 additions & 28 deletions package.json
Expand Up @@ -6,32 +6,31 @@
"description": "A babel plugin that adds istanbul instrumentation to ES6 code",
"main": "lib/index.js",
"dependencies": {
"@babel/helper-plugin-utils": "^7.0.0",
"@istanbuljs/schema": "^0.1.2",
"@babel/helper-plugin-utils": "^7.12.13",
"@istanbuljs/schema": "^0.1.3",
"istanbul-lib-coverage": "^3.0.0",
"test-exclude": "^6.0.0"
},
"peerDependencies": {
"@babel/core": "^7"
},
"devDependencies": {
"@babel/cli": "^7.7.5",
"@babel/core": "^7.7.5",
"@babel/plugin-transform-modules-commonjs": "^7.7.5",
"@babel/register": "^7.7.4",
"coveralls": "^3.0.9",
"cross-env": "^6.0.3",
"@babel/cli": "^7.12.16",
"@babel/core": "^7.12.9",
"@babel/plugin-transform-modules-commonjs": "^7.12.13",
"@babel/register": "^7.12.13",
"cross-env": "^7.0.3",
"libtap": "^0.3.0",
"nyc": "^15.0.0",
"standard": "^14.3.1",
"standard-version": "^7.1.0",
"nyc": "^15.1.0",
"standard": "^16.0.3",
"standard-version": "^9.1.0",
"tap-yaml-summary": "^0.1.0"
},
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
"release": "babel src --out-dir lib",
"pretest": "standard && npm run release",
"test": "cross-env NODE_ENV=test nyc --silent node test/babel-plugin-istanbul.js|tap-yaml-summary",
"tests-only": "cross-env NODE_ENV=test nyc --silent node test/babel-plugin-istanbul.js|tap-yaml-summary",
"test": "npm run -s tests-only",
"posttest": "nyc report --check-coverage",
"prepublish": "npm run release",
"version": "standard-version"
Expand All @@ -51,21 +50,6 @@
"plugin",
"instrumentation"
],
"nyc": {
"include": [
"src/*.js",
"fixtures/should-cover.js"
],
"require": [
"@babel/register"
],
"reporter": [
"lcov",
"text"
],
"sourceMap": false,
"instrument": false
},
"bugs": {
"url": "https://github.com/istanbuljs/babel-plugin-istanbul/issues"
},
Expand Down

0 comments on commit b272f0a

Please sign in to comment.