Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addon
app/components
config
lib
test
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-staticboot

Ember Observer Score

An Ember CLI addon that allows you to prerender Ember.js apps to be served statically. Useful when the content of an Ember app is mostly static, this provides the benefits of using ember-cli-fastboot without the overhead of having to run an app server to prerender the pages as this is done up front at build time.

ember install ember-cli-staticboot

Running

ember build This will build the static output into dist/staticboot or the configured destDir.

Configuration

Example configuration

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

paths

An array of paths that the addon will hit when the static pages are generated. Default: []

destDir

Destination directory for the staticboot build within dist. Default: staticboot

includeClientScripts

Whether or not to include the client side scripts (app.js / vendor.js) in the generated pages. Default: true

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

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/.

You can’t perform that action at this time.