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

create-ce-app

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-ce-app - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

53

index.js

@@ -6,20 +6,43 @@ #!/usr/bin/env node

const projectName = process.argv[2];
const chalk = require('chalk');
const inquirer = require('inquirer');
if (!projectName) {
console.error('Please provide a project name.');
process.exit(1);
}
const init = async () => {
exec('clear');
console.log(chalk.green('Welcome to the Custom Element App creator!\n'));
const repoUrl = 'https://github.com/dorchaouat/test-template.git';
const subdirectory = 'test';
const destinationFolder = `./${projectName}`;
if (!projectName) {
console.error('Please provide a project name.');
process.exit(1);
}
const cloneCommand = `git clone --depth 1 --filter=blob:none --sparse ${repoUrl} ${destinationFolder} && cd ${destinationFolder} && git sparse-checkout init && git sparse-checkout set ${subdirectory}`;
const answer = await inquirer.prompt({
name: 'templateSelector',
message: 'Choose a framework to start from',
choices: [
{
name: '> 1: Viewer 🖼',
value: 'test',
}
],
type: 'list',
});
exec(cloneCommand, (err, stdout, stderr) => {
if (err) {
console.error(`Error cloning subdirectory: ${err.message}`);
return;
}
console.log(`Subdirectory cloned to ${destinationFolder}/${subdirectory}`);
});
const repoUrl = 'https://github.com/dorchaouat/test-template.git';
const subdirectory = answer.templateSelector;
const destinationFolder = `./${projectName}`;
const cloneCommand = `git clone --depth 1 --filter=blob:none --sparse ${repoUrl} ${destinationFolder} && cd ${destinationFolder} && git sparse-checkout init && git sparse-checkout set ${subdirectory}`;
exec(cloneCommand, (err) => {
if (err) {
console.error(`Error cloning subdirectory: ${err.message}`);
return;
}
console.log(`Subdirectory cloned to ${destinationFolder}/${subdirectory}`);
});
};
(async function () {
init();
})()
{
"name": "create-ce-app",
"version": "1.0.10",
"version": "1.0.11",
"description": "My New Project description.",

@@ -11,3 +11,7 @@ "bin": "./index.js",

"author": "dor chaouat",
"license": "MIT"
}
"license": "MIT",
"dependencies": {
"chalk": "^5.2.0",
"inquirer": "^9.1.5"
}
}
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