Socket
Socket
Sign inDemoInstall

@vue/cli-shared-utils

Package Overview
Dependencies
11
Maintainers
2
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vue/cli-shared-utils


Version published
Maintainers
2
Created

Package description

What is @vue/cli-shared-utils?

The @vue/cli-shared-utils package provides a set of utilities for Vue CLI and Vue projects. These utilities include functions for logging, validation, module loading, and other common tasks needed by Vue CLI plugins and other project tooling.

What are @vue/cli-shared-utils's main functionalities?

Logging

Provides functions to output log messages with different levels of importance.

const { log, warn, error } = require('@vue/cli-shared-utils');

log('This is a log message.');
warn('This is a warning message.');
error('This is an error message.');

Validation

Includes functions to validate strings such as project names.

const { validateProjectName } = require('@vue/cli-shared-utils');

const projectName = 'example';
if (validateProjectName(projectName)) {
  log('Project name is valid.');
} else {
  error('Project name is invalid.');
}

Module Loading

Provides a function to safely load modules that may or may not be present in the project.

const { loadModule } = require('@vue/cli-shared-utils');

const moduleName = 'vue';
const module = loadModule(moduleName, __dirname);
if (module) {
  log(`Loaded ${moduleName} module.`);
} else {
  error(`Failed to load ${moduleName} module.`);
}

Other packages similar to @vue/cli-shared-utils

Changelog

Source

3.0.1 (2018-08-16)

cli

Bug Fixes
  • fix local preset inference on Windows (f83f31a)
  • temporary fix core-js dep for vue ui (6d64750), closes #2215
  • generator: handle directories starting with dot (1892bcc), closes #2222

cli-plugin-eslint

Bug Fixes
  • eslint: lint command should also lint config files starting with dot (8189f20), closes #2228

cli-plugin-typescript

Bug Fixes

cli-service

Bug Fixes
  • allow relative baseUrl other than ./ (#2168) (d14d4e6)
  • inspect --plugins should log plugin names from webpack-merge (#2201) (69a4fb3)
  • minify embedded CSS with extract: false (a2c767e), closes #2214
  • preserve rule names when configureWebpack is present (2257034), closes #2206
  • work around url-loader 1.1.0 regression (1f0c8e9), closes #2242

docs

Bug Fixes
  • fix css output location for relative baseUrl + more details in docs (1e7fa2c)
  • eslint: always emit error when lintOnSave === error + improve docs (d96a794), closes #2162

other

Bug Fixes

Readme

Source

@vue/cli-shared-utils

shared-utils for vue-cli

Keywords

FAQs

Last updated on 16 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc