create-treble-app
Advanced tools
Comparing version 0.0.30 to 0.0.31
{ | ||
"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(); |
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
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
0
4755
5
147