create-treble-app
Advanced tools
Comparing version 0.0.29 to 0.0.30
{ | ||
"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(); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
1
6840
6
220