Skip to content

Latest commit

 

History

History
289 lines (258 loc) · 18.9 KB

README.md

File metadata and controls

289 lines (258 loc) · 18.9 KB

Gasket

Gasket helps developers make frameworks to power their apps. There are several presets and plugins available with which to make frameworks and construct apps. The various commands, lifecycles, and structures are all enabled by different plugins you can choose to use.

If you are new to Gasket, you might want to first give it a spin following the Quick Start Guide. From there, reference the guides to start developing your apps and making your frameworks.

The tables of contents below are generated by the docs command enabled by @gasket/plugin-docs, which is recommended to view app docs. Links will load the docs for the plugin or package that implements the feature.

Guides

Help and explanations docs

Name Description
Lifecycle Flowchart A flowchart detailing how lifecycles are interrelated.
Configuration Guide Configuring Gasket apps
Plugins Guide How to use and author plugins
Presets Guide How to use and author presets
Package Management Guide Managing dependencies in Gasket apps
Common "Gotchas" Tips and tricks to be aware of
Progressive Web Apps Guide Making Progressive Web Apps (PWA) with Gasket
Express Setup Guide Adding middleware and routes for Express
Next.js Routing Guide Basic and advance routing for Next.js
Next.js Deployment Guide Steps to deploy a Next.js Gasket app
State Management with Redux Using Redux with Gasket apps
Webpack Configuration Guide Configuring Webpack in Gasket apps

Commands

Available commands

Name Description
analyze Generate analysis report of webpack bundles
build Prepare the app to be started
create Create a new Gasket app
docs Generate docs for the app
help Get usage details for Gasket commands
local Build and start the app in development mode
start Run the prepared app

Lifecycles

Available lifecycles

Name Description
appEnvConfig Adjust app level config after merged for the env
appRequestConfig Adjust app level config for each request
build Prepare the app to be started
composeServiceWorker Update the service worker script
configure Allows plugins to adjust config before command is run
create App level plugins
createServers Setup the create-servers options
docsGenerate Generate graphs for display in documation
docsSetup Set up what docs are captured and how to transform them
docsView View the collated documentation
errorMiddleware Add Express style middleware for handling errors with Fastify
errorMiddleware Add Express style middleware for handling errors
express Modify the Express instance to for adding endpoints
fastify Modify the Fastify instance to for adding endpoints
getCommands Allows plugins to add CLI commands
init Signals the start of any Gasket command before it is run
initReduxState Setup the next config
initReduxStore Update the next app instance before prepare
initWebpack Create a webpack config
intlLanguage Set the language for which locale files to load
logTransports Setup Winston log transports
manifest Modify the the web manifest for a request
metadata Allows plugins to adjust their metadata
metrics Collect metrics for an app
middleware Add Express style middleware for Fastify
middleware Add Express style middleware
next Update the next app instance before prepare
nextConfig Setup the next config
nextExpress Access the prepared next app and express instance
postCreate App level plugins
preboot Any setup before the app starts
prompt Gasket config for an app
servers Access to the server instances
start Run the prepared app
terminus Setup the terminus options
webpack Modify webpack config with partials or by mutating
webpackChain Setup webpack config by chaining
workbox Setup Workbox config and options

Structures

Available structure

Name Description
.docs/ Output of the docs command
config/ App configuration using environment files
lifecycles/ JavaScript files to hook lifecycles with matching name
locales/ Locale JSON files with translation strings
pages/ NextJS routing
plugins/ One-off plugins for apps
test/ Test files
app.config.js App configuration with environment overrides
gasket.config.js Gasket config for an app
jest.config.js Jest configuration
routes.js Routing when using next-routes
store.js Setup to make Redux store

Presets

Available presets

Name Version Description
@gasket/preset-nextjs 5.6.0 Basic NextJS Framework
@gasket/preset-pwa 5.6.0 Turn Gasket apps into Progressive Web Apps

Plugins

Available plugins

Name Version Description
@gasket/plugin-analyze 5.6.0 Gasket Analyzer Plugin
@gasket/plugin-command 5.6.0 Plugin to enable other plugins to inject new gasket commands
@gasket/plugin-config 5.6.0 Supports application-specific (non-Gasket) configuration
@gasket/plugin-docs 5.6.0 Centralize doc files from plugins and modules
@gasket/plugin-docs-graphs 5.6.0 Generate mermaid graphs of an applications gasket lifecycles
@gasket/plugin-docsify 5.6.0 View collated docs with Docsify
@gasket/plugin-express 5.6.0 Adds express support to your application
@gasket/plugin-fastify 5.6.0 Adds fastify support to your application
@gasket/plugin-git 5.6.0 Adds git support to your application
@gasket/plugin-https 5.6.0 Create http/s servers with graceful termination
@gasket/plugin-intl 5.7.0 NodeJS script to build localization files.
@gasket/plugin-jest 5.6.0 Integrated jest into your application.
@gasket/plugin-lifecycle 5.6.1 Allows a gasket/ directory to be used for lifecycle hooks in applications.
@gasket/plugin-lint 5.6.0 Adds GoDaddy standard linting to your application
@gasket/plugin-log 5.6.0 Gasket log plugin
@gasket/plugin-manifest 5.6.0 The web app manifest for progressive Gasket applications
@gasket/plugin-metadata 5.6.0 Adds metadata to gasket lifecycles
@gasket/plugin-metrics 5.6.0 Collect metrics for gasket commands
@gasket/plugin-mocha 5.6.0 Integrates mocha based testing in to your Gasket application
@gasket/plugin-nextjs 5.6.0 Adds Next support to your application
@gasket/plugin-redux 5.6.0 Gasket Redux Setup
@gasket/plugin-service-worker 5.6.0 Gasket Service Worker Plugin
@gasket/plugin-start 5.6.0 Adds commands for building and starting Gasket apps
@gasket/plugin-swagger 5.8.0 Generate and serve swagger docs
@gasket/plugin-webpack 5.6.0 Adds webpack support to your application
@gasket/plugin-workbox 5.6.0 Gasket Workbox Plugin

Modules

Supporting modules

Name Version Description
@gasket/assets 5.6.0 Gasket assets
@gasket/cli 5.7.0 CLI for rapid application development with gasket
@gasket/engine 5.6.0 Plugin engine for gasket
@gasket/fetch 5.6.0 Gasket Fetch API
@gasket/intl 5.7.0 React component library to enable localization for gasket apps.
@gasket/log 5.6.0 Gasket client and server logger
@gasket/redux 5.6.0 Gasket Redux Configuration
@gasket/resolve 5.6.0 Essential module resolution & configuration management for gasket plugins & presets.
@gasket/utils 5.6.0 Reusable utilities for Gasket internals
create-gasket-app 5.7.0 starter pack for creating a gasket app

License

Gasket is MIT licensed.