Skip to content

Commit c8c43a9

Browse files
authored
Merge pull request #28 from dunglas/auto-deploy
Auto deploy with Travis. Fix names.
2 parents cf543d8 + 4940f6b commit c8c43a9

File tree

4 files changed

+543
-335
lines changed

4 files changed

+543
-335
lines changed

.travis.yml

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
11
language: node_js
2-
32
node_js:
4-
- "8"
5-
- "7"
6-
- "6"
3+
- '8'
4+
- '7'
5+
- '6'
76

87
cache:
98
directories:
10-
- node_modules
9+
- node_modules
1110

1211
script:
13-
- yarn build
14-
- yarn test
15-
- yarn lint
16-
- yarn test-gen
12+
- yarn build
13+
- yarn test
14+
- yarn lint
15+
- yarn test-gen
16+
- yarn check
17+
18+
deploy:
19+
provider: npm
20+
email: $NPM_AUTH_EMAIL
21+
api_key: $NPM_AUTH_TOKEN
22+
on:
23+
tags: true
24+
node_js: '8'
25+
skip_cleanup: true
26+
27+
env:
28+
global:
29+
- secure: BYLfuGrikJZU3xtVZQ8/aSt2otDJpnpTtLEVKeKabGIvXcQCjyhOu5xeUFAl2+zaPb72d2oPOgxUJA2F1RGy9s7EKdJ8nS76FgXw7NgHJ3mM/Fb9DpBgZ+SjlPD0N8248PODkFyaolDcmgKkHuZlqXuoXkN6n6eqlzU0XnwpekBdJKHHGx8j95qVrEHrPkVsYo/xjPL4ECK3pwjJWy58MPERrOPuka9lAm1QdMqGsHzXauxxPNqWbeu7vw/7SEnrjN1t0AXYRO5tLD5arjRhHX07lWoxmbA7m7Lk8SL3biIerNpD0d1gGIngF5zXw35y2bISUMBvgWQbTgqPS6z6v0b4ReZf7jNDiGzO7cu1W1eeL37ULhNiO6v3Gn8TwyKuwOSpiYoc6DR/AYQvv09/Ieqf3K3Zq31nkq8h9IHhyrx37JZvfbudpHJRvdOEugWKnUXZnnpjwNL1U/4Dm5HvD8h0wuIPH3+DESntpz2ME+ngwRYeHaahTcoOmbpGd+XTnRlMub8N6ONjLZMGMZlbEy+13KqLrf/1buDEmhX+E8kRaPG0JlsIwHa4/oYRrrfI00mrNJK724rtO5VL9QEFc97YuD1MUt00X3oUHvyALerCLioEFLSeBTIUOW4KhOCEfTrF2AqbyICP6d6irxfhP9EUaX4Z0IRqwP8ByKp2MDc=
30+
- secure: guu6quOfCnjapELFaPlPwWD59duhd2Hv4ljhNnUYdmA/kthiVMAE3Z/FygABVNyCXc3Nv9j5/mO+85T37oeGn03tvmcaPf41WrrY+bZQUV7dJH8ct1LCaJL9zpC9TmPhGenFmiuzpR51QXkPNicYk14NiorJGxMcMhW1AOEDDHoWPH3UuCytpy3KJ3H0hY69e2I8ByuGlx31hFQ+l7bM81o9e/UJMRFImZ9PeSU5P6Vc89//9k2OfVSUuxCNoI6JpRCadoJuoXedv4jeadrKUML2/ZtXaezTyydHYADw6GyoO9ZsOQUgLbPcACi6r0pmeTihwTWJwWyD48h/geYz0Ijf/he5VanVGf2dlIQZTuqNkPAE+60X9ggCTPyLwNT27gqVl7XVJDmR/VEadVEfeF9yOGs7hcTQTI1raiepW3+1lDQun3s7j1TdK/WSuIkGa/AzoMg34YDZmyIMc2YZGDyle1+0F0IlqssZcQsAh8LVzPmlx6AGBfZ0wzRDMGaLesBhSj0ZcQY8lws0OW70YUFupviW2iqXuBpH/BkOTf3Z7xFTekqh4aXk1t6mGbKkwN31gsp9oNEu05ughGDORJBOGSkGlatLrN2/DBUh8XozLDkXjfpe3Oz0BiyAXbpGJZQpd4h7TxBC9NF+8fSq3xdPj4H07rOhNsDa0aIFQYQ=

README.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,19 @@
1-
# API Platform CRUD Generator
1+
# API Platform Client Generator
22

3-
[![Build Status](https://travis-ci.org/api-platform/generate-crud.svg?branch=master)](https://travis-ci.org/api-platform/generate-crud)
4-
[![npm version](https://badge.fury.io/js/api-platform-generate-crud.svg)](https://badge.fury.io/js/@api-platform/generate-crud)
3+
[![Build Status](https://travis-ci.org/api-platform/client-generator.svg?branch=master)](https://travis-ci.org/api-platform/client-generator)
4+
[![npm version](https://badge.fury.io/js/%40api-platform%2Fclient-generator.svg)](https://badge.fury.io/js/%40api-platform%2Fclient-generator)
55
[![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://opensource.org/licenses/mit-license.php)
66

7-
[![NPM](https://nodei.co/npm/@api-platform/generate-crud.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/@api-platform/generate-crud/)
8-
97
A generator to scaffold a React/Redux app with Create-Retrieve-Update-Delete features for any API exposing a Hydra documentation.
108
Works especially well with APIs built with the [API Platform](https://api-platform.com) framework.
119

1210
## Installation
1311

14-
```
15-
npm install -g @api-platform/generate-crud
16-
```
12+
yarn global add @api-platform/client-generator
1713

1814
## Usage
1915

20-
```
21-
api-platform-generate-crud https://demo.api-platform.com/ output/ --resource Book
22-
```
16+
generate-api-platform-client https://demo.api-platform.com/ output/ --resource Book
2317

2418
## Features
2519

@@ -38,7 +32,7 @@ api-platform-generate-crud https://demo.api-platform.com/ output/ --resource Boo
3832

3933
## Documentation
4034

41-
The documentation of API Platform CRUD Generator can be browsed [on the docs repository](https://github.com/api-platform/docs/blob/master/index.md#api-platform-crud-generator-scaffold-a-reactredux-app-with-crud-features).
35+
The documentation of API Platform's Client Generator can be browsed [on the official website](https://api-platform.com/docs/generate-crud/).
4236

4337
## Credits
4438

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"templates"
1111
],
1212
"main": "lib/index",
13-
"repository": "api-platform/generate-crud",
14-
"homepage": "https://github.com/api-platform/generate-crud",
15-
"bugs": "https://github.com/api-platform/generate-crud/issues",
13+
"repository": "api-platform/client-generator",
14+
"homepage": "https://github.com/api-platform/client-generator",
15+
"bugs": "https://github.com/api-platform/client-generator/issues",
1616
"author": "Kévin Dunglas",
1717
"license": "MIT",
1818
"devDependencies": {
@@ -46,6 +46,9 @@
4646
"test-gen": "rm -rf ./tmp && npm run build && ./lib/index.js https://demo.api-platform.com ./tmp"
4747
},
4848
"bin": {
49-
"api-platform-generate-crud": "./lib/index.js"
49+
"generate-api-platform-client": "./lib/index.js"
50+
},
51+
"publishConfig": {
52+
"access": "public"
5053
}
5154
}

0 commit comments

Comments
 (0)