forked from api-platform/create-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
75 lines (75 loc) · 3.05 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
{
"name": "@api-platform/client-generator",
"version": "0.4.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": "^7.0.0",
"@babel/core": "^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",
"babel-eslint": "^10.0.0",
"babel-jest": "^24.0.0",
"eslint": "^5.6.0",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^3.1.0",
"husky": "^3.0.9",
"jest": "^24.0.0",
"lint-staged": "^9.4.2",
"prettier": "^1.14.3",
"tmp": "^0.1.0"
},
"dependencies": {
"@api-platform/api-doc-parser": "^0.8.0",
"@babel/runtime": "^7.0.0",
"chalk": "^2.4.1",
"commander": "^3.0.1",
"handlebars": "^4.0.12",
"handlebars-helpers": "^0.10.0",
"isomorphic-fetch": "^2.2.1",
"mkdirp": "^0.5.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"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.js": "npm run lint"
},
"bin": {
"generate-api-platform-client": "./lib/index.js"
},
"publishConfig": {
"access": "public"
}
}