1.28.1 • Published 7 years ago

suddenly v1.28.1

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Suddenly

CircleCI

A bunch of tools to help with Suddenly apps.

To generate a new Suddenly app, check out: suddenly-cli

Usage

Builder

Sets up Webpack with some common settings.

  • clean (config) - Cleans the build directory.
  • build (config, args) - Builds a project. Pass 'hot' as an arg to build with Webpack Dev Server.
  • run (config, args) - Runs a Webpack Dev Server with the latest build (alongside a Hapi server).
  • buildAndRun (config) - Compiles a hot reload build and then runs run()

Database

Handles database migrations.

  • migration (config, args) - Generates a migration named from args[0].
  • model (config, args) - Generates a model and model migration named from args[0]. Pass 'no-migration' to skip the migration. Pass 'no-model' to only generate the model.
  • migrate (config) - Runs any pending migrations
  • rollback (config) - Rolls back the latest batch of migrations
  • version (config) - Gets the schema version
  • schema (config, args) - Gets information about the current schema. Pass a table name at args[0] to get just that table's schema.

Generate

Generates bootstrap files for the project.

  • routes (config, args) - Generates a routes file and tests named from args[0]. Pass 'no-tests' to skip creating tests.
  • resource (config, args) - Generates a resources file named from args[0]
  • notification (config, args) - Generates a notification email template and notification method named from args[0]
  • actions (config, args)- Generates an actions file and tests named from args[0]. Pass 'no-tests' to skip creating tests.
  • reducer (config, args) - Generates a reducer file and tests named from args[0]. Pass 'no-tests' to skip creating tests.
  • redux (config, args) - Shortcut for generating an actions and a reducer at the same time.
  • component (config, args) - Generates a React component and tests named from args[0]. Pass 'no-tests' to skip creating tests. Pass 'connected' to generate a Redux connected component. Pass no-style to skip generating a stylesheet. Pass with-provider to include a provider setup in the tests.
  • style (config, args) - Generates a stylesheet.

Mailer

  • create (config) - Creates a Mailer proxy for sending emails
    • mailer.* (to, subject, locals, callback) - Call mailer.send() with the method name as the template.
    • mailer.send (to, subject, template, locals, callback) - Sends an email
    • mailer.render (filename, locals) - Render an email template

Server

  • routes (server, config) - Attaches routes found in <APP_ROOT>/app/server/routes to the server
  • run (config, args) - Runs the server.

Testing

Create a database called suddenly_test and then run npm test

1.28.1

7 years ago

1.28.0

7 years ago

1.27.2

7 years ago

1.27.1

7 years ago

1.27.0

7 years ago

1.26.0

7 years ago

1.25.5

7 years ago

1.25.4

7 years ago

1.25.3

7 years ago

1.25.2

7 years ago

1.25.1

7 years ago

1.25.0

7 years ago

1.24.6

7 years ago

1.24.5

7 years ago

1.24.4

7 years ago

1.24.3

7 years ago

1.24.2

7 years ago

1.24.1

7 years ago

1.24.0

7 years ago

1.23.0

7 years ago

1.22.3

7 years ago

1.22.2

7 years ago

1.22.1

7 years ago

1.22.0

7 years ago

1.21.0

7 years ago

1.20.1

7 years ago

1.20.0

7 years ago

1.19.3

7 years ago

1.19.2

7 years ago

1.19.1

7 years ago

1.19.0

7 years ago

1.18.0

7 years ago

1.17.1

7 years ago

1.17.0

7 years ago

1.16.0

7 years ago

1.15.0

7 years ago

1.14.0

7 years ago

1.13.0

7 years ago

1.12.0

7 years ago

1.11.3

7 years ago

1.11.2

7 years ago

1.11.1

7 years ago

1.11.0

7 years ago

1.10.0

7 years ago

1.9.1

7 years ago

1.9.0

7 years ago

1.8.0

7 years ago

1.7.7

7 years ago

1.7.6

7 years ago

1.7.5

7 years ago

1.7.4

7 years ago

1.7.3

7 years ago

1.7.2

7 years ago

1.7.1

7 years ago

1.7.0

7 years ago

1.6.1

7 years ago

1.6.0

7 years ago

1.5.0

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.0.0

8 years ago