# octane-blueprint-utils

Latest version **0.36.0** (published 2019-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install octane-blueprint-utils
pnpm add octane-blueprint-utils
yarn add octane-blueprint-utils
bun add octane-blueprint-utils
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.36.0 |
| Published | 2019-11-27 |
| First published | 2019-02-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 46 |
| Author | ember-cli contributors |
| Maintainers | nullvoxpopuli, rwjblue |

## Links

- npm: https://www.npmjs.com/package/octane-blueprint-utils
- Repository: https://github.com/ember-cli/ember-octane-blueprint
- Homepage: https://github.com/ember-cli/ember-octane-blueprint#readme
- Issues: https://github.com/ember-cli/ember-octane-blueprint/issues
- npm.io page: https://npm.io/package/octane-blueprint-utils

## Dependencies (2)

- [got](https://npm.io/package/got.md) ^9.6.0
- [tar-stream](https://npm.io/package/tar-stream.md) ^2.0.1

## Recent versions

- 0.36.0 (latest) — 2019-11-27
- 0.35.1 — 2019-10-17
- 0.35.0 — 2019-09-24
- 0.34.0 — 2019-09-24
- 0.33.1 — 2019-09-15
- 0.33.0 — 2019-09-05
- 0.32.3 — 2019-08-27
- 0.3.0 — 2019-08-27
- 0.2.3 — 2019-03-18
- 0.2.2 — 2019-03-18
- 0.2.1 — 2019-03-18
- 0.2.0 — 2019-03-14
- 0.1.0 — 2019-03-06
- 0.0.1 — 2019-02-02

## README

Octane Blueprints
==============================================================================
[![Build Status](https://travis-ci.org/ember-cli/ember-octane-blueprint.svg?branch=master)](https://travis-ci.org/ember-cli/ember-octane-blueprint)

[![App](https://img.shields.io/npm/v/@ember/octane-app-blueprint.svg?label=App)](https://www.npmjs.com/package/@ember/octane-app-blueprint)
[![Addon](https://img.shields.io/npm/v/@ember/octane-addon-blueprint.svg?label=Addon)](https://www.npmjs.com/package/@ember/octane-addon-blueprint)

## These blueprints are deprecated

Success! Ember.js Octane was relased in v3.15 of Ember, and it included a [copy of these blueprints by default](https://github.com/ember-cli/ember-cli/tree/master/blueprints).
Therefore, this repository can be deprecated.
Today, to create an Octane app,
install at least version 3.15 of the Ember CLI and generate your app. You do not need to specify a `-b` option anymore:

```
npm install -g ember-cli
ember new my-app-name
```

To generate an addon using Octane blueprints:

```
ember addon my-addon-name
```

To learn more, visit [emberjs.com/editions/octane](https://emberjs.com/editions/octane).

## Past README content

Although these blueprints are deprecated, they can still serve as a public example for how to make custom blueprints.


New Projects

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

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

Existing Projects

```bash
# Apps
ember init -b @ember/octane-app-blueprint

# Addons
ember init -b @ember/octane-addon-blueprint
```


Included:

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

### Glimmer Component Example

```app/components/counter/component.js
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { action } from '@ember/object';

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

  @action increment() {
    this.count++;
  }

  @action decrement() {
    this.count--;
  }
}

```

```app/components/counter/template.hbs

Count: {{this.count}}
<br/>
<button {{on 'click' this.increment}}>Click to increase</button>
<button {{on 'click' this.decrement}}>Click to decrease</button>

```


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

# Install dependencies
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](LICENSE.md).

---
_Source: https://npm.io/package/octane-blueprint-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
