Skip to content

Commit

Permalink
Rewrite to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
puzrin committed Dec 5, 2023
1 parent 2b34a15 commit 3f224c7
Show file tree
Hide file tree
Showing 20 changed files with 265 additions and 369 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

117 changes: 0 additions & 117 deletions .eslintrc

This file was deleted.

22 changes: 22 additions & 0 deletions .eslintrc.yml
@@ -0,0 +1,22 @@
extends: standard

overrides:
-
files: [ '*.mjs' ]
rules:
no-restricted-globals: [ 2, require, __dirname ]
-
files: [ 'test/**' ]
env: { mocha: true }
-
files: [ 'lib/**', 'index.mjs' ]
parserOptions: { ecmaVersion: 2015 }

ignorePatterns:
- demo/
- dist/
- benchmark/extra/

rules:
camelcase: 0
no-multi-spaces: 0
13 changes: 13 additions & 0 deletions .github/dependabot.yml
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily

- package-ecosystem: npm
directory: /
schedule:
interval: daily
allow:
- dependency-type: production
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
@@ -0,0 +1,34 @@
name: CI

on:
push:
pull_request:
schedule:
- cron: '0 0 * * 3'

jobs:
test:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [ '18' ]

steps:
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- name: Test
run: npm test

- name: Upload coverage report to coveralls.io
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,3 +1,3 @@
node_modules/
coverage/
*.log
dist/
6 changes: 0 additions & 6 deletions .npmignore

This file was deleted.

4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,10 @@
2.0.0 / 2023-12-03
------------------

- Rewrite to ESM.
- Remove `dist/` from repo (build on package publish).


1.0.0 / 2015-03-12
------------------

Expand Down
39 changes: 0 additions & 39 deletions Makefile

This file was deleted.

28 changes: 0 additions & 28 deletions bower.json

This file was deleted.

69 changes: 0 additions & 69 deletions dist/markdown-it-sup.js

This file was deleted.

2 changes: 0 additions & 2 deletions dist/markdown-it-sup.min.js

This file was deleted.

0 comments on commit 3f224c7

Please sign in to comment.