Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ember-cpm, ember-cli-mirage, ember-sinon-qunit, ember-try #24

Merged
merged 2 commits into from
Oct 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ before_install:
install:
- npm install -g bower
- npm install
- bower install

script:
- npm test
113 changes: 69 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,150 +88,175 @@ _Major Setup_ - A significant amount of work is needed to use this addon. Our go
any projects that would receive this rating, as it is counter-intuitive to the quick-start nature of this project.

### [ember-cli-autoprefixer](http://jhawk.co/ember-cli-autoprefixer)
Runs the styles of your Ember CLI application through [`autoprefixer`](http://jhawk.co/autoprefixer-js).

_No Setup_

_Additional Install: N/A_

Runs the styles of your Ember CLI application through [`autoprefixer`](http://jhawk.co/autoprefixer-js).

### [ember-cli-blanket](http://jhawk.co/ember-cli-blanket)
Wraps Blanket.js to provide code coverage for Ember apps. Easy integration with
[`ember-cli-pretender`](http://jhawk.co/ember-cli-pretender) or [`ember-cli-mirage`](http://jhawk.co/ember-cli-mirage).
The [README](https://github.com/sglanzer/ember-cli-blanket/blob/master/README.md) has details on configuration of the addon.

_Minor Setup_

_Additional Install: [`blanket`](http://jhawk.co/blanket-js)_

Wraps Blanket.js to provide code coverage for Ember apps. Easy integration with
[`ember-cli-pretender`](http://jhawk.co/ember-cli-pretender) or [`ember-cli-mirage`](http://jhawk.co/ember-cli-mirage).
The [README](https://github.com/sglanzer/ember-cli-blanket/blob/master/README.md) has details on configuration of the addon.
### [ember-cli-mirage](http://jhawk.co/ember-cli-mirage)
**Enhanced: Testing**

Client-side server for mocking API calls for testing & development. The project's
[documentation](http://www.ember-cli-mirage.com/docs/v0.1.x/) has thorough instructions on setting up the mock server.

_Minor Setup_

_Additional Install: [Faker](http://jhawk.co/fakerjs), [lodash](http://jhawk.co/lodashjs), & [pretender](http://jhawk.co/pretenderjs)_

### [ember-cli-sass-pods](http://jhawk.co/ember-cli-sass-pods)
**Enhanced: Pods**

Enables usage of SCSS styles in pod directories. Also includes generators for these files!

_Trivial Setup_

_Additional Install: [`ember-cli-sass`](http://jhawk.co/ember-cli-sass)_

Enables usage of SCSS styles in pod directories. Also includes generators for these files!

### [ember-cpm](http://jhawk.co/ember-cpm)
Provides Computed Property Macros, including
[Composable Macros](https://github.com/cibernox/ember-cpm/blob/master/README.md#composable-computed-property-macros)!

_No Setup_

_Additional Install: N/A_

_Note: `ember-cpm` is not currently installed by ECO, pending its [update](https://github.com/cibernox/ember-cpm/pull/125)
to Ember 2.x compatibility._

Provides Computed Property Macros, including
[Composable Macros](https://github.com/cibernox/ember-cpm/blob/master/README.md#composable-computed-property-macros)!

### [ember-e3](http://jhawk.co/ember-e3)
**Enhanced: Analytics**

An Ember-first data visualization library that combines d3-like math with Ember's "data down/actions up" data binding
paradigm. Supports rendering to both Canvas _and_ SVG!

_No Setup_

_Additional Install: N/A_

An Ember-first data visualization library that combines d3-like math with Ember's "data down/actions up" data binding
paradigm. Supports rendering to both Canvas _and_ SVG!

_Note: This is a beta product that is still a WIP, with many more features on the way. Additionally, it only supports
Ember 1.13+, sorry!_

### [ember-feature-flags](http://jhawk.co/ember-feature-flags)
Provides an injected `features` property to your routes, controllers, and components.
The [README](https://github.com/kategengler/ember-feature-flags/blob/master/README.md) details the easy ENV config.

_Minor Setup_

_Additional Install: N/A_

Provides an injected `features` property to your routes, controllers, and components.

The [README](https://github.com/kategengler/ember-feature-flags/blob/master/README.md) details the easy ENV config.

### [ember-gestures](http://jhawk.co/ember-gestures)
**Enhanced: Mobile-Friendly**

Provides gesture and mobile support for Ember applications.

_Trivial Setup_

_Additional Install: [`hammer.js`](http://jhawk.co/hammer-js-repo) & [`hammer-time`](http://jhawk.co/hammer-time-js)_

Provides gesture and mobile support for Ember applications.

_Note: `ember-gestures` relies on the yet-to-be-released 2.1.x version of `hammer.js`. In order for this package to work
properly, you must install the latest `develop` branch from their repository:_

`bower install --save runspired/hammer.js#develop`

### [ember-metrics](http://jhawk.co/ember-metrics)
Allows you to send data to multiple analytics integrations without re-implementing new API. Check out the
[README](https://github.com/poteto/ember-metrics/blob/develop/README.md) for information on how to
set up the instrumentation to your favorite analytics reporting tool.

_Minor Setup_

_Additional Install: N/A_

Allows you to send data to multiple analytics integrations without re-implementing new API.

Check out the [README](https://github.com/poteto/ember-metrics/blob/develop/README.md) for information on how to
set up the instrumentation to your favorite analytics reporting tool.

### [ember-moment](http://jhawk.co/ember-moment)
Provides template helpers and computed property macros for date parsing, as well as
including `moment.js` as an ES6 module import.

_No Setup_

_Additional Install: [`ember-cli-moment-shim`](http://jhawk.co/ember-cli-moment-shim),
[`moment`](http://jhawk.co/moment-js), & [`moment-timezone`](http://jhawk.co/moment-timezone)_

Provides template helpers and computed property macros for date parsing, as well as
including `moment.js` as an ES6 module import.

### [ember-paper](http://jhawk.co/ember-paper)
**Enhanced: Material Design**

An Ember-first implementation of Google's [Material Design](http://jhawk.co/google-md) spec. This is an ambitious
project that does not yet fully support every part of the spec, but feel free to check out their
[demo](http://jhawk.co/ember-paper-demo) to see how incredibly far they've gotten!

_Trivial Setup_

_Additional Install: [`ember-cli-sass`](http://jhawk.co/ember-cli-sass), [`hammerjs`](http://jhawk.co/hammer-js-repo)
& [`matchMedia`](http://jhawk.co/match-media-polyfill)

An Ember-first implementation of Google's [Material Design](http://jhawk.co/google-md) spec. This is an ambitious
project that does not yet fully support every part of the spec, but feel free to check out their
[demo](http://jhawk.co/ember-paper-demo) to see how incredibly far they've gotten!

### [ember-responsive](http://jhawk.co/ember-responsive)
Uses responsive media queries to inject screen layout information throughout Ember applications.
Needs Polyfill for [compatibility](http://caniuse.com/#feat=matchmedia) with IE 8/9 or Opera Mini.

_No Setup_

_Additional Install: N/A_

Uses responsive media queries to inject screen layout information throughout Ember applications.
Needs Polyfill for [compatibility](http://caniuse.com/#feat=matchmedia) with IE 8/9 or Opera Mini.
### [ember-sinon-qunit](http://jhawk.co/ember-sinon-qunit)
**Enhanced: Testing**

Easy integration between [`sinon`](http://jhawk.co/sinonjs) and [`ember-qunit`](http://jhawk.co/ember-qunit).

### [ember-suave](http://jhawk.co/ember-suave)
_No Setup_

_Additional Install: N/A_
_Additional Install: [`ember-sinon`](http://jhawk.co/ember-sinon)

### [ember-suave](http://jhawk.co/ember-suave)
Enforce code styles using [`JSCS`](http://jhawk.co/js-cs). Defaults to the
DockYard [JavaScript](https://github.com/dockyard/styleguides/blob/master/javascript.md) and
[Ember](https://github.com/dockyard/styleguides/blob/master/ember.md) Style Guides, but rules are configurable.

_No Setup_

_Additional Install: N/A_

### [ember-truth-helpers](http://jhawk.co/ember-truth-helpers)
HTMLBars template helpers for additional truth logic in if and unless statements. Highly recommended by the Ember Core team!

_No Setup_

_Additional Install: N/A_

HTMLBars template helpers for additional truth logic in if and unless statements.
### [ember-try](http://jhawk.co/ember-try)
**Enhanced: Testing**

### [liquid-fire](http://jhawk.co/liquid-fire)
**Enhanced: Animations**
Run tests against multiple bower dependencies, such as Ember or Ember-Data. Incredibly useful in
maintaining an upgrade path for your application!

_Minor Setup_
_No Setup_

_Additional Install: N/A_

### [liquid-fire](http://jhawk.co/liquid-fire)
**Enhanced: Animations**

Comprehensive animation support for ambitious Ember applications. Replace your outlets and other HTMLbars helpers
with the `liquid-fire` versions to enable support for adding transitional animations throughout your application.
The [interactive documentation](http://jhawk.co/liquid-fire-docs) provides detailed information on using this addon.

_Minor Setup_

_Additional Install: N/A_

## Contributing

[CONTRIBUTING.md](https://github.com/elwayman02/ember-cli-opinionated/blob/master/CONTRIBUTING.md) details how to contribute to this project.

### Installation

* `git clone` this repository
* `git clone git@github.com:elwayman02/ember-cli-opinionated.git`
* `cd ember-cli-opinionated`
* `npm install`
* `bower install`

Expand All @@ -242,4 +267,4 @@ The [interactive documentation](http://jhawk.co/liquid-fire-docs) provides detai

### Running Tests

* `npm test`
* `npm test`
17 changes: 10 additions & 7 deletions blueprints/ember-cli-opinionated/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = {
'ember-cli-autoprefixer',
'ember-cli-blanket',
'ember-cli-sass',
//'ember-cpm',
'ember-cpm',
'ember-feature-flags',
'ember-metrics',
'ember-moment',
Expand All @@ -32,11 +32,12 @@ module.exports = {

var prompts = [
extend({ message: 'Would you like to enhance your ember-cli-opinionated setup?', packages: packages }, updatePrompt),
extend({ message: 'Organizing Your App Into Pods?', packages: ['ember-cli-sass-pods'] }, updatePrompt),
extend({ message: 'Analytics/Reports?', packages: ['ember-e3'] }, updatePrompt),
extend({ message: 'Mobile Touch?', packages: ['ember-gestures'] }, updatePrompt),
extend({ message: 'Material Design?', packages: ['ember-paper'] }, updatePrompt),
extend({ message: 'Animations?', packages: ['liquid-fire'] }, updatePrompt)
extend({ message: 'Organizing Your App Into Pods', packages: ['ember-cli-sass-pods'] }, updatePrompt),
extend({ message: 'Analytics/Reports', packages: ['ember-e3'] }, updatePrompt),
extend({ message: 'Testing', packages: ['ember-cli-mirage', 'ember-sinon-qunit', 'ember-try'] }, updatePrompt),
extend({ message: 'Mobile Touch', packages: ['ember-gestures'] }, updatePrompt),
extend({ message: 'Material Design', packages: ['ember-paper'] }, updatePrompt),
extend({ message: 'Animations', packages: ['liquid-fire'] }, updatePrompt)
];

return this.promptUserForOpinions(packages, prompts);
Expand All @@ -60,7 +61,9 @@ module.exports = {
this.ui.writeLine('Tell us what extra features your app needs:');
}
if (index < prompts.length - 1) { // Keep giving prompts until the last iteration
return this.ui.prompt(prompts[index + 1]);
var nextPrompt = prompts[index + 1];
nextPrompt.message += ' (' + nextPrompt.packages.join(', ') + ')?';
return this.ui.prompt(nextPrompt);
}
return this.addOpinionatedPackagesToProject(packages);
}
Expand Down