RedHead
Dynamically setup headers and redirects for you static deployments.
WARNING: This is still in active development, make sure you lock your versions!
Installation
yarn global add redhead
Or you can add it to your package.json
yarn add redhead --dev
$ npm install -g redhead
$ redhead COMMAND
running command...
$ redhead (-v|--version|version)
redhead/0.3.1 darwin-x64 node-v10.15.0
$ redhead --help [COMMAND]
USAGE
$ redhead COMMAND
...
redhead build
Generate the platform specific files based on the configuration
USAGE
$ redhead build
OPTIONS
-o, --output=output [default: .] Folder where the generated files should be saved.
See code: src/commands/build.js
redhead help [COMMAND]
display help for redhead
USAGE
$ redhead help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
redhead init
Initialize the required files
USAGE
$ redhead init
OPTIONS
-h, --no-headers Whether or not to handle headers with redhead
-r, --no-redirects Whether or not to handle redirects with redhead
DESCRIPTION
Generates files for handling your headers and/or redirects configuration.
See code: src/commands/init.js
redhead build
Generate the platform specific files based on the configuration. Currently only Netlify is supported, but we plan to add support for Firebase Hosting and Heroku Buildpack Static
USAGE
$ redhead build
OPTIONS
-o, --output=output [default: .] Folder where the generated files should be saved.
See code: src/commands/build.js
redhead help [COMMAND]
display help for redhead
USAGE
$ redhead help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
Contributing
All contributions or issue reporting are welcomed. If you are filing a bug please include information to help debug it!
If you plan to contribute, please make sure you test the code.
Credits