-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
145 lines (145 loc) · 3.75 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "duckfficer",
"author": "Martin Rafael <tin@devtin.io>",
"version": "2.5.0",
"description": "Zero-dependencies, light-weight library for modeling, validating & sanitizing data",
"keywords": [
"json",
"value",
"object",
"duck",
"sanitize",
"type",
"typing",
"schema",
"validation",
"validating",
"validator",
"cast",
"casting",
"modeling"
],
"main": "dist/duckfficer.js",
"module": "dist/duckfficer.mjs",
"browser": "dist/duckfficer.umd.js",
"license": "MIT",
"files": [
"dist/*",
"src/*"
],
"repository": {
"type": "git",
"url": "https://github.com/devtin/duckfficer"
},
"homepage": "https://duckfficer.js.org",
"scripts": {
"build": "npm run build:lib && npm run build:api && npm run build:docs && npm run build:readme",
"build:wcoverage": "npm run build:lib && npm run coverage && npm run build:api && npm run build:docs && npm run build:readme",
"build:api": "jsdoc2md --template build/template/DOCS.hbs --files dist/duckfficer.js > docs/api.md",
"build:lib": "rollup -c && gzip -c dist/duckfficer.umd.js > dist/duckfficer.umd.js.gz",
"build:live": "nodemon -w src -w test --exec npm run build",
"build:readme": "node build/readme.js",
"build:docs": "node build/docs.js",
"lint": "eslint --ext .js --ignore-path .gitignore src/",
"test": "NODE_ENV=test ava",
"test:unit": "npm run test src/**/*.unit.js",
"test:browser": "cp dist/duckfficer.umd.js sandbox/ && light-server -s sandbox -p 3000 -o",
"prepublishOnly": "npm run lint && npm run build:wcoverage && npm run test && echo 'Looks good for a release!'",
"release": "standard-version -a",
"postpublish": "git push && git push --tags",
"coverage": "nyc --reporter=json-summary --reporter=lcov npm run test"
},
"devDependencies": {
"@ava/babel": "^2.0.0",
"@pleasure-js/docs": "^1.2.2-beta",
"ava": "^3.15.0",
"babel-eslint": "^10.1.0",
"bcrypt": "^5.0.1",
"bluebird": "^3.7.2",
"eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-standard": "^5.0.0",
"esm": "^3.2.25",
"jsdoc-to-markdown": "^6.0.1",
"lodash": "^4.17.21",
"mustache": "^4.2.0",
"nodemon": "^2.0.12",
"nyc": "^15.1.0",
"rollup": "^2.56.0",
"rollup-plugin-alias": "^2.2.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-terser": "^7.0.2",
"standard-version": "^9.3.1"
},
"ava": {
"files": [
"test/**/*.test.js",
"src/**/*.unit.js"
],
"require": [
"esm"
],
"babel": true
},
"eslintConfig": {
"parser": "babel-eslint",
"extends": [
"standard"
],
"env": {
"es6": true,
"node": true
},
"globals": {
"BigInt": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
}
},
"standard-version": {
"scripts": {
"prerelease": "npm run lint && npm run build:wcoverage && npm run test",
"precommit": "npm run --silent build > /dev/null 2>&1 && git add ."
},
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Chore"
},
{
"type": "docs",
"section": "Docs"
},
{
"type": "refactor",
"section": "Refactor"
},
{
"type": "style",
"hidden": true
},
{
"type": "perf",
"hidden": true
},
{
"type": "test",
"section": "Tests"
}
]
}
}