Skip to content

Commit

Permalink
fix: move CLI to the top level (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Aug 10, 2021
1 parent e3797d3 commit 3488113
Show file tree
Hide file tree
Showing 7 changed files with 154 additions and 46 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# google-cloud-node-todos
> [TodoMVC](http://todomvc.com) backend using [google-cloud-node](//github.com/GoogleCloudPlatform/google-cloud-node).
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-node-todos.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-node-todos)

## Prerequisites

1. Create a new cloud project on [console.developers.google.com](http://console.developers.google.com)
Expand Down Expand Up @@ -72,7 +70,15 @@ $ gcloud app deploy
$ curl -X GET http://$PROJECT_ID.appspot.com
```

## Command Line
This sample can also be run from the command line:

```sh
$ npm link
$ datastore-todos
```

## Resources

- [Command Line Example](//github.com/GoogleCloudPlatform/gcloud-node-todos/tree/master/cli)
- [Command Line Example](//github.com/GoogleCloudPlatform/gcloud-node-todos/tree/main/cli)
- [Node.js on the Google Cloud Platform](//cloud.google.com/solutions/nodejs)
2 changes: 1 addition & 1 deletion cli/cli.js → cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

'use strict';

const todos = require('../todos.js');
const todos = require('./todos.js');

const inquirer = require('inquirer');
const actions = {
Expand Down
12 changes: 0 additions & 12 deletions cli/README.md

This file was deleted.

13 changes: 0 additions & 13 deletions cli/package.json

This file was deleted.

150 changes: 134 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
"name": "google-cloud-node-todos",
"description": "TodoMVC sample for google-cloud-node",
"version": "0.2.0",
"private": "true",
"license": "Apache-2.0",
"bin": {
"datastore-todos": "cli.js"
},
"dependencies": {
"@google-cloud/datastore": "^6.3.0",
"body-parser": "^1.19.0",
Expand All @@ -11,6 +15,7 @@
"todomvc-api": "^0.2.1"
},
"devDependencies": {
"inquirer": "^0.12.0",
"mocha": "^8.2.1",
"semistandard": "^16.0.0"
},
Expand Down
6 changes: 5 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"config:base"
],
"pinVersions": false,
"rebaseStalePrs": true
"rebaseStalePrs": true,
"lockFileMaintenance": {
"enabled": true,
"recreateClosed": true
}
}

0 comments on commit 3488113

Please sign in to comment.