Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

scaffold out your own real-time app using the generator-onepiece

License

Notifications You must be signed in to change notification settings

onepiecejs/generator-onepiece

Repository files navigation

generator-onepiece

In a word: scaffold out your own real-time app with our accumulated best practice.

Usage

  1. Install onepiece generator:

npm install -g generator-onepiece

  1. Make a new directory for your project and cd into it:

mkdir myProject && cd $_

Note that the generator will use the new folder name to produce the namespace for all the codes of your project, so it's recommended to use Camel-Case to name all entities under generator-onepiece, like modes, views, and so on.

  1. Construct the application base:

yo onepiece

  1. Flexibly use the grunt tasks under your developemt or deployment stages:
  grunt jshint # lints the codes of business logic
  grunt test # runs your test suite(including front-end and back-end tests)
  grunt build # packages your app for distribution
  grunt start # launches a webserver

Generators

You can find any handy generators to construct the entire project:

onepiece (top generator)

  • onepiece:model
  • onepiece:view
  • onepiece:socketcrud

Typical workflow

yo onepiece # generates your application base and build workflow
yo onepiece:model bookmark
yo onepiece:view bookmark
yo onepiece:socketcrud bookmark
grunt start

Options

  • --skip-install

    Skips the automatic execution of bower and npm after scaffolding has finished.

Contribute

License

MIT License

About

scaffold out your own real-time app using the generator-onepiece

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published