robwebdev / ember-cli-static-site

Static site generator for Ember CLI

Home Page:http://www.ember-cli-static-site.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Static site generator for Ember CLI

http://www.ember-cli-static-site.com

License:MIT License


Languages

Language:JavaScript 90.0%Language:HTML 10.0%