Skip to content
App and Addon blueprints for Ember Octane
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
packages Bump octane-blueprint-utils in /packages/@ember/octane-app-blueprint Mar 19, 2019
scripts Tweak smoke tests to assert on app/ dir instead of src/. Mar 13, 2019
.gitignore
.travis.yml Use native decorators + add some primitive tests for making sure the … Feb 16, 2019
CONTRIBUTING.md Upgrade blueprint to ember-cli 3.6 Jan 26, 2019
LICENSE.md Prep for mono repo and get travis working (#15) Jan 26, 2019
README.md

README.md

Octane Blueprints

Build Status

App Addon

Official ember packages

# Apps
ember new my-app -b @ember/octane-app-blueprint

# Addons
ember addon my-addon -b @ember/octane-addon-blueprint

Included:

  • Glimmer Components
  • Native Decorators
  • Tracked Properties
  • ember-auto-import
  • no jquery

Glimmer Component Example

import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';

export default class HolaComponent extends Component {
  @tracked count = 0;

  increment() {
    this.count++;
  }

  decrement() {
    this.count--;
  }
}
Count: {{this.count}}
<br/>
<button {{action this.increment}}>Click to increase</button>
<button {{action this.decrement}}>Click to decrease</button>

Building/Contributing:

# Clone repo
git clone git@github.com:ember-cli/ember-octane-blueprint.git

# Install dependecies
cd ember-octane-blueprint/packages/\@ember/octane-app-blueprint
yarn install

cd ../octane-addon-blueprint
yarn install

# Move to the desired folder to create your octane app or addon

cd ~

# Create octane app using the local blueprint
ember new my-app -b $pathToBlueprintRepo/ember-octane-blueprint/packages/\@ember/octane-app-blueprint

# Create octane addon using the local blueprint
ember addon my-addon -b $pathToBlueprintRepo/ember-octane-blueprint/packages/\@ember/octane-addon-blueprint

License

This project is licensed under the MIT License.

You can’t perform that action at this time.