Skip to content

Commit

Permalink
Upgrade ember-cli, linting deps, etc (#288)
Browse files Browse the repository at this point in the history
Upgrade ember-cli, linting deps, etc
  • Loading branch information
rwjblue committed Sep 18, 2019
2 parents 853ba3d + edd278f commit 5adbc7f
Show file tree
Hide file tree
Showing 4 changed files with 2,427 additions and 2,424 deletions.
15 changes: 1 addition & 14 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ const Funnel = require('broccoli-funnel');
const MergeTrees = require('broccoli-merge-trees');
const Babel = require('broccoli-babel-transpiler');
const Concat = require('broccoli-concat');
const TSLint = require('broccoli-tslinter');
const typescript = require('broccoli-typescript-compiler').default;

function findLib(name, libPath) {
Expand Down Expand Up @@ -68,23 +67,11 @@ module.exports = function() {
new Funnel(cjs, { srcDir: 'router', destDir: 'cjs' }),
];

let lintedLib = new TSLint('lib/router', {
configuration: 'tslint.json',
});

let lintedTests = new TSLint('tests', {
configuration: 'tslint.json',
});

let tsTests = typescript('tests');

let testAMD = toAMD(tsTests);

let tests = new MergeTrees([testAMD, lintedLib, lintedTests], {
overwrite: true,
});

let concattedTests = new Concat(tests, {
let concattedTests = new Concat(testAMD, {
inputFiles: ['**/*.js'],
outputFile: 'tests/tests.js',
});
Expand Down
54 changes: 29 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "router_js",
"version": "6.2.5",
"description":
"A lightweight JavaScript library is built on top of route-recognizer and rsvp.js to provide an API for handling routes",
"keywords": ["route-recognizer", "router", "rsvp"],
"description": "A lightweight JavaScript library is built on top of route-recognizer and rsvp.js to provide an API for handling routes",
"keywords": [
"route-recognizer",
"router",
"rsvp"
],
"bugs": {
"url": "https://github.com/tildeio/router.js/issues"
},
Expand All @@ -18,33 +21,34 @@
"scripts": {
"prepublish": "ember build",
"problems": "tsc -p tsconfig.json --noEmit",
"pretest": "tslint -c tslint.json --project tsconfig.json",
"start": "ember server",
"test": "ember test"
},
"files": ["dist/cjs", "dist/modules"],
"dependencies": {
"@types/node": "^10.5.5"
},
"files": [
"dist/cjs",
"dist/modules"
],
"dependencies": {},
"devDependencies": {
"@types/qunit": "^2.5.2",
"babel-preset-env": "^1.6.1",
"backburner.js": "^2.1.0",
"@types/node": "^12.7.5",
"@types/qunit": "^2.9.0",
"babel-preset-env": "^1.7.0",
"backburner.js": "^2.6.0",
"broccoli-babel-transpiler": "^6.1.2",
"broccoli-concat": "^3.2.2",
"broccoli-funnel": "^2.0.1",
"broccoli-merge-trees": "^2.0.0",
"broccoli-tslinter": "^3.0.1",
"broccoli-typescript-compiler": "^4.0.1",
"ember-cli": "2.18.1",
"loader.js": "^4.6.0",
"prettier": "1.10.2",
"qunit": "^2.5.0",
"broccoli-concat": "^3.7.4",
"broccoli-funnel": "^2.0.2",
"broccoli-merge-trees": "^3.0.2",
"broccoli-typescript-compiler": "~4.0.1",
"ember-cli": "~3.9.0",
"loader.js": "^4.7.0",
"prettier": "1.18.2",
"qunit": "^2.9.2",
"route-recognizer": "^0.3.4",
"rsvp": "^4.8.1",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.14.0",
"tslint-plugin-prettier": "^1.3.0",
"typescript": "~3.0.1"
"rsvp": "^4.8.5",
"tslint": "^5.20.0",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1"
},
"peerDependencies": {
"route-recognizer": "^0.3.4",
Expand All @@ -54,4 +58,4 @@
"node": "^4.5 || 6.* || >= 8.*"
},
"namespace": "Router"
}
}
5 changes: 3 additions & 2 deletions tests/router_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4207,8 +4207,9 @@ scenarios.forEach(function(scenario) {
test('transitions have a .promise property', function(assert) {
assert.expect(2);

router.handleURL('/index').promise!
.then(function() {
router
.handleURL('/index')
.promise!.then(function() {
let promise = router.transitionTo('about').abort().promise;
assert.ok(promise, 'promise exists on aborted transitions');
return promise;
Expand Down
Loading

0 comments on commit 5adbc7f

Please sign in to comment.