Static site generator for Ember CLI
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
addon
app/components
config
lib/broccoli
tests
vendor
.bowerrc
.editorconfig
.ember-cli
.gitignore
.jshintrc
.npmignore
.travis.yml
.watchmanconfig
LICENSE.md
README.md
bower.json
circle.yml
ember-cli-build.js
index.js
package.json
testem.js

README.md

Ember-cli-static-site

An addon for building static sites using Ember CLI and FastBoot.

ember install ember-cli-static-site

This addon currently requires ember-cli-fastboot to also be installed as a dependency to your ember-cli application.

ember install ember-cli-fastboot

This addon has been tested with Ember CLI 2.6.1.

##Examples

Configuration

You need to tell the addon which routes to hit when the static site is generated. This is done by passing a ember-cli-static-site config object to ember-cli-build.js. For example:

  var app = new EmberApp(defaults, {
    'ember-cli-static-site': {
      paths: [
        '/',
        '/posts',
        '/posts/1',
        '/posts/2'
      ]
    }
  });

vendor.js and app.js are not included in the generated pages therefore the Ember app will not boot on the client.

##link-to Use link-to helpers as you would normally. The href attribute will be modified with a path to a static page.

##build and serve Use ember build and ember serve as you would normally. The static pages will be output to the dist path like a regular build.

Collaboration

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

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