This package has been deprecated

Author message:

Not maintained

g-resource

0.1.0 • Public • Published

g-resource

Generate resource scaffolding.

Getting started

Add the following to your package.json file to download the binary and setup an npm script to run the task.

./package.json
"scripts"{
  "g:resource": "./node_modules/.bin/g_resource",
},

Now run the commands:

$ npm install g-resource --save-dev
$ mkdir -p ./app/controllers
$ mkdir -p ./app/models
$ mkdir -p ./config/routes
$ mkdir -p ./test/features
$ mkdir -p ./test/models
$ npm run g:resource
//=> prompt: What is the singular resource name? (i.e. Post): Comment
//=>
//=> Creating resource files:
//=>   ./config/routes/comments_router.js
//=>   ./app/controllers/comments_controller.js
//=>   ./app/models/comment.js
//=>   ./test/features/comments_router_test.js
//=>   ./test/models/comment_test.js

Changelog

Get the project's history in CHANGELOG.md.

Maintainer

Andy Bettisworth andy@accreu.com https://andybettisworth.com

License

This project is released under the MIT License.

Package Sidebar

Install

npm i g-resource

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • wurde