Skip to content

Commit

Permalink
upgrades to newer nodejs modules, adding github action
Browse files Browse the repository at this point in the history
  • Loading branch information
pstaender committed Apr 21, 2024
1 parent a9186f7 commit 2c60e00
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 22 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-test.yml
@@ -0,0 +1,26 @@
name: build-and-test

on:
pull_request:
paths-ignore:
- '**.md'
push:
paths-ignore:
- '**.md'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup node 12
uses: actions/setup-node@v2
with:
node-version: [ 16, 18, 20 ]
cache: npm
- run: npm test
- run: npm run build

4 changes: 4 additions & 0 deletions .mocharc.json
@@ -0,0 +1,4 @@
{
"$schema": "https://json.schemastore.org/mocharc.json",
"require": "tsx"
}
4 changes: 2 additions & 2 deletions .prettierrc.yml
@@ -1,2 +1,2 @@
singleQuote: true
semi: false
singleQuote: false
semi: true
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

19 changes: 9 additions & 10 deletions package.json
@@ -1,13 +1,13 @@
{
"name": "csv2md",
"version": "1.1.0",
"version": "1.2.0",
"description": "csv2md transforms csv data to markdown tables",
"main": "src/csv2md",
"bin": {
"csv2md": "bin/csv2md"
},
"scripts": {
"test": "npm run build; node_modules/mocha/bin/mocha test/**/test.ts",
"test": "npm run build; npx mocha test/**/test.ts",
"build": "tsc --project tsconfig.json",
"watch": "tsc --project tsconfig.json -w"
},
Expand All @@ -27,21 +27,20 @@
"license": "MIT",
"dependencies": {
"csv-parse": "^4.11.1",
"get-stream": "^5.1.0",
"stream-transform": "^2.0.2",
"yargs": "^11.1.1"
"get-stream": "^9.0.1",
"stream-transform": "^2.1.3",
"yargs": "^17"
},
"devDependencies": {
"@types/chai": "^4.2.11",
"@types/jest": "^26.0.5",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.23",
"@types/yargs": "^15.0.5",
"chai": "^4.2.0",
"mocha": "^6.2.3",
"chai": "^5",
"mocha": "^10",
"source-map-support": "*",
"ts-node": "^8.10.2",
"typescript": "^3.9.7",
"typings": "^2.1.1"
"tsx": "^4.7.2",
"typescript": "^5.4"
}
}
2 changes: 1 addition & 1 deletion src/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/csv2md.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/test.ts
@@ -1,7 +1,7 @@
import 'source-map-support/register'

import { expect } from 'chai'
import * as parse from 'csv-parse'
import parse from 'csv-parse'
import { Csv2md, csv2md } from '../src/csv2md'

const csvOptions = {
Expand Down

0 comments on commit 2c60e00

Please sign in to comment.