Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-treble-app

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-treble-app - npm Package Compare versions

Comparing version 0.0.29 to 0.0.30

src/createTrebleApp.js

2

package.json
{
"name": "create-treble-app",
"version": "0.0.29",
"version": "0.0.30",
"main": "index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

#! /usr/bin/env node
import cloneTemplate from './scripts/clone-template.js';
import { TEMPLATES } from './constants.js';
import { prepProcessArgs } from './utils.js';
// import { missingProjectName } from './messages/index.js';
import enquirer from 'enquirer';
import createApp from './createTrebleApp.js';
import { nodeVersionError } from './messages.js';
const argv = process.argv.slice(2);
const preppedArgs = prepProcessArgs(argv);
const nodeVersion = process.versions.node;
const major = nodeVersion.split('.')[0];
const templateName = preppedArgs.flags.template
? TEMPLATES[preppedArgs.flags.template]
: TEMPLATES.basic;
if (major < 14) {
nodeVersionError(nodeVersion);
process.exit(1);
}
let projectName = preppedArgs.appName;
const init = async () => {
if (!projectName) {
const response = await enquirer.prompt({
type: 'input',
name: 'projectName',
initial: 'treble-app',
message: 'Please provide a name for your project?',
});
projectName = response.projectName.replace(/ /g, '-').toLowerCase();
}
cloneTemplate(projectName, templateName);
};
init();
createApp();
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