forked from json-schema-faker/json-schema-faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
152 lines (152 loc) · 4.81 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
146
147
148
149
150
151
152
{
"name": "json-schema-faker",
"version": "0.5.6",
"description": "JSON-Schema + fake data generators",
"homepage": "http://json-schema-faker.js.org",
"types": "index.d.ts",
"type": "module",
"bin": {
"jsf": "bin/gen.cjs"
},
"main": "dist/index.cjs",
"module": "dist/main.mjs",
"unpkg": "dist/bundle.js",
"exports": {
".": {
"import": {
"types": "./index.d.ts",
"default": "./dist/main.mjs"
},
"require": {
"types": "./index.d.cts",
"default": "./dist/main.cjs"
},
"browser": "./dist/bundle.js"
}
},
"scripts": {
"dev": "npm run test:schema -- -w",
"test": "npm run test:ci -- && npm run test:schema",
"test:e2e": "testcafe chrome:headless tests/e2e/*.test.mjs --colors -a 'npx live-server dist/e2e --no-browser' --",
"test:ci": "npm run coverage:unit && npm run report -- -r lcov",
"test:all": "npm run test:unit && npm run test:schema",
"test:run": "_mocha --exit --colors --recursive --parallel --loader=testdouble --watch-files 'tests/**' --watch-files 'src/**' --watch-extensions js,json -bR spec",
"test:unit": "npm run test:run tests/unit --",
"test:schema": "npm run test:run tests/schema --",
"test:coverage": "npm run coverage:all && npm run report -- -r html",
"test:integration": "npm run test:run tests/integration --",
"coverage": "c8 --reporter=lcov -x '**/tests/**' -x '**/*.spec.mjs'",
"coverage:all": "npm run coverage -- npm run test:all",
"coverage:unit": "npm run coverage -- npm run test:unit",
"report": "c8 report",
"lint": "eslint --ext mjs,svelte src tests",
"_pretest": "npm run lint",
"_graphviz": "madge src --dot > structure.gv",
"mortero": "mortero -Ddist -spublic -X{_base,lib} -ecss.less",
"watch": "npm run mortero -- --platform browser -dw",
"build": "NODE_ENV=production npm run mortero -- -fS --no-minify --platform browser",
"pretest": "npm run lint && npm run build -- -ymain -yshared",
"copy:vendor": "concat -o dist/vendor.js node_modules/json-schema-ref-parser/dist/ref-parser.min.js node_modules/jsonpath-plus/dist/index-browser-umd.min.cjs",
"copy:bundle": "concat -o dist/bundle.js dist/vendor.js dist/main.iife.js",
"copy:wargs": "concat -o dist/wargs.cjs node_modules/wargs/dist/wargs.cjs",
"entry:cjs": "node patch.js",
"postbuild": "npm run copy:vendor && npm run entry:cjs && npm run copy:bundle && vite build --outDir dist/e2e",
"prebuild": "mkdir -p dist && npm run copy:wargs",
"codecov": "codecov -e TRAVIS_NODE_VERSION"
},
"mortero": {
"rename": [
"**/src/**:{filepath/1}",
"**/web/**:{filepath/1}",
"**/*.{cjs,mjs}.js:{filename}"
],
"bundle": [
"**/main.*.js",
"**/shared.js",
"**/app.js"
],
"external": [
"json-schema-ref-parser",
"jsonpath-plus"
],
"options": {
"less": {
"plugins": [
"less-plugin-autoprefix"
]
}
}
},
"author": "Alvaro Cabrera <[email protected]> (https://soypache.co)",
"contributors": [
"Ajay Karat <[email protected]> (http://devilsgarage.com/)",
"Tomasz Ducin <[email protected]> (http://ducin.it)"
],
"repository": {
"type": "git",
"url": "https://github.com/json-schema-faker/json-schema-faker"
},
"bugs": "https://github.com/json-schema-faker/json-schema-faker/issues",
"license": "MIT",
"keywords": [
"json",
"jsonschema",
"fake",
"mocks"
],
"files": [
"dist/*.*",
"index.d.ts"
],
"dependencies": {
"json-schema-ref-parser": "^6.1.0",
"jsonpath-plus": "^7.2.0"
},
"devDependencies": {
"@faker-js/faker": "^7.6.0",
"@types/json-schema": "^7.0.9",
"ajv": "^6.12.6",
"ansi-regex": ">=5.0.1",
"c8": "^7.12.0",
"chai": "^4.1.2",
"chance": "^1.0.9",
"clone": "^2.1.2",
"codecov": "^3.8.3",
"concat": "^1.0.3",
"eslint": "^7.27.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-mocha": "^9.0.0",
"eslint-plugin-svelte3": "^3.2.0",
"eslint-utils": ">=1.4.1",
"fs-extra": "^10.0.0",
"glob": "^7.1.2",
"glob-parent": ">=5.1.2",
"is-my-json-valid": "^2.19.0",
"less": "^4.1.1",
"less-plugin-autoprefix": "^2.0.0",
"live-server": "^1.2.2",
"mocha": "^10.0.0",
"mockjs": "^1.1.0",
"mortero": "^0.0.115",
"nth-check": ">=2.0.1",
"pug": "^3.0.2",
"randexp": "^0.5.3",
"seedrandom": "^3.0.1",
"semver": "^7.1.1",
"set-value": ">=4.0.1",
"sinon": "^11.1.1",
"sinon-chai": "^3.7.0",
"smoo": "^0.0.14",
"svelte": "^3.59.2",
"testcafe": "^3.4.0",
"testdouble": "^3.16.6",
"tv4": "^1.3.0",
"type-fest": "^2.0.0",
"vite": "^5.0.2",
"wargs": "^0.10.0",
"yaml": "^1.10.2",
"yrv": "^0.0.47",
"z-schema": "^5.0.4"
}
}