Skip to content

Commit e2b363a

Browse files
leizhao4duizendnegen
authored andcommitted
Upgrade to Ember CLI 2.12.1 (adopted-ember-addons#143)
* Upgrade to Ember CLI 2.12.1 * Fix outdated dependency description
1 parent 22dbc33 commit e2b363a

25 files changed

+5407
-175
lines changed

.eslintrc.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
ecmaVersion: 6,
5+
sourceType: 'module'
6+
},
7+
extends: 'eslint:recommended',
8+
env: {
9+
browser: true
10+
},
11+
rules: {
12+
}
13+
};

.gitignore

+2-2
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

.jshintrc

-32
This file was deleted.

.npmignore

+1-1
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

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ sudo: false
77

88
cache:
99
directories:
10-
- node_modules
10+
- $HOME/.npm
11+
- $HOME/.cache # includes bowers cache
1112

1213
env:
1314
- EMBER_TRY_SCENARIO=default
@@ -29,9 +30,8 @@ matrix:
2930

3031
before_install:
3132
- npm config set spin false
32-
- npm install -g bower
33+
- npm install -g bower phantomjs-prebuilt
3334
- bower --version
34-
- npm install -g phantomjs-prebuilt
3535
- phantomjs --version
3636

3737
install:
@@ -41,4 +41,4 @@ install:
4141
script:
4242
# Usually, it's ok to finish the test scenario without reverting
4343
# to the addon's original dependency state, skipping "cleanup".
44-
- ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup
44+
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ember-pikaday [![Build Status](https://travis-ci.org/edgycircle/ember-pikaday.svg)](https://travis-ci.org/edgycircle/ember-pikaday)
22

3-
ember-pikaday is an addon that can be installed with Ember CLI. It gives you a datepicker input component that can be used in your Ember.js application. Pikaday and Moment.js are used in the background so they are added as Bower dependencies to your application.
3+
ember-pikaday is an addon that can be installed with Ember CLI. It gives you a datepicker input component that can be used in your Ember.js application. [ember-cli-moment-shim](https://github.com/jasonmit/ember-cli-moment-shim) is used in the background so it is added as NPM dependencies to your application.
44

55
**The component provided by ember-pikaday is fully acceptance tested. It also provides test helpers to interact with the datepicker in your own acceptance tests. It works works in Ember 1.13.1+ or 2.0+, including beta and canary.**
66

blueprints/ember-pikaday/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = {
22
normalizeEntityName: function() {},
33

44
afterInstall: function() {
5-
return this.addAddonToProject('ember-cli-moment-shim', '2.1.0');
5+
return this.addAddonToProject('ember-cli-moment-shim', '^3.0.1');
66
}
77
};

bower.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
22
"name": "ember-pikaday",
3-
"dependencies": {
4-
"ember": "~2.8.0",
5-
"ember-cli-shims": "0.1.1"
6-
}
3+
"dependencies": {}
74
}

config/ember-try.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*jshint node:true*/
1+
/* eslint-env node */
22
module.exports = {
33
scenarios: [
44
{

config/environment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*jshint node:true*/
1+
/* eslint-env node */
22
'use strict';
33

44
module.exports = function(/* environment, appConfig */) {

ember-cli-build.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/*jshint node:true*/
2-
/* global require, module */
3-
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
1+
/* eslint-env node */
2+
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
43

54
module.exports = function(defaults) {
65
var app = new EmberAddon(defaults, {

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* jshint node: true */
1+
/* eslint-env node */
22
'use strict';
33

44
module.exports = {

package.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,41 @@
1313
},
1414
"repository": "https://github.com/edgycircle/ember-pikaday",
1515
"engines": {
16-
"node": ">= 0.10.0"
16+
"node": ">= 4"
1717
},
1818
"author": "David Strauß",
1919
"license": "MIT",
2020
"devDependencies": {
21-
"broccoli-asset-rev": "^2.4.2",
22-
"ember-ajax": "^2.0.1",
23-
"ember-cli": "2.8.0",
24-
"ember-cli-app-version": "^1.0.0",
25-
"ember-cli-dependency-checker": "^1.2.0",
26-
"ember-cli-htmlbars-inline-precompile": "^0.3.1",
27-
"ember-cli-inject-live-reload": "^1.4.0",
28-
"ember-cli-jshint": "^1.0.0",
29-
"ember-cli-moment-shim": "~2.1.0",
30-
"ember-cli-qunit": "^2.1.0",
21+
"broccoli-asset-rev": "^2.4.5",
22+
"ember-ajax": "^2.4.1",
23+
"ember-cli": "2.12.1",
24+
"ember-cli-dependency-checker": "^1.3.0",
25+
"ember-cli-eslint": "^3.0.0",
26+
"ember-cli-htmlbars-inline-precompile": "^0.3.6",
27+
"ember-cli-inject-live-reload": "^1.4.1",
28+
"ember-cli-moment-shim": "^3.0.1",
29+
"ember-cli-qunit": "^3.1.0",
3130
"ember-cli-release": "^0.2.9",
31+
"ember-cli-shims": "^1.0.2",
3232
"ember-cli-sri": "^2.1.0",
33-
"ember-cli-test-loader": "^1.1.0",
3433
"ember-cli-uglify": "^1.2.0",
3534
"ember-disable-prototype-extensions": "^1.1.0",
3635
"ember-export-application-global": "^1.0.5",
37-
"ember-load-initializers": "^0.5.1",
36+
"ember-load-initializers": "^0.6.0",
3837
"ember-resolver": "^2.0.3",
39-
"loader.js": "^4.0.1"
38+
"ember-source": "~2.12.0",
39+
"loader.js": "^4.2.3"
4040
},
4141
"keywords": [
4242
"ember-addon",
4343
"pikaday",
4444
"datepicker"
4545
],
4646
"dependencies": {
47-
"ember-cli-babel": "^5.1.6",
48-
"ember-cli-htmlbars": "^1.0.3",
49-
"ember-cli-node-assets": "^0.1.4",
50-
"pikaday": "^1.4.0"
47+
"ember-cli-babel": "^5.1.7",
48+
"ember-cli-htmlbars": "^1.1.1",
49+
"ember-cli-node-assets": "^0.2.2",
50+
"pikaday": "^1.5.1"
5151
},
5252
"ember-addon": {
5353
"configPath": "tests/dummy/config"

testem.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
/*jshint node:true*/
1+
/* eslint-env node */
22
module.exports = {
3-
"framework": "qunit",
43
"test_page": "tests/index.html?hidepassed",
54
"disable_watching": true,
65
"launch_in_ci": [

testem.json

-12
This file was deleted.

tests/.eslintrc.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
env: {
3+
embertest: true
4+
}
5+
};

tests/.jshintrc

-52
This file was deleted.

tests/dummy/.jshintrc

-32
This file was deleted.

tests/dummy/app/controllers/application.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint no-console: 0 */
12
import Ember from 'ember';
23

34
export default Ember.Controller.extend({

tests/dummy/config/environment.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* jshint node: true */
1+
/* eslint-env node */
22

33
module.exports = function(environment) {
44
var ENV = {
@@ -10,6 +10,10 @@ module.exports = function(environment) {
1010
FEATURES: {
1111
// Here you can enable experimental features on an ember canary build
1212
// e.g. 'with-controller': true
13+
},
14+
EXTEND_PROTOTYPES: {
15+
// Prevent Ember Data from overriding Date.parse.
16+
Date: false
1317
}
1418
},
1519

tests/helpers/start-app.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@ import Application from '../../app';
33
import config from '../../config/environment';
44

55
export default function startApp(attrs) {
6-
let application;
7-
86
let attributes = Ember.merge({}, config.APP);
97
attributes = Ember.merge(attributes, attrs); // use defaults, but you can override;
108

11-
Ember.run(() => {
12-
application = Application.create(attributes);
9+
return Ember.run(() => {
10+
let application = Application.create(attributes);
1311
application.setupForTesting();
1412
application.injectTestHelpers();
13+
return application;
1514
});
16-
17-
return application;
1815
}

tests/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
{{content-for "body"}}
2222
{{content-for "test-body"}}
2323

24-
<script src="{{rootURL}}testem.js" integrity=""></script>
24+
<script src="/testem.js" integrity=""></script>
2525
<script src="{{rootURL}}assets/vendor.js"></script>
2626
<script src="{{rootURL}}assets/test-support.js"></script>
2727
<script src="{{rootURL}}assets/dummy.js"></script>

tests/integration/components/pikaday-input-test.js

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { moduleForComponent, test } from 'ember-qunit';
22
import hbs from 'htmlbars-inline-precompile';
33
import { openDatepicker } from 'ember-pikaday/helpers/pikaday';
44
import Ember from 'ember';
5+
import $ from 'jquery';
56

67
const later = Ember.run.later;
78

tests/integration/components/pikaday-inputless-test.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { moduleForComponent, test } from 'ember-qunit';
22
import hbs from 'htmlbars-inline-precompile';
33
import { openDatepicker } from 'ember-pikaday/helpers/pikaday';
4+
import $ from 'jquery';
45

56
moduleForComponent('pikaday-inputless', 'Integration | Component | pikaday inputless', {
67
integration: true

0 commit comments

Comments
 (0)