2021-02-08 12:58:32 +08:00
|
|
|
{
|
|
|
|
"name": "before-after-hook",
|
2021-06-04 22:19:14 +08:00
|
|
|
"version": "2.2.1",
|
2021-02-08 12:58:32 +08:00
|
|
|
"description": "asynchronous before/error/after hooks for internal functionality",
|
2021-06-04 22:19:14 +08:00
|
|
|
"main": "index.js",
|
2021-02-08 12:58:32 +08:00
|
|
|
"files": [
|
|
|
|
"index.js",
|
|
|
|
"index.d.ts",
|
|
|
|
"lib"
|
|
|
|
],
|
|
|
|
"types": "./index.d.ts",
|
|
|
|
"scripts": {
|
|
|
|
"prebuild": "rimraf dist && mkdirp dist",
|
|
|
|
"build": "browserify index.js --standalone=Hook > dist/before-after-hook.js",
|
|
|
|
"postbuild": "uglifyjs dist/before-after-hook.js -mc > dist/before-after-hook.min.js",
|
2021-06-04 22:19:14 +08:00
|
|
|
"lint": "prettier --check '{lib,test,examples}/**/*' README.md package.json",
|
|
|
|
"lint:fix": "prettier --write '{lib,test,examples}/**/*' README.md package.json",
|
|
|
|
"pretest": "npm run -s lint",
|
2021-02-08 12:58:32 +08:00
|
|
|
"test": "npm run -s test:node | tap-spec",
|
|
|
|
"posttest": "npm run validate:ts",
|
|
|
|
"test:node": "node test",
|
|
|
|
"test:watch": "gaze 'clear && node test | tap-min' 'test/**/*.js' 'index.js' 'lib/**/*.js'",
|
|
|
|
"test:coverage": "istanbul cover test",
|
|
|
|
"test:coverage:upload": "istanbul-coveralls",
|
|
|
|
"validate:ts": "tsc --strict --target es6 index.d.ts",
|
|
|
|
"postvalidate:ts": "tsc --noEmit --strict --target es6 test/typescript-validate.ts",
|
|
|
|
"presemantic-release": "npm run build",
|
|
|
|
"semantic-release": "semantic-release"
|
|
|
|
},
|
2021-06-04 22:19:14 +08:00
|
|
|
"repository": "github:gr2m/before-after-hook",
|
2021-02-08 12:58:32 +08:00
|
|
|
"keywords": [
|
|
|
|
"hook",
|
|
|
|
"hooks",
|
|
|
|
"api"
|
|
|
|
],
|
|
|
|
"author": "Gregor Martynus",
|
|
|
|
"license": "Apache-2.0",
|
|
|
|
"dependencies": {},
|
|
|
|
"devDependencies": {
|
|
|
|
"browserify": "^16.0.0",
|
|
|
|
"gaze-cli": "^0.2.0",
|
|
|
|
"istanbul": "^0.4.0",
|
|
|
|
"istanbul-coveralls": "^1.0.3",
|
2021-06-04 22:19:14 +08:00
|
|
|
"mkdirp": "^1.0.3",
|
|
|
|
"prettier": "^2.0.0",
|
|
|
|
"rimraf": "^3.0.0",
|
|
|
|
"semantic-release": "^17.0.0",
|
2021-02-08 12:58:32 +08:00
|
|
|
"simple-mock": "^0.8.0",
|
|
|
|
"tap-min": "^2.0.0",
|
|
|
|
"tap-spec": "^5.0.0",
|
2021-06-04 22:19:14 +08:00
|
|
|
"tape": "^5.0.0",
|
2021-02-08 12:58:32 +08:00
|
|
|
"typescript": "^3.5.3",
|
2021-06-04 22:19:14 +08:00
|
|
|
"uglify-js": "^3.9.0"
|
2021-02-08 12:58:32 +08:00
|
|
|
},
|
|
|
|
"release": {
|
|
|
|
"publish": [
|
|
|
|
"@semantic-release/npm",
|
|
|
|
{
|
|
|
|
"path": "@semantic-release/github",
|
|
|
|
"assets": [
|
|
|
|
"dist/*.js"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|