forked from api-platform/create-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
81 lines (81 loc) · 3.04 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
{
"name": "@api-platform/create-client",
"version": "0.10.0",
"description": "Generate apps built with Next, Nuxt, Quasar, React, React Native, Vue or Vuetify for any API documented using Hydra or OpenAPI",
"files": [
"*.md",
"docs/*.md",
"lib",
"src",
"templates"
],
"type": "module",
"exports": "./lib/index.js",
"repository": "api-platform/create-client",
"homepage": "https://github.com/api-platform/create-client",
"bugs": "https://github.com/api-platform/create-client/issues",
"author": "Kévin Dunglas",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/eslint-parser": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.6.0",
"@playwright-testing-library/test": "4.5.0",
"@playwright/test": "^1.25.0",
"babel-jest": "^29.0.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.0",
"husky": "^8.0.0",
"jest": "^29.0.0",
"jest-light-runner": "^0.4.0",
"lint-staged": "^13.0.0",
"start-server-and-test": "^1.14.0",
"tmp": "^0.2.0"
},
"dependencies": {
"@api-platform/api-doc-parser": "^0.16.0",
"@babel/runtime": "^7.0.0",
"chalk": "^5.0.0",
"commander": "^10.0.0",
"esutils": "^2.0.0",
"handlebars": "^4.0.0",
"handlebars-helpers": "^0.10.0",
"isomorphic-fetch": "^3.0.0",
"mkdirp": "^2.0.0",
"prettier": "^2.7.0",
"sprintf-js": "^1.1.0"
},
"scripts": {
"prepare": "husky install",
"test": "jest src",
"lint": "eslint src",
"fix": "eslint --fix src",
"eslint-check": "eslint-config-prettier src/index.js",
"build": "babel src -d lib --ignore '*.test.js'",
"watch": "babel --watch src -d lib --ignore '*.test.js'",
"test-gen": "rm -rf ./tmp && yarn build && ./testgen.sh",
"test-gen-openapi3": "rm -rf ./tmp && yarn build && ENTRYPOINT=https://demo.api-platform.com/docs.json FORMAT=openapi3 ./testgen.sh",
"test-gen-custom": "rm -rf ./tmp && yarn build && babel src/generators/ReactGenerator.js src/generators/BaseGenerator.js -d ./tmp/gens && cp -r ./templates/react ./templates/react-common ./templates/entrypoint.js ./tmp/gens && ./lib/index.js https://demo.api-platform.com ./tmp/react-custom -g \"$(pwd)/tmp/gens/ReactGenerator.js\" -t ./tmp/gens",
"test-gen-env": "rm -rf ./tmp && yarn build && API_PLATFORM_CREATE_CLIENT_ENTRYPOINT=https://demo.api-platform.com API_PLATFORM_CREATE_CLIENT_OUTPUT=./tmp ./lib/index.js",
"test-react-app": "./testapp.sh react",
"test-next-app": "./testapp.sh next",
"test-vue-app": "./testapp.sh vue",
"test-nuxt-app": "./testapp.sh nuxt"
},
"lint-staged": {
"src/**/*.js": "yarn lint --fix"
},
"bin": {
"create-client": "./lib/index.js"
},
"publishConfig": {
"access": "public"
}
}