Skip to content

Commit

Permalink
feat: snyk package
Browse files Browse the repository at this point in the history
  • Loading branch information
FauxFaux committed Jun 27, 2022
1 parent 84370d5 commit 1708b1d
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 19 deletions.
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 2.1

jobs:
test:
docker:
- image: cimg/node:14.19
working_directory: ~/lib
steps:
- checkout
- run:
name: Install
command: npm install
- run:
name: Lint
command: npm run lint
- run:
name: Test
command: npm run test
release:
docker:
- image: cimg/node:14.19
working_directory: ~/lib
steps:
- checkout
- run:
name: Install
command: npm install
- run:
name: Release
command: npx semantic-release@17

workflows:
version: 2
test:
jobs:
- test:
name: Test
context: nodejs-install
filters:
branches:
ignore:
- main
release:
jobs:
- release:
name: Release
context: nodejs-lib-release
filters:
branches:
only:
- main
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,7 @@ Strict demands on the JSON. Defaults to `true`.
Reviver used during `JSON.parse`.
## Credit
Originally derived from https://github.com/alexcurtis/express-x-hub.
22 changes: 10 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "express-x-hub",
"version": "1.0.4",
"name": "@snyk/express-x-hub",
"description": "X-Hub-Signature Express Middleware",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/mocha -r ./test/support/env -R spec ./test",
"test-travis": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -r ./test/support/env -R spec ./test"
"lint": "true",
"test": "mocha -r ./test/support/env -R spec ./test"
},
"repository": {
"type": "git",
"url": "https://github.com/alexcurtis/express-x-hub.git"
"url": "https://github.com/snyk/express-x-hub.git"
},
"keywords": [
"express",
Expand All @@ -24,14 +23,8 @@
"github",
"webhook"
],
"author": {
"name": "Alex Curtis"
},
"author": "snyk.io",
"license": "MIT",
"bugs": {
"url": "https://github.com/alexcurtis/express-x-hub/issues"
},
"homepage": "https://github.com/alexcurtis/express-x-hub",
"devDependencies": {
"chai": "^3.3.0",
"express": "^4.13.3",
Expand All @@ -46,5 +39,10 @@
"dependencies": {
"raw-body": "^2.1.4",
"type-is": "^1.6.9"
},
"release": {
"branches": [
"main"
]
}
}

0 comments on commit 1708b1d

Please sign in to comment.