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.30 to 0.0.31

2

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

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

@@ -50,2 +50,15 @@ import spawn from 'cross-spawn';

console.log();
console.log(root);
console.log();
console.log('Installing dependencies. This will take a couple of minutes.');
console.log(
`Installing ${chalk.cyan(`react`)}, ${chalk.cyan(
`react-dom`
)}, ${chalk.cyan(`@threekit-tools/treble`)} and ${chalk.cyan(
`@threekit-tools/treble-scripts`
)}...`
);
console.log();
const installProcess = spawn(command, args, { stdio: 'inherit' });

@@ -106,3 +119,3 @@ installProcess.on('close', code => {

export default async function createApp() {
export default async function createTrebleApp() {
const templateName = preppedArgs.flags?.template || undefined;

@@ -131,21 +144,1 @@ let name = preppedArgs.appName;

}
/**
*
* Create Treble App
*
* Create directory
* Setup package.json (part 1)
* Install treble + treble-scripts
* Run @threekit-tools/treble-scripts/init.js
*
*
* Treble Scripts
*
* Download dependencies + template + components
* Copy template + components
* Uninstall template + components
* Setup package.json (part 2)
* rename gitignore
*
*/
#! /usr/bin/env node
import createApp from './createTrebleApp.js';
import { nodeVersionError } from './messages.js';
import createTrebleApp from './createTrebleApp.js';

@@ -10,6 +9,12 @@ const nodeVersion = process.versions.node;

if (major < 14) {
nodeVersionError(nodeVersion);
console.error(
'You are running Node ' +
nodeVersion +
'.\n' +
'Create React App requires Node 14 or higher. \n' +
'Please update your version of Node.'
);
process.exit(1);
}
createApp();
createTrebleApp();
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