Skip to content

Commit

Permalink
#22 Improving readme, grabbing latest text-support-mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
nadnoslen committed Nov 5, 2018
1 parent c5c24f5 commit 9cd9f2e
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 38 deletions.
69 changes: 44 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,53 @@ submit the nearest form.
This addon installs from bower and uses the `autosize.js` library
from Jack Moore: [https://github.com/jackmoore/autosize](https://github.com/jackmoore/autosize).


## Built With

[![ember-cli-2.18.2](https://img.shields.io/badge/ember--cli-2.18.2-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)

## Tested Against

[![ember-lts-2.4](http://img.shields.io/badge/ember--try-ember--lts--2.4-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize)
[![ember-lts-2.8](http://img.shields.io/badge/ember--try-ember--lts--2.8-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize)
[![ember-lts-2.12](http://img.shields.io/badge/ember--try-ember--lts--2.12-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize)
[![ember-lts-2.4](https://img.shields.io/badge/ember--try-ember--lts--2.4-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)
[![ember-lts-2.8](https://img.shields.io/badge/ember--try-ember--lts--2.8-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)
[![ember-lts-2.12](https://img.shields.io/badge/ember--try-ember--lts--2.12-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)
[![ember-lts-2.16](https://img.shields.io/badge/ember--try-ember--lts--2.16-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)

[![ember-release-2.18](https://img.shields.io/badge/ember--try-ember--release--2.18-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)
[![ember-default](https://img.shields.io/badge/ember--try-ember--default-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)
[![ember-beta](https://img.shields.io/badge/ember--try-ember--beta-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)
[![ember-canary](https://img.shields.io/badge/ember--try-ember--canary-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-text-support-mixins)

## Installation

Like most other Ember addons:

```
ember install ember-cli-textarea-autosize
```

### Upgrading

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.

### Bower & JQuery

This add-on does not depend on bower libraries when installed in your application or add-on.

[![ember-release](http://img.shields.io/badge/ember--try-ember--release-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize)
[![ember-beta](http://img.shields.io/badge/ember--try-ember--beta-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize)
[![ember-canary](http://img.shields.io/badge/ember--try-ember--canary-brightgreen.svg)](https://circleci.com/gh/cybertoothca/ember-cli-textarea-autosize)
This add-on no longer depends on JQuery.

### Dependencies

#### `ember-cli-text-support-mixins`

The helper mixins from [`ember-cli-text-support-mixins`](http://ember-cli-text-support-mixins.cybertooth.io/)
are used by this textarea add-on to include support for:

* autofocus
* <kbd>CTRL+ENTER</kbd> submits the closest form
* textarea focus automatically selects text

## Demo

Expand Down Expand Up @@ -59,25 +97,6 @@ import CtrlEnterSubmitsForm from 'ember-cli-text-support-mixins/mixins/ctrl-ente

[Head over here for the mixin documentation](https://github.com/cybertoothca/ember-cli-text-support-mixins#mixins).

## Requirements

* Ember >= 1.13.0
* Ember CLI

## Installation

Like most other Ember addons:

```
ember install ember-cli-textarea-autosize
```

### Upgrading

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.

## Usage

This textarea component extends the `ember-cli-text-support-mixins` add-on's
Expand Down
4 changes: 2 additions & 2 deletions install_ember_addons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ ember install ember-cli-deploy-s3
ember install ember-cli-font-awesome-sass
ember install ember-cli-text-support-mixins

yarn add ember-cli-node-assets
yarn add [email protected]
yarn add autosize@~4 --dev
yarn add [email protected] --dev
yarn add ember-cli-node-assets # this must go into "dependencies" NOT "devDependencies"
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-textarea-autosize",
"version": "1.2.0-rc.0",
"version": "2.0.0-rc.0",
"description": "An Ember addon 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.",
"keywords": [
"ember-addon",
Expand Down Expand Up @@ -41,11 +41,11 @@
"test": "ember try:each"
},
"dependencies": {
"autosize": "3.0.21",
"ember-cli-babel": "^6.6.0",
"ember-cli-node-assets": "^0.2.2"
},
"devDependencies": {
"autosize": "~4",
"bootswatch": "3.3.7",
"broccoli-asset-rev": "^2.4.5",
"ember-ajax": "^3.0.0",
Expand All @@ -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": "^1.1.2",
"ember-cli-text-support-mixins": "^2.0.0-rc.3",
"ember-cli-uglify": "^2.0.0",
"ember-disable-prototype-extensions": "^1.1.2",
"ember-export-application-global": "^2.0.0",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ atob@^2.1.1:
version "2.1.2"
resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9"

autosize@3.0.21:
version "3.0.21"
resolved "https://registry.yarnpkg.com/autosize/-/autosize-3.0.21.tgz#f182f40d17757d978a139a4c9ca40c4c0e448603"
autosize@~4:
version "4.0.2"
resolved "https://registry.yarnpkg.com/autosize/-/autosize-4.0.2.tgz#073cfd07c8bf45da4b9fd153437f5bafbba1e4c9"

aws-sdk@^2.6.12:
version "2.346.0"
Expand Down Expand Up @@ -2327,7 +2327,7 @@ ember-cli-babel@^6.0.0, ember-cli-babel@^6.0.0-beta.7, ember-cli-babel@^6.0.0-be
clone "^2.0.0"
ember-cli-version-checker "^2.0.0"

ember-cli-babel@^6.11.0, ember-cli-babel@^6.12.0, ember-cli-babel@^6.3.0, ember-cli-babel@^6.6.0, ember-cli-babel@^6.8.2:
ember-cli-babel@^6.11.0, ember-cli-babel@^6.12.0, ember-cli-babel@^6.6.0, ember-cli-babel@^6.8.2:
version "6.17.2"
resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-6.17.2.tgz#f0d53d2fb95e70c15d8db84760d045f88f458f69"
dependencies:
Expand Down Expand Up @@ -2601,11 +2601,11 @@ ember-cli-test-loader@^2.2.0:
dependencies:
ember-cli-babel "^6.8.1"

ember-cli-text-support-mixins@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/ember-cli-text-support-mixins/-/ember-cli-text-support-mixins-1.1.2.tgz#727e79246d9331a325c93474886beefba3ab2a32"
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"
dependencies:
ember-cli-babel "^6.3.0"
ember-cli-babel "^6.6.0"
ember-cli-node-assets "^0.2.2"

ember-cli-uglify@^2.0.0:
Expand Down

0 comments on commit 9cd9f2e

Please sign in to comment.