diff --git a/lib/core-generators/new/after.js b/lib/core-generators/new/after.js index 5f6bb97d..dee9c469 100644 --- a/lib/core-generators/new/after.js +++ b/lib/core-generators/new/after.js @@ -72,7 +72,7 @@ module.exports = function afterGenerate(scope, cb) { // :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: // MAYBE just install the relevant deps. It's a lot simpler this way. - // (Note that we can prby just omit `sails`, since it'll automatically use the global version.) + // (Note that we can probably just omit `sails`, since it'll automatically use the global version.) // :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: cb.log.info('Installing dependencies...'); console.log(chalk.gray('Press CTRL+C to cancel.')); diff --git a/lib/core-generators/new/before.js b/lib/core-generators/new/before.js index ca15f53c..378deed4 100644 --- a/lib/core-generators/new/before.js +++ b/lib/core-generators/new/before.js @@ -75,7 +75,7 @@ module.exports = function before (scope, done) { // ' 3. '+chalk.bold.blue('"Pure" API')+' · Back-end only (no views, no assets)\n'+ // ' 3. '+chalk.bold.blue('Pure API')+' · Back-end only (no views, no assets)\n'+ // ' 3. '+chalk.bold.blue('RESTful API')+' · Back-end only (no views, no assets)\n'+ - // ' 4. '+chalk.bold.red ('Minimalist')+' · Bare-bones Node.js server (no ORM, no nothin\')\n' + // ' 4. '+chalk.bold.red ('Minimalist')+' · Bare-bones Node.js server (no ORM, no nothing\')\n' // ' 8. '+chalk.bold.gray('Customize...') // ' 3. '+chalk.gray('What should I choose?') // ' 9. '+chalk.bold.gray('I\'m unsure') diff --git a/lib/core-generators/new/templates/api/controllers/entrance/signup.js.template b/lib/core-generators/new/templates/api/controllers/entrance/signup.js.template index a5df774f..6bf71414 100644 --- a/lib/core-generators/new/templates/api/controllers/entrance/signup.js.template +++ b/lib/core-generators/new/templates/api/controllers/entrance/signup.js.template @@ -86,7 +86,7 @@ the account verification message.)`, .intercept({name: 'UsageError'}, 'invalid') .fetch(); - // If billing feaures are enabled, save a new customer entry in the Stripe API. + // If billing features are enabled, save a new customer entry in the Stripe API. // Then persist the Stripe customer id in the database. if (sails.config.custom.enableBillingFeatures) { let stripeCustomerId = await sails.helpers.stripe.saveBillingInfo.with({ diff --git a/lib/core-generators/new/templates/api/helpers/broadcast-session-change.js.template b/lib/core-generators/new/templates/api/helpers/broadcast-session-change.js.template index f4aa836b..93b466d8 100644 --- a/lib/core-generators/new/templates/api/helpers/broadcast-session-change.js.template +++ b/lib/core-generators/new/templates/api/helpers/broadcast-session-change.js.template @@ -28,7 +28,7 @@ module.exports = { fn: async function ({ req }) { - // If there's no sessionID, we don't need to broadcase a message about the old session. + // If there's no sessionID, we don't need to broadcast a message about the old session. if(!req.sessionID) { return; } diff --git a/lib/core-generators/new/templates/api/models/User.js.template b/lib/core-generators/new/templates/api/models/User.js.template index 983627db..2f39701e 100644 --- a/lib/core-generators/new/templates/api/models/User.js.template +++ b/lib/core-generators/new/templates/api/models/User.js.template @@ -109,7 +109,7 @@ It just means they have a customer entry in Stripe, which might or might not hav type: 'boolean', description: 'Whether this user has a default billing card hooked up as their payment method.', extendedDescription: -`More specifically, this indcates whether this user record's linked customer entry in Stripe has +`More specifically, this indicates whether this user record's linked customer entry in Stripe has a default payment source (i.e. credit card). Note that a user have a \`stripeCustomerId\` without necessarily having a billing card.` }, diff --git a/lib/core-generators/new/templates/assets/dependencies/bootstrap-4/bootstrap-4.bundle.js b/lib/core-generators/new/templates/assets/dependencies/bootstrap-4/bootstrap-4.bundle.js index e8b832da..ec0e3748 100644 --- a/lib/core-generators/new/templates/assets/dependencies/bootstrap-4/bootstrap-4.bundle.js +++ b/lib/core-generators/new/templates/assets/dependencies/bootstrap-4/bootstrap-4.bundle.js @@ -2684,7 +2684,7 @@ styles[sideB] = 0; styles.willChange = 'transform'; } else { - // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties + // otherwise, we use the standard `top`, `left`, `bottom` and `right` properties var invertTop = sideA === 'bottom' ? -1 : 1; var invertLeft = sideB === 'right' ? -1 : 1; styles[sideA] = top * invertTop; @@ -2783,7 +2783,7 @@ // // extends keepTogether behavior making sure the popper and its - // reference have enough pixels in conjuction + // reference have enough pixels in conjunction // // top/left side @@ -3099,7 +3099,7 @@ } // If divider is found, we divide the list of values and operands to divide - // them by ofset X and Y. + // them by offset X and Y. var splitRegex = /\s*,\s*|\s+/; var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments]; @@ -3488,8 +3488,8 @@ }, /** - * Modifier used to make sure the reference and its popper stay near eachothers - * without leaving any gap between the two. Expecially useful when the arrow is + * Modifier used to make sure the reference and its popper stay near each others + * without leaving any gap between the two. Especially useful when the arrow is * enabled and you want to assure it to point to its reference element. * It cares only about the first axis, you can still have poppers with margin * between the popper and its reference element. @@ -3509,7 +3509,7 @@ * This modifier is used to move the `arrowElement` of the popper to make * sure it is positioned between the reference element and its popper element. * It will read the outer size of the `arrowElement` node to detect how many - * pixels of conjuction are needed. + * pixels of conjunction are needed. * * It has no effect if no `arrowElement` is provided. * @memberof modifiers @@ -3677,7 +3677,7 @@ }; /** - * The `dataObject` is an object containing all the informations used by Popper.js + * The `dataObject` is an object containing all the information used by Popper.js * this object get passed to modifiers and to the `onCreate` and `onUpdate` callbacks. * @name dataObject * @property {Object} data.instance The Popper.js instance @@ -3697,7 +3697,7 @@ /** * Default options provided to Popper.js constructor.
- * These can be overriden using the `options` argument of Popper.js.
+ * These can be overridden using the `options` argument of Popper.js.
* To override an option, simply pass as 3rd argument an object with the same * structure of this object, example: * ``` diff --git a/lib/core-generators/new/templates/assets/dependencies/lodash.js b/lib/core-generators/new/templates/assets/dependencies/lodash.js index e9c36347..0a51fd89 100644 --- a/lib/core-generators/new/templates/assets/dependencies/lodash.js +++ b/lib/core-generators/new/templates/assets/dependencies/lodash.js @@ -992,7 +992,7 @@ * @private * @param {*} value The value to wrap. * @param {boolean} [chainAll] Enable chaining for all wrapper methods. - * @param {Array} [actions=[]] Actions to peform to resolve the unwrapped value. + * @param {Array} [actions=[]] Actions to perform to resolve the unwrapped value. */ function LodashWrapper(value, chainAll, actions) { this.__wrapped__ = value; @@ -2375,7 +2375,7 @@ * * @private * @param {Object} object The object to inspect. - * @param {Array} matchData The propery names, values, and compare flags to match. + * @param {Array} matchData The property names, values, and compare flags to match. * @param {Function} [customizer] The function to customize comparing objects. * @returns {boolean} Returns `true` if `object` is a match, else `false`. */ @@ -2912,7 +2912,7 @@ * * @private * @param {*} value The unwrapped value. - * @param {Array} actions Actions to peform to resolve the unwrapped value. + * @param {Array} actions Actions to perform to resolve the unwrapped value. * @returns {*} Returns the resolved value. */ function baseWrapperValue(value, actions) { @@ -4075,7 +4075,7 @@ var getLength = baseProperty('length'); /** - * Gets the propery names, values, and compare flags of `object`. + * Gets the property names, values, and compare flags of `object`. * * @private * @param {Object} object The object to query. @@ -4663,8 +4663,8 @@ } /** - * Creates an array with all falsey values removed. The values `false`, `null`, - * `0`, `""`, `undefined`, and `NaN` are falsey. + * Creates an array with all falsy values removed. The values `false`, `null`, + * `0`, `""`, `undefined`, and `NaN` are falsy. * * @static * @memberOf _ @@ -4786,7 +4786,7 @@ /** * Creates a slice of `array` excluding elements dropped from the end. - * Elements are dropped until `predicate` returns falsey. The predicate is + * Elements are dropped until `predicate` returns falsy. The predicate is * bound to `thisArg` and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` @@ -4841,7 +4841,7 @@ /** * Creates a slice of `array` excluding elements dropped from the beginning. - * Elements are dropped until `predicate` returns falsey. The predicate is + * Elements are dropped until `predicate` returns falsy. The predicate is * bound to `thisArg` and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` @@ -5610,7 +5610,7 @@ /** * Creates a slice of `array` with elements taken from the end. Elements are - * taken until `predicate` returns falsey. The predicate is bound to `thisArg` + * taken until `predicate` returns falsy. The predicate is bound to `thisArg` * and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` @@ -5665,7 +5665,7 @@ /** * Creates a slice of `array` with elements taken from the beginning. Elements - * are taken until `predicate` returns falsey. The predicate is bound to + * are taken until `predicate` returns falsy. The predicate is bound to * `thisArg` and invoked with three arguments: (value, index, array). * * If a property name is provided for `predicate` the created `_.property` @@ -5740,7 +5740,7 @@ /** * Creates a duplicate-free version of an array, using * [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) - * for equality comparisons, in which only the first occurence of each element + * for equality comparisons, in which only the first occurrence of each element * is kept. Providing `true` for `isSorted` performs a faster search algorithm * for sorted arrays. If an iteratee function is provided it's invoked for * each element in the array to generate the criterion by which uniqueness @@ -6894,7 +6894,7 @@ /** * Creates an array of elements split into two groups, the first of which * contains elements `predicate` returns truthy for, while the second of which - * contains elements `predicate` returns falsey for. The predicate is bound + * contains elements `predicate` returns falsy for. The predicate is bound * to `thisArg` and invoked with three arguments: (value, index|key, collection). * * If a property name is provided for `predicate` the created `_.property` @@ -11889,7 +11889,7 @@ var floor = createRound('floor'); /** - * Gets the maximum value of `collection`. If `collection` is empty or falsey + * Gets the maximum value of `collection`. If `collection` is empty or falsy * `-Infinity` is returned. If an iteratee function is provided it's invoked * for each value in `collection` to generate the criterion by which the value * is ranked. The `iteratee` is bound to `thisArg` and invoked with three @@ -11938,7 +11938,7 @@ var max = createExtremum(gt, NEGATIVE_INFINITY); /** - * Gets the minimum value of `collection`. If `collection` is empty or falsey + * Gets the minimum value of `collection`. If `collection` is empty or falsy * `Infinity` is returned. If an iteratee function is provided it's invoked * for each value in `collection` to generate the criterion by which the value * is ranked. The `iteratee` is bound to `thisArg` and invoked with three diff --git a/lib/core-generators/new/templates/assets/dependencies/moment.js b/lib/core-generators/new/templates/assets/dependencies/moment.js index 9428c66b..4fe6819c 100644 --- a/lib/core-generators/new/templates/assets/dependencies/moment.js +++ b/lib/core-generators/new/templates/assets/dependencies/moment.js @@ -3657,7 +3657,7 @@ addFormatToken('D', ['DD', 2], 'Do', 'date'); addUnitAlias('date', 'D'); -// PRIOROITY +// PRIORITY addUnitPriority('date', 9); // PARSING diff --git a/lib/core-generators/new/templates/assets/dependencies/vue-router.js b/lib/core-generators/new/templates/assets/dependencies/vue-router.js index 56c53972..905227fc 100644 --- a/lib/core-generators/new/templates/assets/dependencies/vue-router.js +++ b/lib/core-generators/new/templates/assets/dependencies/vue-router.js @@ -93,7 +93,7 @@ var View = { } } - // also regiseter instance in prepatch hook + // also register instance in prepatch hook // in case the same component instance is reused across different routes ;(data.hook || (data.hook = {})).prepatch = function (_, vnode) { matched.instances[name] = vnode.componentInstance; diff --git a/lib/core-generators/new/templates/assets/eslintrc-override.template b/lib/core-generators/new/templates/assets/eslintrc-override.template index 3b13eaa3..39773772 100644 --- a/lib/core-generators/new/templates/assets/eslintrc-override.template +++ b/lib/core-generators/new/templates/assets/eslintrc-override.template @@ -52,7 +52,7 @@ // ...etc. // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // Make sure backend globals aren't indadvertently tolerated in our client-side JS: + // Make sure backend globals aren't inadvertently tolerated in our client-side JS: // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "sails": false<% if (!caviar && !_.contains(without,'lodash')) { %>, diff --git a/lib/core-generators/new/templates/assets/js/components/ajax-form.component.js b/lib/core-generators/new/templates/assets/js/components/ajax-form.component.js index 8cc11d8f..06acd325 100644 --- a/lib/core-generators/new/templates/assets/js/components/ajax-form.component.js +++ b/lib/core-generators/new/templates/assets/js/components/ajax-form.component.js @@ -177,7 +177,7 @@ parasails.registerComponent('ajaxForm', { throw new Error('Invalid data returned from custom form parsing logic. (Should return a dictionary of argins, like `{}`.)'); }//• } else if (this.formData) { - // Or use the simpler, built-in absorbtion strategy. + // Or use the simpler, built-in absorption strategy. // > This uses the provided form data as our argins, verbatim. Then it runs // > built-in client-side validation, if configured to do so. argins = this.formData; @@ -216,7 +216,7 @@ parasails.registerComponent('ajaxForm', { // is "present" -- i.e. some value other than `null`, `undefined`, // or `''` (empty string). // - // > Trying to figure out how to handle a conditionally-requiured + // > Trying to figure out how to handle a conditionally-required // > field that uses one of these validations? For example, a // > "Confirm email" re-entry field for an optional email address? // > Just make `required` validation rule dynamic, and everything diff --git a/lib/core-generators/new/templates/config/env/production.js.template b/lib/core-generators/new/templates/config/env/production.js.template index f4be406c..e31fb3ce 100644 --- a/lib/core-generators/new/templates/config/env/production.js.template +++ b/lib/core-generators/new/templates/config/env/production.js.template @@ -97,7 +97,7 @@ module.exports = { * If, in production, this app has access to physical-layer CASCADE * * constraints (e.g. PostgreSQL or MySQL), then set those up in the * * database and uncomment this to disable Waterline's `cascadeOnDestroy` * - * polyfill. (Otherwise, if you are using a databse like Mongo, you might * + * polyfill. (Otherwise, if you are using a database like Mongo, you might * * choose to keep this enabled.) * * * ***************************************************************************/ diff --git a/lib/core-generators/new/templates/scripts/rebuild-cloud-sdk.js b/lib/core-generators/new/templates/scripts/rebuild-cloud-sdk.js index ce678991..7e68018e 100644 --- a/lib/core-generators/new/templates/scripts/rebuild-cloud-sdk.js +++ b/lib/core-generators/new/templates/scripts/rebuild-cloud-sdk.js @@ -114,7 +114,7 @@ Cloud.setup({ `\n` }); - // Also, if a `test/` folder exists, set up a barebones bounce of this data + // Also, if a `test/` folder exists, set up a bare-bones bounce of this data // as a JSON file inside of it, for testing purposes: var hasTestFolder = await sails.helpers.fs.exists(path.resolve(sails.config.appPath, 'test/')); if (hasTestFolder) { diff --git a/lib/core-generators/new/templates/tasks/config/hash.js b/lib/core-generators/new/templates/tasks/config/hash.js index 41435ac8..bf5137ae 100644 --- a/lib/core-generators/new/templates/tasks/config/hash.js +++ b/lib/core-generators/new/templates/tasks/config/hash.js @@ -20,7 +20,7 @@ module.exports = function(grunt) { hashLength: 8, hashFunction: function(source, encoding){ if (!source || !encoding) { - throw new Error('Consistency violation: Cannot compute unique hash for production .css/.js cache-busting suffix, because `source` and/or `encoding` are falsey-- but they should be truthy strings! Here they are, respectively:\nsource: '+require('util').inspect(source, {depth:null})+'\nencoding: '+require('util').inspect(encoding, {depth:null})); + throw new Error('Consistency violation: Cannot compute unique hash for production .css/.js cache-busting suffix, because `source` and/or `encoding` are falsy-- but they should be truthy strings! Here they are, respectively:\nsource: '+require('util').inspect(source, {depth:null})+'\nencoding: '+require('util').inspect(encoding, {depth:null})); } return require('crypto').createHash('sha1').update(source, encoding).digest('hex'); }