Skip to content

Commit

Permalink
#22 Use latest 2.x version of ember-cli-text-support-mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
nadnoslen committed Nov 5, 2018
1 parent c866b9f commit 36701f7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 21 deletions.
36 changes: 19 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# ember-cli-textarea-autosize [![GitHub version](http://badge.fury.io/gh/cybertoothca%2Fember-cli-textarea-autosize.svg)](http://badge.fury.io/gh/cybertoothca%2Fember-cli-textarea-autosize) ![](http://embadge.io/v1/badge.svg?start=1.13.0)
# ember-cli-textarea-autosize

[![npm version](http://badge.fury.io/js/ember-cli-textarea-autosize.svg)](http://badge.fury.io/js/ember-cli-textarea-autosize) ![downloads](http://img.shields.io/npm/dy/ember-cli-textarea-autosize.svg) [![CircleCI](http://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize.svg?style=shield)](http://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize) [![Code Climate](http://codeclimate.com/github/cybertoothca/ember-cli-textarea-autosize/badges/gpa.svg)](http://codeclimate.com/github/cybertoothca/ember-cli-textarea-autosize) ![Dependencies](http://david-dm.org/cybertoothca/ember-cli-textarea-autosize.svg) [![ember-observer-badge](http://emberobserver.com/badges/ember-cli-textarea-autosize.svg)](http://emberobserver.com/addons/ember-cli-textarea-autosize) [![License](http://img.shields.io/npm/l/ember-cli-textarea-autosize.svg)](LICENSE.md)
[![npm version](http://badge.fury.io/js/ember-cli-textarea-autosize.svg)](http://badge.fury.io/js/ember-cli-textarea-autosize) ![downloads](http://img.shields.io/npm/dy/ember-cli-textarea-autosize.svg) [![CircleCI](http://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize.svg?style=shield)](http://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize) [![Code Climate](http://codeclimate.com/github/cybertoothca/ember-cli-textarea-autosize/badges/gpa.svg)](http://codeclimate.com/github/cybertoothca/ember-cli-textarea-autosize)

An Ember addon that provides a textarea component that adjusts its
![Dependencies](http://david-dm.org/cybertoothca/ember-cli-textarea-autosize.svg) [![ember-observer-badge](http://emberobserver.com/badges/ember-cli-textarea-autosize.svg)](http://emberobserver.com/addons/ember-cli-textarea-autosize) [![License](http://img.shields.io/npm/l/ember-cli-textarea-autosize.svg)](LICENSE.md)

An Ember add-on that provides a textarea component that adjusts its
height according to the supplied text. Included are also several
mixins that can be used to ensure `autofocus` works properly,
focused text inputs have their text selected, and ctrl+enter will
submit the nearest form.

This addon installs from bower and uses the `autosize.js` library
This add-on installs from bower and uses the `autosize.js` library
from Jack Moore: [https://github.com/jackmoore/autosize](https://github.com/jackmoore/autosize).


Expand All @@ -30,7 +32,7 @@ from Jack Moore: [https://github.com/jackmoore/autosize](https://github.com/jack

## Installation

Like most other Ember addons:
Like most other Ember add-ons:

```
ember install ember-cli-textarea-autosize
Expand All @@ -40,7 +42,7 @@ ember install ember-cli-textarea-autosize

When working through the Ember upgrade process, I recommend
invoking the `ember install ember-cli-textarea-autosize` command once
you are done to get the latest version of the addon.
you are done to get the latest version of the add-on.

### Bower & JQuery

Expand All @@ -64,9 +66,9 @@ are used by this textarea add-on to include support for:
The demonstration web application can be found here:
[http://ember-cli-textarea-autosize.cybertooth.io/](http://ember-cli-textarea-autosize.cybertooth.io/).

## What Does This Addon Do?
## What Does This Add-on Do?

This addon gives you access to the following _component_:
This add-on gives you access to the following _component_:

* `textarea-autosize` - an extension of the Ember.TextArea that
produces a `<textarea>` that grows in height to fit the supplied
Expand Down Expand Up @@ -153,7 +155,7 @@ Check out these extra mixins at

---

# Ember Addon Building And Testing
# Ember Add-on Building And Testing

## Setup

Expand All @@ -174,28 +176,28 @@ yarn
* `ember server`
* Visit your app at http://localhost:4200.

## Running Addon Tests
## Running Add-on Tests

* `npm test` (Runs `ember try:testall` to test your addon against multiple Ember versions)
* `npm test` (Runs `ember try:testall` to test your add-on against multiple Ember versions)
* `ember test`
* `ember test --server`

## Building The Addon
## Building The Add-on

* `ember build`

For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).

# Linking This Addon For Local Testing
# Linking This Add-on For Local Testing

## Linking

Use yarn.

```bash
# from this addon project
# from this add-on project
$ yarn link
# from the other project that depends on this addon
# from the other project that depends on this add-on
$ yarn link ember-cli-textarea-autosize
```

Expand All @@ -204,9 +206,9 @@ $ yarn link ember-cli-textarea-autosize
Again, use yarn.

```bash
# from the other project that linked to this addon
# from the other project that linked to this add-on
$ yarn unlink ember-cli-textarea-autosize
# from this addon project
# from this add-on project
$ yarn unlink
```

Expand Down
1 change: 1 addition & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-env node */
'use strict';

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"ember-cli-sass": "^8.0.1",
"ember-cli-shims": "^1.2.0",
"ember-cli-sri": "^2.1.0",
"ember-cli-text-support-mixins": "^2.0.0-rc.3",
"ember-cli-text-support-mixins": "^2.0.1",
"ember-cli-uglify": "^2.0.0",
"ember-disable-prototype-extensions": "^1.1.2",
"ember-export-application-global": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions testem.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-env node */
module.exports = {
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2601,9 +2601,9 @@ ember-cli-test-loader@^2.2.0:
dependencies:
ember-cli-babel "^6.8.1"

ember-cli-text-support-mixins@^2.0.0-rc.3:
version "2.0.0-rc.3"
resolved "https://registry.yarnpkg.com/ember-cli-text-support-mixins/-/ember-cli-text-support-mixins-2.0.0-rc.3.tgz#3de101479c2200faf845714cb8fe0e6d9bc6e803"
ember-cli-text-support-mixins@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/ember-cli-text-support-mixins/-/ember-cli-text-support-mixins-2.0.1.tgz#157150c6b947682cb99c2fedf451acd738a13905"
dependencies:
ember-cli-babel "^6.6.0"
ember-cli-node-assets "^0.2.2"
Expand Down

0 comments on commit 36701f7

Please sign in to comment.