ember-cli-deploy-github-pages

0.0.1 • Public • Published

ember-cli-deploy-github-pages

An ember-cli-deploy plugin to deploy to github pages.

Please Note: This is a work in progress and has not been published to npm yet.

What is an ember-cli-deploy plugin?

A plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.

For more information on what plugins are and how they work, please refer to the Plugin Documentation.

Quick Start

To get up and running quickly, do the following:

$ ember install ember-cli-deploy-github-pages
  • Run the pipeline
$ ember deploy

Installation

Run the following command in your terminal:

ember install ember-cli-deploy-github-pages

Adjusting the Asset URL for Project Pages

If you are deploying this as project pages (e.g. johnnycoder.github.io/my-cool-project) you'll need to update your baseURL to serve your assets from the correct folder after deploy.

// config/environment.js
 
if (environment === 'production') {
  ENV.baseURL = '/my-cool-project'; // make sure to use the actual name of your
  project
}

Note: If you are deploying as an organization page, user page, or using a CNAME to serve from a root domain (e.g. johnnycoders-super-cool-project.com), then you do not need to modify the root URL.

ember-cli-deploy Hooks Implemented

For detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.

  • willDeploy
  • deploy

Configuration Options

For detailed information on how configuration of plugins works, please refer to the Plugin Documentation.

Running Tests

  • npm test

For more information on using ember-cli, visit http://www.ember-cli.com/.

Package Sidebar

Install

npm i ember-cli-deploy-github-pages

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • jagthedrummer