Skip to content

Commit f8f777c

Browse files
committed
fix: Upgrade dependnecies
Migrate from Travis CI to GitHub actions.
1 parent 48eb9a2 commit f8f777c

File tree

15 files changed

+2782
-5709
lines changed

15 files changed

+2782
-5709
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test or Release
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
test-or-release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Sources
12+
uses: actions/checkout@v2
13+
- name: Install Node
14+
uses: actions/setup-node@v2
15+
with:
16+
node-version: 'lts/*'
17+
registry-url: 'https://registry.npmjs.org'
18+
- name: Install PNPM
19+
uses: pnpm/action-setup@v2
20+
with:
21+
version: '>=6'
22+
run_install: |
23+
- args: [--frozen-lockfile, --no-verify-store-integrity, --no-optional]
24+
- name: Test
25+
run: npm test
26+
- name: Coverage
27+
run: pnpx codecov --disable=gcov
28+
- name: Publish
29+
uses: cycjimmy/semantic-release-action@v2
30+
with:
31+
semantic_version: 18
32+
branches: master
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.DS_Store
22
.eslintcache
3-
.nyc_output
43
coverage
54
dist
65
node_modules

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.tslintrc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root: true
2+
parser: '@typescript-eslint/parser'
3+
plugins:
4+
- '@typescript-eslint'
5+
extends:
6+
- eslint:recommended
7+
- 'plugin:@typescript-eslint/recommended'
8+
rules:
9+
'@typescript-eslint/ban-types': off

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
"**/.git": true,
44
"**/.DS_Store": true,
55
"**/dist": true
6+
},
7+
"search.exclude": {
8+
"**/node_modules": true,
9+
"**/coverage": true
610
}
7-
}
11+
}

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# rollup-plugin-jsonlint
22

3-
[![NPM version](https://badge.fury.io/js/rollup-plugin-jsonlint.svg)](https://badge.fury.io/js/rollup-plugin-jsonlint)
4-
[![Build Status](https://travis-ci.com/prantlf/rollup-plugin-jsonlint.svg?branch=master)](https://travis-ci.com/prantlf/rollup-plugin-jsonlint)
5-
[![codecov](https://codecov.io/gh/prantlf/rollup-plugin-jsonlint/branch/master/graph/badge.svg)](https://codecov.io/gh/prantlf/rollup-plugin-jsonlint)
6-
[![Dependency Status](https://david-dm.org/prantlf/rollup-plugin-jsonlint.svg)](https://david-dm.org/prantlf/rollup-plugin-jsonlint)
7-
[![devDependency Status](https://david-dm.org/prantlf/rollup-plugin-jsonlint/dev-status.svg)](https://david-dm.org/prantlf/rollup-plugin-jsonlint#info=devDependencies)
8-
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
3+
[![Latest version](https://img.shields.io/npm/v/rollup-plugin-jsonlint)
4+
![Dependency status](https://img.shields.io/librariesio/release/npm/rollup-plugin-jsonlint)
5+
](https://www.npmjs.com/package/rollup-plugin-jsonlint)
6+
[![Code coverage](https://codecov.io/gh/prantlf/rollup-plugin-jsonlint/branch/master/graph/badge.svg)](https://codecov.io/gh/prantlf/rollup-plugin-jsonlint)
97

108
A [Rollup] plugin which converts `.json` files to ES6 modules. Recognizes standard [JSON], CJSON (JSON with comments) and [JSON5] (further more flexible JSON).
119

index.d.ts

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
import { Plugin } from 'rollup'
22

33
export interface RollupJsonLintOptions {
4-
/**
5-
* All JSON files will be parsed by default,
6-
* but you can also specifically include files.
7-
*/
4+
/**
5+
* All JSON files will be parsed by default,
6+
* but you can also specifically include files.
7+
*/
88
include?: string | RegExp | ReadonlyArray<string | RegExp> | null
9-
/**
10-
* All JSON files will be parsed by default,
11-
* but you can also specifically exclude files.
12-
*/
9+
/**
10+
* All JSON files will be parsed by default,
11+
* but you can also specifically exclude files.
12+
*/
1313
exclude?: string | RegExp | ReadonlyArray<string | RegExp> | null
14-
/**
15-
* For tree-shaking, properties will be declared as variables, using
16-
* either `var` or `const`.
17-
* @default false
18-
*/
14+
/**
15+
* For tree-shaking, properties will be declared as variables, using
16+
* either `var` or `const`.
17+
* @default false
18+
*/
1919
preferConst?: boolean
20-
/**
21-
* Specifies indentation for the generated default export.
22-
* @default '\t'
23-
*/
20+
/**
21+
* Specifies indentation for the generated default export.
22+
* @default '\t'
23+
*/
2424
indent: string
25-
/**
26-
* Ignores indent and generates the smallest code.
27-
* @default false
28-
*/
25+
/**
26+
* Ignores indent and generates the smallest code.
27+
* @default false
28+
*/
2929
compact: boolean
30-
/**
31-
* Generates a named export for every property of the JSON object.
32-
* @default true
33-
*/
30+
/**
31+
* Generates a named export for every property of the JSON object.
32+
* @default true
33+
*/
3434
namedExports: true
3535
}
3636

0 commit comments

Comments
 (0)