-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 56ff6ff
Showing
6 changed files
with
128 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x, 16.x, 18.x] | ||
|
||
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 install | ||
- run: npm test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/lib | ||
/node_modules | ||
/package-lock.json | ||
/.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"require": [ | ||
"@babel/register" | ||
], | ||
"sourceMap": false, | ||
"instrument": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
## Install | ||
|
||
```js | ||
npm install @citation-js/plugin-enw | ||
``` | ||
|
||
## Use | ||
|
||
Install the plugin by `require`-ing it: | ||
|
||
```js | ||
require('@citation-js/plugin-enw') | ||
``` | ||
|
||
## Formats | ||
|
||
Formats and other features added by this plugin. | ||
|
||
### Input | ||
|
||
### Output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module.exports = { | ||
presets: [ | ||
['@babel/env', { | ||
targets: { | ||
node: 8 | ||
} | ||
}] | ||
], | ||
env: { | ||
coverage: { | ||
plugins: ['istanbul'] | ||
} | ||
}, | ||
comments: false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"name": "@citation-js/plugin-enw", | ||
"version": "0.0.0", | ||
"description": "Citation.js plugin for .enw files", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "mocha -r @babel/register test/suite.js", | ||
"babel": "babel src -d lib --copy-files", | ||
"lint": "standard \"src/**/*.js\" \"test/**/*.js\"", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md", | ||
"coverage": "NODE_ENV=coverage nyc npm test", | ||
"report": "nyc report --reporter=lcov > coverage.lcov", | ||
"preversion": "npm run lint && npm run test", | ||
"version": "npm run changelog", | ||
"postversion": "npm run babel" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/citation-js/plugin-enw.git" | ||
}, | ||
"keywords": [ | ||
"EndNote" | ||
], | ||
"author": "Lars Willighagen (https://larsgw.github.io/)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/citation-js/plugin-enw/issues" | ||
}, | ||
"homepage": "https://github.com/citation-js/plugin-enw#readme", | ||
"engines": { | ||
"node": ">=14" | ||
}, | ||
"files": [ | ||
"/lib" | ||
], | ||
"standard": { | ||
"parser": "@babel/eslint-parser" | ||
}, | ||
"dependencies": { | ||
"@citation-js/date": "^0.5.0", | ||
"@citation-js/name": "^0.4.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.12.10", | ||
"@babel/core": "^7.12.10", | ||
"@babel/eslint-parser": "^7.14.3", | ||
"@babel/preset-env": "^7.12.10", | ||
"@babel/register": "^7.12.10", | ||
"babel-plugin-istanbul": "^5.1.0", | ||
"@citation-js/core": "^0.5.1", | ||
"conventional-changelog-cli": "^2.1.0", | ||
"mocha": "^8.4.0", | ||
"nyc": "^15.1.0", | ||
"standard": "^16.0.3" | ||
}, | ||
"peerDependencies": { | ||
"@citation-js/core": "^0.5.1" | ||
} | ||
} |