New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@mvxiv/scaffold

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mvxiv/scaffold - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

9

cli.js

@@ -5,10 +5,9 @@ #!/usr/bin/env node

import { resolve as pathResolve } from 'node:path';
import { pascalCaseToKebabCase } from './utils';
import { ComponentNameException } from './exceptions';
import { pascalCaseToKebabCase } from './lib/utils.js';
import { ComponentNameException } from './lib/exceptions.js';
import { COMPONENTS_PATH } from './lib/constants.js';
import { newVueBoilerPlate, newTestBoilerplate, newSCSSBoilerPlate } from './lib/templates.js';
const [componentName] = process.argv.slice(2);
async function createComponent(componentName) {

@@ -15,0 +14,0 @@ if(componentName === undefined) throw new ComponentNameException('Enter a component name!');

@@ -1,2 +0,2 @@

const newVueBoilerPlate = (componentName) =>
export const newVueBoilerPlate = (componentName) =>
`<script setup lang="ts">

@@ -16,3 +16,3 @@

const newTestBoilerplate = (componentName) =>
export const newTestBoilerplate = (componentName) =>
`import { describe, it } from 'vitest';

@@ -26,7 +26,7 @@ import { mount, VueWrapper } from '@vue/test-utils';

const newSCSSBoilerPlate = (componentName) =>
export const newSCSSBoilerPlate = (componentName) =>
`@import '@scss/utils.scss';
.${pascalCaseToKebabCase(componentName)} {
.${componentName} {
//
}`
{
"name": "@mvxiv/scaffold",
"version": "0.1.2",
"version": "0.1.3",
"description": "scaffolding vue components",

@@ -5,0 +5,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc