From a990ca1b2c34194453bbffc0640a764187c0ae27 Mon Sep 17 00:00:00 2001 From: Richard Rodger Date: Mon, 14 Aug 2023 02:46:03 +0100 Subject: [PATCH] v0.2.1 --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ README.md | 18 ++++++++++++++++++ package.json | 19 +++++++++++-------- 3 files changed, 67 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9d7c9bd --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node +# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions + +name: build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + node-version: [14.x, 16.x, 18.x, 20.x] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - run: npm i + - run: npm run build --if-present + - run: npm test + + - name: Coveralls + uses: coverallsapp/github-action@main + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + path-to-lcov: ./coverage/lcov.info + diff --git a/README.md b/README.md index 18e8982..a78e9dd 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,24 @@ to parse [JSONC](https://github.com/microsoft/node-jsonc-parser) format files. +[![npm version](https://img.shields.io/npm/v/@jsonic/jsonc.svg)](https://npmjs.com/package/@jsonic/jsonc) +[![build](https://github.com/jsonicjs/jsonc/actions/workflows/build.yml/badge.svg)](https://github.com/jsonicjs/jsonc/actions/workflows/build.yml) +[![Coverage Status](https://coveralls.io/repos/github/jsonicjs/jsonc/badge.svg?branch=main)](https://coveralls.io/github/jsonicjs/jsonc?branch=main) +[![Known Vulnerabilities](https://snyk.io/test/github/jsonicjs/jsonc/badge.svg)](https://snyk.io/test/github/jsonicjs/jsonc) +[![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) +[![Maintainability](https://api.codeclimate.com/v1/badges/6da148ebd83e336cdcbe/maintainability)](https://codeclimate.com/github/jsonicjs/jsonc/maintainability) + + +| ![Voxgig](https://www.voxgig.com/res/img/vgt01r.png) | This open source module is sponsored and supported by [Voxgig](https://www.voxgig.com). | +| ---------------------------------------------------- | --------------------------------------------------------------------------------------- | + + + + +## Options +_None_ + + diff --git a/package.json b/package.json index cceb5fa..c674169 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jsonic/jsonc", - "version": "0.2.0", + "version": "0.2.1", "description": "This plugin allows the [Jsonic](https://jsonic.senecajs.org) JSON parser to support JSONC syntax.", "main": "jsonc.js", "type": "commonjs", @@ -24,13 +24,14 @@ "test-some": "jest -t", "test-watch": "jest --coverage --watchAll", "watch": "tsc -w -d", + "doc": "jsonic-doc", "build": "tsc -d && cp jsonc.js jsonc.min.js && browserify -o jsonc.min.js -e jsonc.js -s @JsonicJsonc -im -i assert -p tinyify", "prettier": "prettier --write --no-semi --single-quote *.ts test/*.js", "clean": "rm -rf node_modules yarn.lock package-lock.json", "reset": "npm run clean && npm i && npm run build && npm test", "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;", "repo-publish": "npm run clean && npm i && npm run repo-publish-quick", - "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 " + "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 " }, "license": "MIT", "files": [ @@ -40,17 +41,19 @@ "LICENSE" ], "devDependencies": { - "@types/jest": "^29.4.0", + "@jsonic/doc": "^0.0.7", + "@types/jest": "^29.5.3", "browserify": "^17.0.0", - "jest": "^29.4.3", - "prettier": "^2.8.4", + "jest": "^29.6.2", + "prettier": "^3.0.1", "tinyify": "^4.0.0", - "typescript": "^4.9.5", + "typescript": "^5.1.6", "es-jest": "^2.1.0", - "esbuild": "^0.17.8" + "esbuild": "^0.19.1", + "@jsonic/jsonic-next": ">=2.12.1" }, "dependencies": {}, "peerDependencies": { - "@jsonic/jsonic-next": ">=2.9.0" + "@jsonic/jsonic-next": ">=2.12.1" } }