An open API service indexing awesome lists of open source software.

https://github.com/rajasegar/ember-addon-starterkit

Starterkit for creating new ember addons with all batteries included
https://github.com/rajasegar/ember-addon-starterkit

batteries ember-addon ember-cli ember-cli-release starterkit

Last synced: 9 months ago
JSON representation

Starterkit for creating new ember addons with all batteries included

Awesome Lists containing this project

README

          

ember-addon-starterkit
==============================================================================

[![Build Status](https://travis-ci.org/rajasegar/ember-addon-starterkit.svg?branch=master)](https://travis-ci.org/rajasegar/ember-addon-starterkit)
[![npm](https://img.shields.io/npm/dm/ember-addon-starterkit.svg)](https://www.npmjs.com/package/ember-addon-starterkit)
[![npm version](http://img.shields.io/npm/v/ember-addon-starterkit.svg?style=flat)](https://npmjs.org/package/ember-addon-starterkit "View this project on npm")
[![dependencies Status](https://david-dm.org/rajasegar/ember-addon-starterkit/status.svg)](https://david-dm.org/rajasegar/ember-addon-starterkit)
[![devDependencies Status](https://david-dm.org/rajasegar/ember-addon-starterkit/dev-status.svg)](https://david-dm.org/rajasegar/ember-addon-starterkit?type=dev)
[![EmberObserver](http://emberobserver.com/badges/ember-addon-starterkit.svg?branch=master)](http://emberobserver.com/addons/ember-addon-starterkit)

Starter kit for creating and publishing new Ember addons with all batteries included.

## Installation
```shell
ember install ember-addon-starterkit
```

### Update yuidoc.json to use ember themes
In order to use the installed YUIDoc ember theme we need to update the yuidoc.json with the
following new options:

Add the following to the **options** section

```js
"enabledEnvironments": ["development","production"],
"themedir": "node_modules/yuidoc-ember-theme",
"helpers": ["node_modules/yuidoc-ember-theme/helpers/helpers.js"]
```

### Update config/release.js to push demo app to gh-pages branch
If you want to keep your documentation/demo updated you need to automate
that part using the **ember-cli-release** config.

Add the following to the **config/release.js** file created by the addon.

```js
/* jshint node:true */
var execSync = require('child_process').execSync;

// For details on each option run `ember help release`
module.exports = {
publish: true,
afterPublish: function(project, versions) {
// Publish dummy app with docs to gh-pages
runCommand('ember github-pages:commit --message "Released ' + versions.next + '"');
runCommand('git push origin gh-pages:gh-pages');
}
};

function runCommand(command) {
console.log('running: ' + command); // eslint-disable-line
var output = execSync(command, { encoding: 'utf8' });
console.log(output); // eslint-disable-line
}
```

## Usage
Once you have your addon code ready to be published with all the documentation added, You just have to issue
only one command:

```shell
ember release
```

For accepting all commands with an yes
```shell
ember release --yes
```

## Features
* Release Automation
* npm Package Publishing
* Documentation
* Demo Application
* Test helpers
* Code coverage

## Batteries
### ember-cli-release
Ember CLI addon that defines a release command for bumping the version of your app or addon. It's a streamlined alternative to the npm version command, with a number of additional advantages.
[ember-cli-release](https://github.com/lytics/ember-cli-release)

### ember-cli-github-pages
Easily manage gh-pages of your ember-cli addon
[ember-cli-github-pages](https://github.com/poetic/ember-cli-github-pages)

### ember-cli-yuidoc
This is an ember-cli addon for generate html documentation from YUIDoc comments in the source code.
[ember-cli-yuidoc](https://github.com/cibernox/ember-cli-yuidoc)

### yuidoc-ember-theme
An EmberJS based YUIDoc theme
[yuidoc-ember-theme](https://github.com/offirgolan/yuidoc-ember-theme)

### ember-cli-code-coverage
Code coverage for ember apps using Istanbul
Find more info [here](https://github.com/kategengler/ember-cli-code-coverage)

### ember-native-dom-helpers
Test helpers for your integration tests that fire native events
Find more info [here](https://github.com/cibernox/ember-native-dom-helpers)

### coveralls
Coveralls.io support. Get the great coverage reporting of coveralls.io and add a cool coverage button ( like the one above ) to your README.
Find more info [here](https://github.com/nickmerwin/node-coveralls)

## Addon Demo
The demo application for this addon is published into **gh-pages** from the dummy app inside and is available
[here](https://rajasegar.github.io/ember-addon-starterkit/)

* Ember.js v3.12 or above
* Ember CLI v2.13 or above
* Node.js v10 or above

Installation
------------------------------------------------------------------------------

```
ember install ember-addon-starterkit
```

Usage
------------------------------------------------------------------------------

[Longer description of how to use the addon in apps.]

Contributing
------------------------------------------------------------------------------

See the [Contributing](CONTRIBUTING.md) guide for details.

License
------------------------------------------------------------------------------

This project is licensed under the [MIT License](LICENSE.md).