Skip to content

Commit c3bf068

Browse files
authored
Merge pull request #227 from toofff/feat/deprecated-admin-on-rest
Feat: remove support admin-on-rest
2 parents 5533f84 + 859013e commit c3bf068

File tree

10 files changed

+7
-293
lines changed

10 files changed

+7
-293
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
[![npm version](https://badge.fury.io/js/%40api-platform%2Fclient-generator.svg)](https://badge.fury.io/js/%40api-platform%2Fclient-generator)
55

66
API Platform Client Generator is a generator to scaffold app with Create-Retrieve-Update-Delete features for any API exposing a [Hydra](http://www.hydra-cg.com/spec/latest/core/) or [OpenAPI](https://www.openapis.org/) documentation for:
7+
* Quasar Framework
8+
* Next.js
79
* React/Redux
810
* React Native
11+
* TypeScript Interfaces
912
* Vue.js
13+
* Vuetify.js
1014

1115
Works especially well with APIs built with the [API Platform](https://api-platform.com) framework.
1216

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@
5353
"eslint-check": "eslint --print-config .eslintrc.js | eslint-config-prettier-check",
5454
"build": "babel src -d lib --ignore '*.test.js'",
5555
"watch": "babel --watch src -d lib --ignore '*.test.js'",
56-
"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",
56+
"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",
5757
"test-gen-cs": "./node_modules/.bin/prettier --single-quote -l \"./tmp/react/**/*.{js,jsx,ts,tsx,json,css,scss,md}\"",
58-
"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",
58+
"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",
5959
"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"
6060
},
6161
"husky": {

src/generators.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import AdminOnRestGenerator from "./generators/AdminOnRestGenerator";
21
import NextGenerator from "./generators/NextGenerator";
32
import NuxtGenerator from "./generators/NuxtGenerator";
43
import ReactGenerator from "./generators/ReactGenerator";
@@ -15,8 +14,6 @@ function wrap(cl) {
1514

1615
export default function generators(generator = "react") {
1716
switch (generator) {
18-
case "admin-on-rest":
19-
return wrap(AdminOnRestGenerator);
2017
case "next":
2118
return wrap(NextGenerator);
2219
case "nuxt":

src/generators/AdminOnRestGenerator.js

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/generators/AdminOnRestGenerator.test.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ program
2828
.option("--bearer [bearer]", "Token for bearer auth (Hydra only)")
2929
.option(
3030
"-g, --generator [generator]",
31-
'The generator to use, one of "react", "react-native", "vue", "admin-on-rest", "typescript", "next", "nuxt"',
31+
'The generator to use, one of "next", "nuxt", "quasar", "react", "react-native", "typescript", "vue", "vuetify"',
3232
"react"
3333
)
3434
.option(

templates/admin-on-rest/components/foo.js

Lines changed: 0 additions & 106 deletions
This file was deleted.

templates/admin-on-rest/config/foo.js

Lines changed: 0 additions & 49 deletions
This file was deleted.

templates/admin-on-rest/resource-import.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

templates/admin-on-rest/resources/foo.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)