Skip to content

Commit

Permalink
feat: merge v3 (#39)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the CLI can't be invoked without specifying any input files anymore. To convert all files in a directory, use a shell glob instead (e. g. `md-to-pdf *.md`). It's now possible to read markdown from stdin.

The whole source code has been converted to Typescript. The minimum required node version has been increased to v10.0.0 (current LTS). It should still work with v8.3.0+ but the tests won't be able to run.

The license has been changed to MIT.
  • Loading branch information
simonhaenisch committed Jan 26, 2020
2 parents ce51ae2 + 1b9bf99 commit 20ca196
Show file tree
Hide file tree
Showing 45 changed files with 3,668 additions and 3,645 deletions.
51 changes: 0 additions & 51 deletions .circleci/config.yml

This file was deleted.

27 changes: 15 additions & 12 deletions .github/workflows/main.yml
Expand Up @@ -4,18 +4,16 @@ on:
push:
paths:
- '.github/workflows/*'
- 'lib/*'
- 'test'
- 'cli.js'
- 'index.js'
- 'src/**'
- 'markdown.css'
- 'package*.json'

jobs:
build:
strategy:
fail-fast: false
matrix:
node: [8, 10, 12]
node: [10, 12]
os: ['ubuntu-latest', 'windows-latest', 'macOS-latest']

name: Node ${{ matrix.node }} on ${{ matrix.os }}
Expand All @@ -29,16 +27,21 @@ jobs:
with:
version: ${{ matrix.node }}.x

- name: install and lint
run: |
npm install
npx xo
- name: install
run: npm install

- name: lint
run: npx xo
if: matrix.os != 'windows-latest' # because "Delete ␍ prettier/prettier" o.O

- name: build
run: npm run build

- name: test lib
run: npx nyc ava test/lib.spec.js
run: npx nyc ava src/test/lib.spec.ts

- name: test api
run: npx ava test/api.spec.js
run: npx ava src/test/api.spec.ts

- name: test cli
run: npx ava test/cli.spec.js
run: npx ava src/test/cli.spec.ts --timeout=1m
7 changes: 5 additions & 2 deletions .gitignore
Expand Up @@ -2,8 +2,11 @@
.vscode
node_modules

# generated
dist

# tests
.nyc_output
coverage
test/**/*.pdf
test/**/*.html
src/test/**/*.pdf
src/test/**/*.html
128 changes: 0 additions & 128 deletions cli.js

This file was deleted.

31 changes: 0 additions & 31 deletions index.js

This file was deleted.

21 changes: 0 additions & 21 deletions lib/get-html.js

This file was deleted.

26 changes: 0 additions & 26 deletions lib/get-marked-with-highlighter.js

This file was deleted.

13 changes: 0 additions & 13 deletions lib/get-md-files-in-dir.js

This file was deleted.

13 changes: 0 additions & 13 deletions lib/get-output-file-path.js

This file was deleted.

10 changes: 0 additions & 10 deletions lib/is-md-file.js

This file was deleted.

0 comments on commit 20ca196

Please sign in to comment.