-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
80 lines (80 loc) · 2.94 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
{
"name": "funval",
"version": "0.2.1",
"description": "A minimalist library for data validation using functions interfaces.",
"keywords": [
"validation",
"function",
"schema",
"typescript",
"functional",
"composition",
"interfaces",
"data",
"input",
"neuledge"
],
"scripts": {
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"clean": "rm -rf lib",
"build": "npm run build:types && npm run build:js",
"build:types": "tsc --emitDeclarationOnly",
"build:js": "babel src --out-dir lib --extensions \".js,.ts\" --source-maps inline",
"lint": "eslint \"src/**\"",
"fix": "npm run fix:lint",
"fix:lint": "npm run lint -- --fix",
"mocha": "TS_NODE_FILES=true mocha -r ts-node/register \"src/**/*.test.ts\" --timeout 10000",
"mocha:coverage": "nyc npm run mocha && nyc report --reporter=text-lcov | coveralls",
"mocha:build": "mocha lib/**/*.test.js --timeout 10000",
"test": "npm run type-check && npm run lint -- --quiet && npm run mocha",
"coverage": "npm run type-check && npm run lint -- --quiet && npm run mocha:coverage",
"test:build": "npm run mocha:build",
"test:commit": "if [[ -z \"$(git status --untracked-files=no --porcelain)\" ]]; then\n echo \"All filed committed.\"\nelse\n echo \"Uncommitted changes found. Please Commit them first.\" && exit 1\nfi",
"prepare": "npm run clean && npm run build",
"prepublishOnly": "npm run test:commit && npm run test:build",
"postpublish": "PACKAGE_VERSION=$(cat package.json | grep \\\"version\\\" | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git tag v$PACKAGE_VERSION && git push --tags"
},
"author": "Moshe Simantov <me@moshe.io>",
"repository": "https://github.com/neuledge/funval",
"license": "MIT",
"main": "lib/index.js",
"module": "lib/index.js",
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-proposal-decorators": "^7.8.3",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-typescript": "^7.8.3",
"@types/chai": "^4.2.10",
"@types/chai-as-promised": "^7.1.2",
"@types/mocha": "^7.0.2",
"@typescript-eslint/eslint-plugin": "^2.22.0",
"@typescript-eslint/parser": "^2.22.0",
"babel-plugin-transform-typescript-metadata": "^0.3.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"husky": "^4.2.3",
"lint-staged": "^10.0.8",
"mocha": "^7.1.0",
"nyc": "^15.0.0",
"prettier": "^1.19.1",
"ts-node": "^8.6.2",
"typescript": "^3.8.3"
},
"dependencies": {},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*": "eslint"
}
}