forked from api-platform/create-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
65 lines (65 loc) · 2.83 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
{
"name": "@api-platform/client-generator",
"version": "0.3.0",
"description": "Generate a CRUD application built with React, Redux and React Router from an Hydra-enabled API",
"files": [
"*.md",
"docs/*.md",
"lib",
"src",
"templates"
],
"main": "lib/index",
"repository": "api-platform/client-generator",
"homepage": "https://github.com/api-platform/client-generator",
"bugs": "https://github.com/api-platform/client-generator/issues",
"author": "Kévin Dunglas",
"license": "MIT",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^10.0.0",
"babel-jest": "^23.6.0",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"eslint": "^5.6.0",
"eslint-config-prettier": "^3.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^2.6.2",
"jest": "^23.6.0",
"prettier": "^1.14.3",
"tmp": "^0.0.33"
},
"dependencies": {
"@api-platform/api-doc-parser": "^0.7.2",
"babel-runtime": "^6.26.0",
"chalk": "^2.4.1",
"commander": "^2.18.0",
"handlebars": "^4.0.12",
"handlebars-helpers": "^0.10.0",
"isomorphic-fetch": "^2.2.1",
"mkdirp": "^0.5.1",
"recast": "^0.18.1",
"sprintf-js": "^1.1.1"
},
"scripts": {
"test": "jest",
"lint": "eslint src",
"fix": "eslint --fix src",
"eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check",
"build": "babel src -d lib --ignore '*.test.js'",
"watch": "babel --watch src -d lib --ignore '*.test.js'",
"test-gen": "rm -rf ./tmp && yarn build && ./lib/index.js https://demo.api-platform.com ./tmp/react && ./lib/index.js https://demo.api-platform.com ./tmp/react-native -g react-native && ./lib/index.js https://demo.api-platform.com ./tmp/vue -g vue && ./lib/index.js https://demo.api-platform.com ./tmp/admin-on-rest -g admin-on-rest",
"test-gen-cs": "./node_modules/.bin/prettier --single-quote -l \"./tmp/react/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"",
"test-gen-swagger": "rm -rf ./tmp && yarn build && ./lib/index.js https://demo.api-platform.com/docs.json ./tmp/react -f swagger && ./lib/index.js https://demo.api-platform.com/docs.json ./tmp/react-native -g react-native -f swagger && ./lib/index.js https://demo.api-platform.com/docs.json ./tmp/vue -g vue -f swagger && ./lib/index.js https://demo.api-platform.com/docs.json ./tmp/admin-on-rest -g admin-on-rest -f swagger",
"test-gen-env": "rm -rf ./tmp && yarn build && API_PLATFORM_CLIENT_GENERATOR_ENTRYPOINT=https://demo.api-platform.com API_PLATFORM_CLIENT_GENERATOR_OUTPUT=./tmp ./lib/index.js"
},
"bin": {
"generate-api-platform-client": "./lib/index.js"
},
"publishConfig": {
"access": "public"
}
}