Socket
Socket
Sign inDemoInstall

nevm-mvc-scaffold

Package Overview
Dependencies
217
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.13 to 1.0.14

.idea/jsLibraryMappings.xml

28

index.js

@@ -146,3 +146,2 @@ const fs = require('fs');

}
function vueInstall() {

@@ -156,6 +155,14 @@ showDivider('-', 40);

const frontEndDirectory = 'frontend';
// Assuming the current directory is the parent directory
const parentDirectory = process.cwd(); // Get the current working directory
// Define the path to the frontend folder
const frontEnd = path.join(parentDirectory, frontEndDirectory);
console.log('Installing Vue.js with Vite...');
const installCommand = 'npm install vite @vitejs/plugin-vue';
exec(installCommand, { cwd: frontEndDirectory }, (error, stdout, stderr) => {
process.chdir(currentDirectory); // Restore the original directory
exec(installCommand, (error, stdout, stderr) => {
// Restore the original directory
// process.chdir(currentDirectory);
if (error) {

@@ -167,2 +174,12 @@ console.error(`Error installing Vue.js with Vite: ${error}`);

console.log('Vue.js with Vite installed successfully.');
console.log(`Installed Directory: ${process.cwd()}`);
// Check if package.json exists inside frontend directory
const packageJsonPath = path.join(frontEnd, 'package.json');
if (fs.existsSync(packageJsonPath)) {
console.log(`Package.json created inside ${frontEndDirectory} directory.`);
} else {
console.log(`Package.json not found inside ${frontEndDirectory} directory.`);
}
updateFrontend(); // Move updateFrontend call here

@@ -179,2 +196,5 @@ });

// Update frontend files and folders

@@ -194,3 +214,3 @@ function updateFrontend() {

// Create 'router' directory if it doesn't exist
const routerDirectory = path.join(process.cwd(), 'frontend', 'src', 'router');
const routerDirectory = path.join(process.cwd(), 'src', 'router');
if (!fs.existsSync(routerDirectory)) {

@@ -197,0 +217,0 @@ fs.mkdirSync(routerDirectory, { recursive: true });

{
"name": "nevm-mvc-scaffold",
"version": "1.0.13",
"version": "1.0.14",
"description": "Instantly initialize project structure for Node.js applications following the MVC pattern with express.js, vue, vue-router and vite",

@@ -25,3 +25,10 @@ "main": "index.js",

"author": "Jesil Jose (the-provost)",
"license": "MIT"
"license": "MIT",
"dependencies": {
"@vitejs/plugin-vue": "^5.0.4",
"express": "^4.18.3",
"sequelize": "^6.37.1",
"vite": "^5.1.4",
"vue-router": "^4.3.0"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc