Skip to content

[Fix] common misspelling errors #5694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1675,7 +1675,7 @@ Most of the following new features and bugfixes also applies to v3.8.0
* [#1531](https://github.com/vuejs/vue-cli/pull/1531) support PNPM as a package manager ([@robertkruis](https://github.com/robertkruis))
* [#3790](https://github.com/vuejs/vue-cli/pull/3790) fix PNPM compatibility issues during scaffolding ([@sodatea](https://github.com/sodatea))
* `@vue/cli-plugin-eslint`, `@vue/cli-service`
* [#3572](https://github.com/vuejs/vue-cli/pull/3572) add 3rd option to `lintOnSave` to support 'default' behaviour (Closes [#3552](https://github.com/vuejs/vue-cli/issues/3552)) ([@LinusBorg](https://github.com/LinusBorg))
* [#3572](https://github.com/vuejs/vue-cli/pull/3572) add 3rd option to `lintOnSave` to support 'default' behavior (Closes [#3552](https://github.com/vuejs/vue-cli/issues/3552)) ([@LinusBorg](https://github.com/LinusBorg))
* `@vue/cli-plugin-unit-jest`
* [#3589](https://github.com/vuejs/vue-cli/pull/3589) add jest typeahead plugin ([@sodatea](https://github.com/sodatea))

@@ -3272,7 +3272,7 @@ will need to explicitly install `typescript` in your project.
* **ui:** improved remote preset checking ([0ba5e09](https://github.com/vuejs/vue-cli/commit/0ba5e09))
* **ui:** list item hover background more subtle ([a5bb260](https://github.com/vuejs/vue-cli/commit/a5bb260))
* **ui:** more spacing in status bar ([80a847f](https://github.com/vuejs/vue-cli/commit/80a847f))
* **ui:** project create detials: bigger grid gap ([cfed833](https://github.com/vuejs/vue-cli/commit/cfed833))
* **ui:** project create details: bigger grid gap ([cfed833](https://github.com/vuejs/vue-cli/commit/cfed833))
* **ui:** project creation not reset ([9efdfaf](https://github.com/vuejs/vue-cli/commit/9efdfaf))
* **ui:** remove console.log ([04d76a2](https://github.com/vuejs/vue-cli/commit/04d76a2))
* **ui:** reset webpack.config.js service on correct CWD, closes [#1555](https://github.com/vuejs/vue-cli/issues/1555) ([dc2f8e8](https://github.com/vuejs/vue-cli/commit/dc2f8e8))
@@ -4162,7 +4162,7 @@ sepcify the default mode for a registered command, the plugins should expose
* **ui:** PluginAdd tab check ([ca01d95](https://github.com/vuejs/vue-cli/commit/ca01d95))
* **ui:** pormpts remove result in answers when disabled ([a29a3b4](https://github.com/vuejs/vue-cli/commit/a29a3b4))
* **ui:** stderr new lines + selected task status color ([b949406](https://github.com/vuejs/vue-cli/commit/b949406))
* **ui:** progress handler should not throw error (casuing process to exit) ([3d4d8f0](https://github.com/vuejs/vue-cli/commit/3d4d8f0))
* **ui:** progress handler should not throw error (causing process to exit) ([3d4d8f0](https://github.com/vuejs/vue-cli/commit/3d4d8f0))
* **ui:** ProjectNav padding ([4fd8885](https://github.com/vuejs/vue-cli/commit/4fd8885))
* **ui:** ProjectNavButton tooltip delay ([131cc46](https://github.com/vuejs/vue-cli/commit/131cc46))
* **ui:** prompt margins ([100a12e](https://github.com/vuejs/vue-cli/commit/100a12e))
@@ -4238,7 +4238,7 @@ sepcify the default mode for a registered command, the plugins should expose

#### Bug Fixes

* **ui:** deps + dahsboard plugin ([a628b43](https://github.com/vuejs/vue-cli/commit/a628b43))
* **ui:** deps + dashboard plugin ([a628b43](https://github.com/vuejs/vue-cli/commit/a628b43))
* **ui:** display 0 instead of NaN ([21d3e94](https://github.com/vuejs/vue-cli/commit/21d3e94))
#### Features

2 changes: 1 addition & 1 deletion docs/config/README.md
Original file line number Diff line number Diff line change
@@ -257,7 +257,7 @@ In v3 this means the opposite of `css.requireModuleExtension`.
By default, only files that ends in `*.module.[ext]` are treated as CSS modules. Setting this to `false` will allow you to drop `.module` in the filenames and treat all `*.(css|scss|sass|less|styl(us)?)` files as CSS modules.

::: tip
If you have customized CSS Modules configurations in `css.loaderOptions.css`, then the `css.requireModuleExtension` field must be explictly configured to `true` or `false`, otherwise we can't be sure whether you want to apply these options to all CSS files or not.
If you have customized CSS Modules configurations in `css.loaderOptions.css`, then the `css.requireModuleExtension` field must be explicitly configured to `true` or `false`, otherwise we can't be sure whether you want to apply these options to all CSS files or not.
:::

See also: [Working with CSS > CSS Modules](../guide/css.md#css-modules)
2 changes: 1 addition & 1 deletion docs/dev-guide/ui-localization.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

## Translate the standard UI

To make collaboration and synchronisation easier, the English source locale from the `dev` branch is automatically imported to [Transifex](https://www.transifex.com/vuejs/vue-cli/dashboard/), a platform for collaborative translation.
To make collaboration and synchronization easier, the English source locale from the `dev` branch is automatically imported to [Transifex](https://www.transifex.com/vuejs/vue-cli/dashboard/), a platform for collaborative translation.

For existing languages, you can [sign up as a translator](https://www.transifex.com/vuejs/vue-cli/dashboard/).
For new languages, you can [request the new language](https://www.transifex.com/vuejs/vue-cli/dashboard/) after signing up.
2 changes: 1 addition & 1 deletion docs/guide/deployment.md
Original file line number Diff line number Diff line change
@@ -130,7 +130,7 @@ pages: # the job must be named pages
- npm run build
- mv public public-vue # GitLab Pages hooks on the public folder
- mv dist public # rename the dist folder (result of npm run build)
# optionally, you can activate gzip support wih the following line:
# optionally, you can activate gzip support with the following line:
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|js\|css\)$' -exec gzip -f -k {} \;
artifacts:
paths:
2 changes: 1 addition & 1 deletion packages/@vue/babel-preset-app/index.js
Original file line number Diff line number Diff line change
@@ -95,7 +95,7 @@ module.exports = (context, options = {}) => {
const plugins = []
const defaultEntryFiles = JSON.parse(process.env.VUE_CLI_ENTRY_FILES || '[]')

// Though in the vue-cli repo, we only use the two envrionment variables
// Though in the vue-cli repo, we only use the two environment variables
// for tests, users may have relied on them for some features,
// dropping them may break some projects.
// So in the following blocks we don't directly test the `NODE_ENV`.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* This file is copied during the test inside the project folder and used to inpsect the results
* This file is copied during the test inside the project folder and used to inspect the results
*/
const fs = require('fs')

4 changes: 2 additions & 2 deletions packages/@vue/cli-plugin-eslint/generator/index.js
Original file line number Diff line number Diff line change
@@ -43,10 +43,10 @@ module.exports = (api, { config, lintOn = [] }, _, invoking) => {
pkg.gitHooks = {
'pre-commit': 'lint-staged'
}
const extentions = require('../eslintOptions').extensions(api)
const extensions = require('../eslintOptions').extensions(api)
.map(ext => ext.replace(/^\./, '')) // remove the leading `.`
pkg['lint-staged'] = {
[`*.{${extentions.join(',')}}`]: ['vue-cli-service lint', 'git add']
[`*.{${extensions.join(',')}}`]: ['vue-cli-service lint', 'git add']
}
}

Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ test('should be able to fix mixed line endings', async () => {
await write('src/bad.vue', buf)

// Try twice to fix the file.
// For now, it will fail the first time, which corresponds to the behaviour of tslint.
// For now, it will fail the first time, which corresponds to the behavior of tslint.
try {
await run('vue-cli-service lint -- src/bad.vue')
} catch (e) { }
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/config/terserOptions.js
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ module.exports = options => ({
toplevel: false,
typeofs: false,

// a few flags with noticable gains/speed ratio
// a few flags with noticeable gains/speed ratio
// numbers based on out of the box vendor bundle
booleans: true, // 0.7kb
if_return: true, // 0.4kb
2 changes: 1 addition & 1 deletion packages/@vue/cli-service/lib/util/resolveLoaderError.js
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ exports.transformer = error => {
const match = message.match(re)
if (match) {
return Object.assign({}, error, {
// type is necessary to avoid being printed as defualt error
// type is necessary to avoid being printed as default error
// by friendly-error-webpack-plugin
type,
shortMessage: msg(error, match)
2 changes: 1 addition & 1 deletion packages/@vue/cli/__tests__/invoke.spec.js
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ test('invoking a plugin that renames files', async () => {
expect(project.has('src/main.js')).toBe(false)
})

test('should prompt if invoking in a git repository with uncommited changes', async () => {
test('should prompt if invoking in a git repository with uncommitted changes', async () => {
delete process.env.VUE_CLI_SKIP_DIRTY_GIT_PROMPT
const project = await create('invoke-dirty', {
plugins: {
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/GeneratorAPI.js
Original file line number Diff line number Diff line change
@@ -227,7 +227,7 @@ class GeneratorAPI {
warnIncompatibleVersions: true
}

// this condition statement is added for compatiblity reason, because
// this condition statement is added for compatibility reason, because
// in version 4.0.0 to 4.1.2, there's no `options` object, but a `forceNewVersion` flag
if (typeof options === 'boolean') {
extendOptions.warnIncompatibleVersions = !options
2 changes: 1 addition & 1 deletion packages/@vue/cli/lib/util/confirmIfGitDirty.js
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ module.exports = async function confirmIfGitDirty (context) {
return true
}

warn(`There are uncommited changes in the current repository, it's recommended to commit or stash them first.`)
warn(`There are uncommitted changes in the current repository, it's recommended to commit or stash them first.`)
const { ok } = await inquirer.prompt([
{
name: 'ok',