Skip to content

Commit 5a75db2

Browse files
author
Sean Luthjohn
committed
[Chore] Remove bower dependencies and update current dependencies
1 parent 54e4179 commit 5a75db2

25 files changed

+200
-237
lines changed

.bowerrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,8 @@ insert_final_newline = true
1313
indent_style = space
1414
indent_size = 2
1515

16-
[*.js]
17-
indent_style = space
18-
indent_size = 2
19-
2016
[*.hbs]
2117
insert_final_newline = false
22-
indent_style = space
23-
indent_size = 2
24-
25-
[*.css]
26-
indent_style = space
27-
indent_size = 2
28-
29-
[*.html]
30-
indent_style = space
31-
indent_size = 2
3218

3319
[*.{diff,md}]
3420
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
ecmaVersion: 2017,
5+
sourceType: 'module'
6+
},
7+
extends: 'eslint:recommended',
8+
env: {
9+
browser: true
10+
},
11+
rules: {
12+
},
13+
globals: {
14+
CountUp: true,
15+
}
16+
};

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# See http://help.github.com/ignore-files/ for more about ignoring files.
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
22

33
# compiled output
44
/dist
@@ -13,5 +13,5 @@
1313
/connect.lock
1414
/coverage/*
1515
/libpeerconnection.log
16-
npm-debug.log
16+
npm-debug.log*
1717
testem.log

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
.editorconfig
99
.ember-cli
1010
.gitignore
11-
.jshintrc
11+
.eslintrc.js
1212
.watchmanconfig
1313
.travis.yml
1414
bower.json

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
---
22
language: node_js
33
node_js:
4-
- "4"
4+
- "6"
55

66
sudo: false
77

88
cache:
99
directories:
10-
- node_modules
10+
- $HOME/.npm
1111

1212
env:
13-
- EMBER_TRY_SCENARIO=default
14-
- EMBER_TRY_SCENARIO=ember-1.13
13+
# we recommend testing LTS's and latest stable release (bonus points to beta/canary)
14+
- EMBER_TRY_SCENARIO=ember-lts-2.4
15+
- EMBER_TRY_SCENARIO=ember-lts-2.8
1516
- EMBER_TRY_SCENARIO=ember-release
1617
- EMBER_TRY_SCENARIO=ember-beta
1718
- EMBER_TRY_SCENARIO=ember-canary
19+
- EMBER_TRY_SCENARIO=ember-default
1820

1921
matrix:
2022
fast_finish: true
@@ -23,14 +25,13 @@ matrix:
2325

2426
before_install:
2527
- npm config set spin false
26-
- npm install -g bower
27-
- npm install phantomjs-prebuilt
28+
- npm install -g phantomjs-prebuilt
29+
- phantomjs --version
2830

2931
install:
3032
- npm install
31-
- bower install
3233

3334
script:
3435
# Usually, it's ok to finish the test scenario without reverting
3536
# to the addon's original dependency state, skipping "cleanup".
36-
- ember try $EMBER_TRY_SCENARIO test --skip-cleanup
37+
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup

README.md

Lines changed: 15 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,26 @@
1-
# Ember-countup
1+
# ember-countup
22

3-
A [countUp.js](https://inorganik.github.io/countUp.js/) integration for Ember
3+
This README outlines the details of collaborating on this Ember addon.
44

55
## Installation
66

7-
`ember install ember-countup`
7+
* `git clone <repository-url>` this repository
8+
* `cd ember-countup`
9+
* `npm install`
810

9-
## Usage
11+
## Running
1012

11-
Basic example
12-
```handlebars
13-
{{count-up startVal=0 endVal=42 duration=2}}
14-
```
13+
* `ember serve`
14+
* Visit your app at [http://localhost:4200](http://localhost:4200).
1515

16-
Full example, showing default values
17-
```handlebars
18-
{{count-up
19-
startVal=0
20-
endVal=42
21-
duration=2
22-
decimals=0
23-
useEasing=false
24-
useGrouping=false
25-
separator=','
26-
decimal='.'
27-
prefix=''
28-
suffix=''}}
29-
```
16+
## Running Tests
3017

31-
Example using [formattingFn](https://github.com/inorganik/countUp.js/blob/1.7.1/countUp.js#L52)
32-
```handlebars
33-
{{count-up
34-
startVal=0
35-
endVal=42
36-
duration=2
37-
formattingFn=customFormatting}}
38-
```
18+
* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
19+
* `ember test`
20+
* `ember test --server`
3921

40-
```javascript
41-
customFormatting: function(nStr) {
42-
// I get called on every count up step
43-
}
44-
```
22+
## Building
4523

46-
Example using [easingFn](https://github.com/inorganik/countUp.js#custom-easing)
47-
```handlebars
48-
{{count-up
49-
startVal=0
50-
endVal=42
51-
duration=2
52-
easingFn=customEasing}}
53-
```
24+
* `ember build`
5425

55-
```javascript
56-
customEasing: function(t, b, c, d) {
57-
var ts = (t /= d) * t;
58-
var tc = ts * t;
59-
return b + c * (1.77635683940025e-15 * tc * ts + 0.999999999999998 * tc + -3 * ts + 3 * t);
60-
}
61-
```
62-
63-
Example using the [onComplete callback](https://github.com/inorganik/countUp.js#usage)
64-
```handlebars
65-
{{count-up
66-
startVal=0
67-
endVal=42
68-
duration=2
69-
onComplete=(action 'showMessage')}}
70-
```
71-
72-
```javascript
73-
actions: {
74-
showMessage() {
75-
alert('count up done');
76-
}
77-
}
78-
```
79-
80-
Check out the [dummy app](https://github.com/pogopaule/ember-countup/tree/master/tests/dummy/app) for a working example.
81-
82-
## Styling
83-
84-
Style a `span` with the class `.ember-countup`:
85-
86-
```html
87-
<span id="ember389" class="ember-view ember-countup">42</span>
88-
```
26+
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).

addon/components/count-up.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default Ember.Component.extend({
88
this._insertAndStartCountUp();
99
},
1010

11-
changed: Ember.observer('startVal', 'endVal', 'decimals', 'duration', 'useEasing', 'easingFn', 'useGrouping', 'separator', 'decimal', 'prefix', 'suffix', 'formattingFn', 'onComplete', function() {
11+
changed: Ember.observer('startVal', 'endVal', 'decimals', 'duration', 'useEasing', 'easingFn', 'useGrouping', 'separator', 'decimal', 'prefix', 'suffix', 'formattingFn', 'onComplete', function () {
1212
this._insertAndStartCountUp();
1313
}),
1414

@@ -23,11 +23,11 @@ export default Ember.Component.extend({
2323
{
2424
useEasing: this.get('useEasing'),
2525
easingFn: this.get('easingFn'),
26-
  useGrouping: this.get('useGrouping'),
27-
  separator: this.get('separator') || ',',
28-
  decimal: this.get('decimal') || '.',
29-
  prefix: this.get('prefix') || '',
30-
  suffix: this.get('suffix') || '',
26+
useGrouping: this.get('useGrouping'),
27+
separator: this.get('separator') || ',',
28+
decimal: this.get('decimal') || '.',
29+
prefix: this.get('prefix') || '',
30+
suffix: this.get('suffix') || '',
3131
formattingFn: this.get('formattingFn')
3232
}
3333
);

blueprints/ember-countup/index.js

Lines changed: 0 additions & 13 deletions
This file was deleted.

bower.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)