Skip to content

rwjblue/ember-octane-blueprint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Octane Blueprints

Build Status

App Addon

Pre-Official ember packages:

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

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

Official ember packages (these do not exist yet)

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

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

Included:

  • Module Unification
  • 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 [email protected]: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.

About

App and Addon blueprints for Ember Octane

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 70.9%
  • HTML 16.5%
  • Shell 12.6%