1.0.4 • Published 9 years ago

generator-meteor-poetic v1.0.4

Weekly downloads
5
License
ISC
Repository
github
Last release
9 years ago

Install

npm install generator-meteor-poetic

Usage

# You can create an alias
# alias mg='yo meteor-poetic'

yo meteor-poetic
# generate a new meteor project

yo meteor-poetic route admin/show
# ./client/routes/admin/show/show.html
# ./client/routes/admin/show/show.js

yo meteor-poetic component admin/show
# ./client/components/admin/show/show.html
# ./client/components/admin/show/show.js

yo meteor-poetic template-helper image-src
# ./client/template-helpers/image-src.js

yo meteor-poetic schema campaigns
# ./schema/campaigns.js

yo meteor-poetic publication campaigns
# ./server/publications/campaigns.js

yo meteor-poetic factory campaigns
# ./server/factorys/campaigns.js

yo meteor-poetic collection-helpers campaigns
# ./collection-helpers/campaigns.js

yo meteor-poetic collection-helpers campaigns --server
# ./server/collection-helpers/campaigns.js

File Structure:

  • clients

    • components: things not routes, keep it flat
    • packages: wrapper around plugins(swaiper)
    • stylesheets: css styles
    • routes: correspond to a route, nested like what the router indicates
    • methods: client only methods
  • collections: each file is for one collection

  • server

    • methods: server only methods
  • methods: file name is the same as method name

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.0.1

9 years ago