Socket
Socket
Sign inDemoInstall

@vue/cli-shared-utils

Package Overview
Dependencies
12
Maintainers
3
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
3
Install size
7.36 MB
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.2 (2018-09-11)

cli

Bug Fixes

cli-plugin-babel

Bug Fixes

cli-plugin-eslint

Bug Fixes
  • also lint nested js files starting with dot (b81d11e)

cli-plugin-unit-jest

Bug Fixes
  • cli-plugin-unit-jest: also process SVG files with jest-transform-stub (#2368) (3def765)
  • ensure unit test examples work in projects created with --bare (b62c6ba), closes #2262

cli-plugin-unit-mocha

Bug Fixes
  • fix file name resovling in mocha env (f683583)

cli-service

Bug Fixes

cli-shared-utils

Bug Fixes

cli-ui

Bug Fixes
  • put actions buttons together, closes #1588 (812159a)
  • ansi up shouldn't escape HTML, closes #2187 (51490c6)
  • pane toolbar switch background in dark mode (ad6f934)
  • restore select element (config/task) (a549d56)
  • TopBar: project dropdown button not flat to be more accessible (59dbc02)
  • cli-ui: ignore "false" ENOENT errors on Windows (#2294) (bf91533)
  • plugin api: IPC now namspaced per project by default, closes #2189 (f261410)
Features
  • configuration details: better loading UX (5efbd1b)

cli-ui-addon-webpack

Bug Fixes
  • webpack dashboard: anazlyer sort on size types + performance improvements (de290d8)
  • webpack dashboard: support any command for mode (855da76)

docs

Bug Fixes

Readme

Source

@vue/cli-shared-utils

shared-utils for vue-cli

Keywords

FAQs

Last updated on 11 Sep 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