Skip to content

Commit a990ca1

Browse files
committed
v0.2.1
1 parent ab562f6 commit a990ca1

File tree

3 files changed

+67
-8
lines changed

3 files changed

+67
-8
lines changed

.github/workflows/build.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: build
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, windows-latest, macos-latest]
19+
node-version: [14.x, 16.x, 18.x, 20.x]
20+
21+
runs-on: ${{ matrix.os }}
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- name: Use Node.js ${{ matrix.node-version }}
26+
uses: actions/setup-node@v1
27+
with:
28+
node-version: ${{ matrix.node-version }}
29+
- run: npm i
30+
- run: npm run build --if-present
31+
- run: npm test
32+
33+
- name: Coveralls
34+
uses: coverallsapp/github-action@main
35+
with:
36+
github-token: ${{ secrets.GITHUB_TOKEN }}
37+
path-to-lcov: ./coverage/lcov.info
38+

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ to parse [JSONC](https://github.com/microsoft/node-jsonc-parser) format files.
55

66

77

8+
[![npm version](https://img.shields.io/npm/v/@jsonic/jsonc.svg)](https://npmjs.com/package/@jsonic/jsonc)
9+
[![build](https://github.com/jsonicjs/jsonc/actions/workflows/build.yml/badge.svg)](https://github.com/jsonicjs/jsonc/actions/workflows/build.yml)
10+
[![Coverage Status](https://coveralls.io/repos/github/jsonicjs/jsonc/badge.svg?branch=main)](https://coveralls.io/github/jsonicjs/jsonc?branch=main)
11+
[![Known Vulnerabilities](https://snyk.io/test/github/jsonicjs/jsonc/badge.svg)](https://snyk.io/test/github/jsonicjs/jsonc)
12+
[![DeepScan grade](https://deepscan.io/api/teams/5016/projects/25267/branches/788638/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=5016&pid=25267&bid=788638)
13+
[![Maintainability](https://api.codeclimate.com/v1/badges/6da148ebd83e336cdcbe/maintainability)](https://codeclimate.com/github/jsonicjs/jsonc/maintainability)
14+
15+
16+
| ![Voxgig](https://www.voxgig.com/res/img/vgt01r.png) | This open source module is sponsored and supported by [Voxgig](https://www.voxgig.com). |
17+
| ---------------------------------------------------- | --------------------------------------------------------------------------------------- |
18+
19+
20+
21+
<!--START:options-->
22+
## Options
23+
_None_
24+
<!--END:options-->
25+
826

927

1028

package.json

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsonic/jsonc",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "This plugin allows the [Jsonic](https://jsonic.senecajs.org) JSON parser to support JSONC syntax.",
55
"main": "jsonc.js",
66
"type": "commonjs",
@@ -24,13 +24,14 @@
2424
"test-some": "jest -t",
2525
"test-watch": "jest --coverage --watchAll",
2626
"watch": "tsc -w -d",
27+
"doc": "jsonic-doc",
2728
"build": "tsc -d && cp jsonc.js jsonc.min.js && browserify -o jsonc.min.js -e jsonc.js -s @JsonicJsonc -im -i assert -p tinyify",
2829
"prettier": "prettier --write --no-semi --single-quote *.ts test/*.js",
2930
"clean": "rm -rf node_modules yarn.lock package-lock.json",
3031
"reset": "npm run clean && npm i && npm run build && npm test",
3132
"repo-tag": "REPO_VERSION=`node -e \"console.log(require('./package').version)\"` && echo TAG: v$REPO_VERSION && git commit -a -m v$REPO_VERSION && git push && git tag v$REPO_VERSION && git push --tags;",
3233
"repo-publish": "npm run clean && npm i && npm run repo-publish-quick",
33-
"repo-publish-quick": "npm run prettier && npm run build && npm run test && npm run repo-tag && npm publish --access public --registry https://registry.npmjs.org "
34+
"repo-publish-quick": "npm run prettier && npm run build && npm run test && npm run doc && npm run repo-tag && npm publish --access public --registry https://registry.npmjs.org "
3435
},
3536
"license": "MIT",
3637
"files": [
@@ -40,17 +41,19 @@
4041
"LICENSE"
4142
],
4243
"devDependencies": {
43-
"@types/jest": "^29.4.0",
44+
"@jsonic/doc": "^0.0.7",
45+
"@types/jest": "^29.5.3",
4446
"browserify": "^17.0.0",
45-
"jest": "^29.4.3",
46-
"prettier": "^2.8.4",
47+
"jest": "^29.6.2",
48+
"prettier": "^3.0.1",
4749
"tinyify": "^4.0.0",
48-
"typescript": "^4.9.5",
50+
"typescript": "^5.1.6",
4951
"es-jest": "^2.1.0",
50-
"esbuild": "^0.17.8"
52+
"esbuild": "^0.19.1",
53+
"@jsonic/jsonic-next": ">=2.12.1"
5154
},
5255
"dependencies": {},
5356
"peerDependencies": {
54-
"@jsonic/jsonic-next": ">=2.9.0"
57+
"@jsonic/jsonic-next": ">=2.12.1"
5558
}
5659
}

0 commit comments

Comments
 (0)