Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Novy committed Jul 9, 2018
1 parent b16153e commit 10e0720
Show file tree
Hide file tree
Showing 22 changed files with 3,304 additions and 2,704 deletions.
16 changes: 16 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# unconventional js
/blueprints/*/files/
/vendor/

# compiled output
/dist/
/tmp/

# dependencies
/bower_components/

# misc
/coverage/

# ember-try
/.node_modules.ember-try/
38 changes: 37 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,48 @@ module.exports = {
ecmaVersion: 2017,
sourceType: 'module'
},
plugins: [
'ember'
],
extends: [
'eslint:recommended',
'plugin:ember/recommended',
'plugin:ember-suave/recommended'
],
env: {
browser: true
},
rules: {}
rules: {
},
overrides: [
// node files
{
files: [
'ember-cli-build.js',
'index.js',
'testem.js',
'blueprints/*/index.js',
'config/**/*.js',
'tests/dummy/config/**/*.js'
],
excludedFiles: [
'addon/**',
'addon-test-support/**',
'app/**',
'tests/dummy/app/**'
],
parserOptions: {
sourceType: 'script',
ecmaVersion: 2015
},
env: {
browser: false,
node: true
},
plugins: ['node'],
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
// add your custom rules and overrides for node files here
})
}
]
};
22 changes: 13 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/dist/
/tmp/

# dependencies
/node_modules
/bower_components
/bower_components/
/node_modules/

# misc
/.sass-cache
/connect.lock
/coverage/*
/coverage/
/libpeerconnection.log
npm-debug.log*
testem.log
/docs
/.idea
/npm-debug.log*
/testem.log
/yarn-error.log

# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
/package.json.ember-try
10 changes: 7 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@
.bowerrc
.editorconfig
.ember-cli
.eslintrc.js
.gitignore
.eslintr.js
.watchmanconfig
.travis.yml
bower.json
ember-cli-build.js
testem.js
/.idea
/docs
yarn.lock

# ember-try
.node_modules.ember-try/
bower.json.ember-try
package.json.ember-try
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ env:
# as well as latest stable release (bonus points to beta/canary)
- EMBER_TRY_SCENARIO=ember-lts-2.12
- EMBER_TRY_SCENARIO=ember-lts-2.16
- EMBER_TRY_SCENARIO=ember-lts-2.18
- EMBER_TRY_SCENARIO=ember-release
- EMBER_TRY_SCENARIO=ember-beta
- EMBER_TRY_SCENARIO=ember-canary
Expand All @@ -41,6 +42,7 @@ install:
- yarn install --no-lockfile --non-interactive

script:
- yarn lint:js
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v1.0.1

* Remove unnecessary bower install of Dexie in install blueprint
* Ensure tests wait on import/export to finish
* [INTERNAL] Update dependencies
* [INTERNAL] Update to new test syntax

## v1.0.0

* Update to Dexie 2.x
Expand Down
3 changes: 1 addition & 2 deletions addon/services/indexed-db-configuration.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import Service from '@ember/service';
import { get } from '@ember/object';
import { get, computed } from '@ember/object';
import { typeOf as getTypeOf, isNone } from '@ember/utils';
import { A as array } from '@ember/array';
import computed from 'ember-computed';

/**
* This service should be overwritten to configure IndexedDB.
Expand Down
137 changes: 66 additions & 71 deletions config/ember-try.js
Original file line number Diff line number Diff line change
@@ -1,76 +1,71 @@
/* eslint-env node */
module.exports = {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember-source': '~2.12.0'
}
}
},
{
name: 'ember-lts-2.16',
npm: {
devDependencies: {
'ember-source': '~2.16.0'
}
}
},
{
name: 'ember-release',
bower: {
dependencies: {
'ember': 'components/ember#release'
'use strict';

const getChannelURL = require('ember-source-channel-url');

module.exports = function() {
return Promise.all([
getChannelURL('release'),
getChannelURL('beta'),
getChannelURL('canary')
]).then((urls) => {
return {
useYarn: true,
scenarios: [
{
name: 'ember-lts-2.12',
npm: {
devDependencies: {
'ember-source': '~2.12.0'
}
}
},
resolutions: {
'ember': 'release'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-beta',
bower: {
dependencies: {
'ember': 'components/ember#beta'
{
name: 'ember-lts-2.16',
npm: {
devDependencies: {
'ember-source': '~2.16.0'
}
}
},
resolutions: {
'ember': 'beta'
}
},
npm: {
devDependencies: {
'ember-source': null
}
}
},
{
name: 'ember-canary',
bower: {
dependencies: {
'ember': 'components/ember#canary'
{
name: 'ember-lts-2.18',
npm: {
devDependencies: {
'ember-source': '~2.18.0'
}
}
},
resolutions: {
'ember': 'canary'
}
},
npm: {
devDependencies: {
'ember-source': null
{
name: 'ember-release',
npm: {
devDependencies: {
'ember-source': urls[0]
}
}
},
{
name: 'ember-beta',
npm: {
devDependencies: {
'ember-source': urls[1]
}
}
},
{
name: 'ember-canary',
npm: {
devDependencies: {
'ember-source': urls[2]
}
}
},
{
name: 'ember-default',
npm: {
devDependencies: {}
}
}
}
},
{
name: 'ember-default',
npm: {
devDependencies: {}
}
}
]
]
};
});
};
1 change: 0 additions & 1 deletion config/environment.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env node */
'use strict';

module.exports = function(/* environment, appConfig */) {
Expand Down
5 changes: 1 addition & 4 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
/* eslint-env node */
'use strict';

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');

module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
'ember-cli-babel': {
includePolyfill: true
}
// Add options here
});

/*
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-env node */
'use strict';

const fastbootTransform = require('fastboot-transform');
Expand Down
25 changes: 15 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,42 +17,47 @@
},
"scripts": {
"build": "ember build",
"start": "ember server",
"test": "ember try:each"
"lint:js": "eslint ./*.js addon addon-test-support app blueprints config lib server test-support tests",
"start": "ember serve",
"test": "ember test",
"test:all": "ember try:each"
},
"dependencies": {
"broccoli-funnel": "^2.0.1",
"broccoli-merge-trees": "^2.0.0",
"broccoli-merge-trees": "^3.0.0",
"dexie": "~2.0.1",
"ember-cli-babel": "^6.11.0",
"fastboot-transform": "^0.1.2"
},
"devDependencies": {
"broccoli-asset-rev": "^2.6.0",
"ember-cli": "~2.18.0",
"ember-cli": "~3.2.0",
"ember-cli-app-version": "^3.1.3",
"ember-cli-dependency-checker": "^2.1.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-github-pages": "^0.1.3",
"ember-cli-github-pages": "^0.2.0",
"ember-cli-htmlbars": "^2.0.3",
"ember-cli-htmlbars-inline-precompile": "^1.0.2",
"ember-cli-inject-live-reload": "^1.7.0",
"ember-cli-qunit": "^4.2.1",
"ember-cli-release": "^1.0.0-beta.2",
"ember-cli-shims": "~1.2.0",
"ember-cli-test-loader": "^2.2.0",
"ember-cli-uglify": "^2.0.0",
"ember-cli-yuidoc": "^0.8.8",
"ember-data": "^2.18.0",
"ember-data": "^3.2.0",
"ember-disable-prototype-extensions": "^1.1.3",
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^1.0.0",
"ember-native-dom-helpers": "~0.5.10",
"ember-maybe-import-regenerator": "^0.1.6",
"ember-resolver": "^4.5.0",
"ember-source": "^2.18.0",
"ember-source": "^3.2.2",
"ember-source-channel-url": "^1.1.0",
"ember-try": "^0.2.23",
"eslint-plugin-ember": "^5.2.0",
"eslint-plugin-ember-suave": "^1.0.0",
"eslint-plugin-node": "^6.0.1",
"loader.js": "^4.6.0",
"yuidoc-ember-theme": "^1.4.0"
"yuidoc-ember-theme": "^2.0.1"
},
"engines": {
"node": ">= 6"
Expand Down
Loading

0 comments on commit 10e0720

Please sign in to comment.