Skip to content

Commit

Permalink
chore: init package
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Jul 8, 2022
0 parents commit 56ff6ff
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/test.yml
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/lib
/node_modules
/package-lock.json
/.nyc_output
7 changes: 7 additions & 0 deletions .nycrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"require": [
"@babel/register"
],
"sourceMap": false,
"instrument": false
}
21 changes: 21 additions & 0 deletions README.md
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
15 changes: 15 additions & 0 deletions babel.config.js
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
}
59 changes: 59 additions & 0 deletions package.json
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"
}
}

0 comments on commit 56ff6ff

Please sign in to comment.