0.1.0 • Published 8 years ago
g-resource v0.1.0
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.
0.1.0
8 years ago