-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
107 lines (107 loc) · 4.95 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
{
"name": "boats",
"version": "5.0.0",
"description": "Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.",
"keywords": [
"asyncapi",
"openapi",
"openapi2",
"openapi3",
"snippets",
"swagger",
"openapi template",
"yaml",
"bundle",
"nunjucks",
"yml",
"DDD",
"Documentation-Driven Development"
],
"bin": {
"boats": "./bin/cli.js",
"bundler": "./bin/cli.js"
},
"scripts": {
"prepare": "npm run build",
"install:githooks": "cp ./githooks/* .git/hooks",
"build:tocs": "npx doctoc .",
"tsc": "tsc",
"build": "rimraf -fR ./build && tsc --project tsconfig.json --declaration --declarationDir build && tsc-alias -p tsconfig.json",
"build:watch": "ttsc --watch -p .",
"lint": "eslint 'src/**/*.{js,ts,tsx}'",
"lint:fix": "eslint \"src/**/*.{js,ts,tsx}\" --quiet --fix",
"format": "prettier 'src/**/*.(ts|json)' --write",
"test": "npm run lint:fix && npm run build && npm run test:clean && npm run test:builds && npm run test:unit",
"test:clean": "rimraf -fR ./test-build/*",
"test:unit": "cross-env NODE_ENV=test jest --runInBand",
"test:unit:single": "cross-env NODE_ENV=test jest --collect-coverage false",
"test:builds": "npm run test:build-cli:asyncapi:std && npm run test:build-cli:oa2:std && npm run test:build-cli:oa2:readonly && npm run test:build-cli:oa2:std:exclude-version && npm run test:build-cli:oa3:std && npm run test:build-cli:oa3:std:exclude-version && npm run test:build-cli:oa2:inject && npm run test:build-cli:oa3:std:single-file-output",
"test:init:builds": "npm run test:init:asyncapi && npm run test:init:oa2 && npm run test:init:oa3",
"test:init:asyncapi": "node ./bin/cli.js -x -O --yes -n -i init-files/asyncapi/index.yml -o ./init-files/build/async/output.yml -s init-files/asyncapi/channels/",
"test:init:oa2": "node ./bin/cli.js -x -O --yes -n -i init-files/oa2/index.yml -o ./init-files/build/oa2/output.yml -s init-files/oa2/paths/",
"test:init:oa3": "node ./bin/cli.js -x -O --yes -n -i init-files/oa3/index.yml -o ./init-files/build/oa3/output.yml -s init-files/oa3/paths/",
"test:build-cli:asyncapi:std": "node ./bin/cli.js --yes -n -i ./srcASYNC2/index.yml -o ./test-build/srcASYNC2/srcASYNC2.yml -s srcASYNC2/channels/",
"test:build-cli:oa2:inject": "node ./bin/cli.js --yes -n -i ./srcOA2/index.injections.yml -o ./test-build/builtOA2_inject/api.yml -s srcOA2/paths/",
"test:build-cli:oa2:readonly": "node ./bin/cli.js --yes -n -i ./srcOA2/index.readonly.yml -o ./test-build/builtOA2_readonly/builtOA2_readonly.yml -s srcOA2/paths/",
"test:build-cli:oa2:std": "node ./bin/cli.js --yes -n -i ./srcOA2/index.yml -o ./test-build/builtOA2_std/builtOA2_std.yml -s srcOA2/paths/",
"test:build-cli:oa2:std:exclude-version": "node ./bin/cli.js --yes -n -i ./srcOA2/index.yml -o ./test-build/builtOA2_no_version/builtOA2_no_version.yml -x -s srcOA2/paths/",
"test:build-cli:oa3:std": "node ./bin/cli.js --yes -n -i ./srcOA3/index.yml -o ./test-build/builtOA3_std/builtOA3.yml -s srcOA3/paths/",
"test:build-cli:oa3:std:single-file-output": "node ./bin/cli.js --yes --one-file-output -n -i ./srcOA3/index.yml -o ./test-build/builtOA3_std_onefile/builtOA3.yml -s srcOA3/paths/",
"test:build-cli:oa3:std:exclude-version": "node ./bin/cli.js --yes -n -i ./srcOA3/index.yml -o ./test-build/builtOA3_exclude/builtOA3.yml -x -s srcOA3/paths/",
"prepublishOnly": "npm run build && npm run test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/j-d-carmichael/boats.git"
},
"author": "John Carmichael",
"license": "MIT",
"bugs": {
"url": "https://github.com/j-d-carmichael/boats/issues"
},
"homepage": "https://github.com/j-d-carmichael/boats#readme",
"dependencies": {
"@apidevtools/json-schema-ref-parser": "11.6.2",
"@apidevtools/swagger-parser": "10.1.0",
"@asyncapi/parser": "3.0.14",
"commander": "11.1.0",
"deepmerge": "4.3.1",
"dotenv": "16.4.5",
"fs-extra": "11.2.0",
"inquirer": "8.2.6",
"js-yaml": "4.1.0",
"lodash": "4.17.21",
"npm-tool-version-check": "1.2.0",
"nunjucks": "3.2.4",
"picomatch": "^4.0.2",
"pluralize": "8.0.0",
"ts-replace-all": "1.0.0",
"tslib": "2.6.2",
"upath": "2.0.1"
},
"devDependencies": {
"@types/fs-extra": "11.0.4",
"@types/inquirer": "8.2.10",
"@types/jest": "29.5.12",
"@types/js-yaml": "4.0.9",
"@types/lodash": "4.17.4",
"@types/node": "20.12.12",
"@types/node-fetch": "2.6.11",
"@types/nunjucks": "3.2.6",
"@types/picomatch": "2.3.3",
"@types/pluralize": "0.0.33",
"@typescript-eslint/eslint-plugin": "6.15.0",
"@typescript-eslint/parser": "6.15.0",
"cross-env": "7.0.3",
"eslint": "8.56.0",
"hasha": "5.2.2",
"jest": "29.7.0",
"prettier": "2.8.8",
"rimraf": "3.0.2",
"ts-jest": "29.1.3",
"ts-node": "10.9.2",
"tsc-alias": "1.8.10",
"tsconfig-paths": "4.2.0",
"typescript": "5.4.5"
}
}