From 74a9f4da930df2a665d3389cfab298ab67037849 Mon Sep 17 00:00:00 2001 From: Andreas Solleder Date: Tue, 30 Jul 2019 15:48:18 +0200 Subject: [PATCH] fix typos :) --- docs/error-propagation.md | 2 +- docs/experiments.md | 2 +- lib/models/addon.js | 2 +- lib/models/builder.js | 2 +- lib/models/hardware-info.js | 4 ++-- lib/models/watcher.js | 2 +- lib/tasks/npm-task.js | 4 ++-- .../models/package-info-cache/package-info-cache-test.js | 6 +++--- tests/unit/utilities/ember-app-utils-test.js | 6 +++--- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/error-propagation.md b/docs/error-propagation.md index d34b2db2e8..7850d6eaa9 100644 --- a/docs/error-propagation.md +++ b/docs/error-propagation.md @@ -19,7 +19,7 @@ Here's what is going to happen: + `message` + `stack` -Error contains information of where in the file error occured and what kind of error it was. +Error contains information of where in the file error occurred and what kind of error it was. + `ember-cli-htmlbars` will catch the error from `ember-template-compiler`. diff --git a/docs/experiments.md b/docs/experiments.md index 05e3cf0fe4..5a993195f7 100644 --- a/docs/experiments.md +++ b/docs/experiments.md @@ -28,7 +28,7 @@ An experiment can be summarized into three different states. ## Development -During active developement of a feature, it can be enabled by setting the experiments +During active development of a feature, it can be enabled by setting the experiments related environment variable (`'EMBER_CLI_' + EXPERIMENT_NAME`). For example, to enable the `CONFIG_CACHING` experiment mentioned in the example diff --git a/lib/models/addon.js b/lib/models/addon.js index c4bf0fa2b4..5c084a9922 100644 --- a/lib/models/addon.js +++ b/lib/models/addon.js @@ -1563,7 +1563,7 @@ let addonProto = { */ /** - Allows addons to define a custom transfrom function that other addons and app can use when using `app.import`. + Allows addons to define a custom transform function that other addons and app can use when using `app.import`. This function is not implemented by default diff --git a/lib/models/builder.js b/lib/models/builder.js index 1324b8f933..7d2a23201f 100644 --- a/lib/models/builder.js +++ b/lib/models/builder.js @@ -67,7 +67,7 @@ class Builder extends CoreObject { let broccoli = require('broccoli'); - // If not using system temp dir, compatability mode with broccoli-builder, tmp in root + // If not using system temp dir, compatibility mode with broccoli-builder, tmp in root let tmpDir; if (!isExperimentEnabled('SYSTEM_TEMP')) { tmpDir = `${this.project.root}/tmp`; diff --git a/lib/models/hardware-info.js b/lib/models/hardware-info.js index 097afb595d..a2338fc32c 100644 --- a/lib/models/hardware-info.js +++ b/lib/models/hardware-info.js @@ -293,7 +293,7 @@ const hwinfo = { }, /** - * Determines the total amount of memory avilable to the host, as from + * Determines the total amount of memory available to the host, as from * `os.totalmem`. * * @method memoryTotal @@ -327,7 +327,7 @@ const hwinfo = { }, /** - * Determines the average processor load accross the system. This is + * Determines the average processor load across the system. This is * expressed as a fractional number between 0 and the number of logical * processors. * diff --git a/lib/models/watcher.js b/lib/models/watcher.js index a922098c06..9ce6bab773 100644 --- a/lib/models/watcher.js +++ b/lib/models/watcher.js @@ -58,7 +58,7 @@ module.exports = class Watcher extends CoreObject { } setupBroccoliChangeEvent() { - // This is to keep backwards compatiblity with broccoli-sane-watcher. + // This is to keep backwards compatibility with broccoli-sane-watcher. // https://github.com/ember-cli/broccoli-sane-watcher/blob/48860/index.js#L158 if (this.verbose) { this.watcher.on('change', (event, filePath) => { diff --git a/lib/tasks/npm-task.js b/lib/tasks/npm-task.js index 29f2d0033f..1dbce5414d 100644 --- a/lib/tasks/npm-task.js +++ b/lib/tasks/npm-task.js @@ -165,7 +165,7 @@ class NpmTask extends Task { let args = this.toNpmArgs(this.command, options); promise = this.npm(args); - // as of 2018-10-09 npm 5 and 6 _break_ the heirarchy of `node_modules` + // as of 2018-10-09 npm 5 and 6 _break_ the hierarchy of `node_modules` // after a `npm install foo` (deletes files/folders other than // what was directly installed) in some circumstances, see: // @@ -174,7 +174,7 @@ class NpmTask extends Task { // // this ensures that we run a full `npm install` **after** any `npm // install foo` runs to ensure that we have a fully functional - // node_modules heirarchy + // node_modules hierarchy if (result.npmVersion && semver.gte(result.npmVersion, '5.0.0')) { promise = promise.then(() => this.npm(['install'])); } diff --git a/tests/unit/models/package-info-cache/package-info-cache-test.js b/tests/unit/models/package-info-cache/package-info-cache-test.js index 5648d608b6..5f58776ce2 100644 --- a/tests/unit/models/package-info-cache/package-info-cache-test.js +++ b/tests/unit/models/package-info-cache/package-info-cache-test.js @@ -108,7 +108,7 @@ describe('models/package-info-cache/package-info-cache-test.js', function() { expect(errorArray.length).to.equal(1); }); - // TODO: the input to this test is poluted by other tests: https://github.com/ember-cli/ember-cli/issues/7981 + // TODO: the input to this test is polluted by other tests: https://github.com/ember-cli/ember-cli/issues/7981 it.skip('shows projectPackageInfo error is "3 dependencies missing"', function() { let errorArray = projectPackageInfo.errors.getErrors(); let error = errorArray[0]; @@ -124,7 +124,7 @@ describe('models/package-info-cache/package-info-cache-test.js', function() { expect(dependencyPackages['something-else']).to.exist; }); - // TODO: the input to this test is poluted by other tests: https://github.com/ember-cli/ember-cli/issues/7981 + // TODO: the input to this test is polluted by other tests: https://github.com/ember-cli/ember-cli/issues/7981 it.skip('shows projectPackageInfo has 8 devDependencyPackages', function() { let devDependencyPackages = projectPackageInfo.devDependencyPackages; expect(devDependencyPackages).to.exist; @@ -165,7 +165,7 @@ describe('models/package-info-cache/package-info-cache-test.js', function() { expect(internalAddons.length).to.equal(7); }); - // TODO: the input to this test is poluted by other tests: https://github.com/ember-cli/ember-cli/issues/7981 + // TODO: the input to this test is polluted by other tests: https://github.com/ember-cli/ember-cli/issues/7981 it.skip('shows projectPackageInfo has 9 node-module entries', function() { let nodeModules = projectPackageInfo.nodeModules; expect(nodeModules).to.exist; diff --git a/tests/unit/utilities/ember-app-utils-test.js b/tests/unit/utilities/ember-app-utils-test.js index 53749f5ee9..50c8c3e861 100644 --- a/tests/unit/utilities/ember-app-utils-test.js +++ b/tests/unit/utilities/ember-app-utils-test.js @@ -191,7 +191,7 @@ describe('ember-app-utils', function() { it('returns application bootstrap snippet by default', function() { let output = contentFor(config, defaultMatch, 'app-boot', defaultOptions); - expect(output, 'includes applicaton bootstrap snippet').to.contain( + expect(output, 'includes application bootstrap snippet').to.contain( 'require("cool-foo/app")["default"].create({});' ); }); @@ -200,7 +200,7 @@ describe('ember-app-utils', function() { let options = Object.assign({}, defaultOptions, { isModuleUnification: true }); let output = contentFor(config, defaultMatch, 'app-boot', options); - expect(output, 'includes applicaton bootstrap snippet').to.contain( + expect(output, 'includes application bootstrap snippet').to.contain( 'require("cool-foo/src/main")["default"].create({});' ); }); @@ -209,7 +209,7 @@ describe('ember-app-utils', function() { let options = Object.assign({}, defaultOptions, { autoRun: false }); let output = contentFor(config, defaultMatch, 'app-boot', options); - expect(output, 'includes applicaton bootstrap snippet').to.equal(''); + expect(output, 'includes application bootstrap snippet').to.equal(''); }); });