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

create-universal

Package Overview
Dependencies
Maintainers
0
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-universal - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

5

dist/app.d.ts

@@ -1,6 +0,3 @@

export default function app({ name, options, }?: {
export default function app({ name, }?: {
name?: string;
options?: {
gluestack?: boolean;
};
}): Promise<void>;

45

dist/app.js

@@ -39,6 +39,5 @@ import { execSync as nodeExecSync, } from 'child_process';

}
export default async function app({ name, options, } = {}) {
export default async function app({ name, } = {}) {
const isYarn = process.env.npm_config_user_agent?.includes('yarn');
let appName = name;
const gluestack = options?.gluestack ?? false;
if (!name) {

@@ -125,31 +124,2 @@ const rl = createInterface({ input: stdin, output: stdout });

success('Dependencies were installed.');
if (gluestack) {
log('Installing gluestack...');
try {
execSync('npx gluestack-ui@latest init');
}
catch {
console.error('An error occurred while installing gluestack.');
exit(1);
}
commit({
body: `Generated by ${packageName} ${packageVersion}`,
message: 'Install gluestack',
});
success('Gluestack was installed.');
log('Adding gluestack components...');
// Add all available gluestack components
try {
execSync('npx gluestack-ui@latest add --all');
}
catch {
console.error('An error occurred while adding gluestack components.');
exit(1);
}
commit({
body: `Generated by ${packageName} ${packageVersion}`,
message: 'Add all available gluestack components',
});
success('GlueStack components were added.');
}
log('Copying template files...');

@@ -185,17 +155,4 @@ // Overlay template files

success('Files were formatted.');
// Apply patch
try {
const patchFilePath = resolve(dirname(fileURLToPath(import.meta.url)), 'patches', 'fix-gluestack-import.patch');
execSync(`git apply "${patchFilePath}"`);
}
catch {
console.error('An error occurred while applying gluestack import patch.');
}
commit({
body: `Generated by ${packageName} ${packageVersion}`,
message: 'Apply gluestack import patch',
});
success('Gluestack import patch was applied.');
console.log(`\n🎉 Project created in ${appName}! Run:`);
console.log(`cd ${appName} && ${isYarn ? 'yarn' : 'npm'} start`);
}

@@ -7,2 +7,2 @@ #!/usr/bin/env node

const main = (await import('./index.js')).default;
main();
await main();
import { execSync } from 'child_process';
import { readFileSync, writeFileSync } from 'fs';
import { resolve } from 'path';
// @ts-ignore: Ignore that this is outside rootDir (since it'll exist in build)
import packageJson from '../package.json' with { type: 'json' };

@@ -6,0 +5,0 @@ export const packageVersion = packageJson.version;

@@ -1,6 +0,5 @@

import { Command } from '@commander-js/extra-typings';
import { program } from '@commander-js/extra-typings';
import app from './app.js';
import { packageDescription, packageVersion } from './helpers.js';
export default async function main() {
const program = new Command();
program

@@ -10,9 +9,6 @@ .name('npm create universal')

.description(packageDescription);
program
.command('app [name]')
.option('--gluestack', 'Include gluestack-ui and components')
.action((name, options) => {
app({ name, options });
program.command('app [name]').action(async (name) => {
await app({ name });
});
await program.parseAsync(process.argv);
}
{
"name": "create-universal",
"version": "0.6.0",
"version": "0.7.0",
"description": "Cross-platform Expo app generator (iOS/Android/web) with TypeScript, formatting, and gluestack/tailwind",

@@ -20,19 +20,18 @@ "homepage": "https://github.com/vine77/create-universal",

"prepublishOnly": "npm run build",
"lint": "eslint . --ignore-path .gitignore",
"format": "eslint . --fix --ignore-path .gitignore"
"lint": "eslint .",
"format": "eslint . --fix"
},
"dependencies": {
"commander": "^13.0.0",
"suppress-experimental-warnings": "^2.0.0"
},
"devDependencies": {
"@types/node": "^20.8.10",
"eslint": "^8.52.0",
"eslint-config-universe": "^13.0.0",
"@commander-js/extra-typings": "^13.0.0",
"@types/node": "^22.10.2",
"eslint": "^8.57.1",
"eslint-config-universe": "^14.0.0",
"eslint-plugin-perfectionist": "^2.11.0",
"prettier": "^3.0.3",
"prettier": "^3.4.2",
"typescript": "^5.7.2"
},
"dependencies": {
"@commander-js/extra-typings": "^11.1.0",
"commander": "^11.1.0",
"hygen": "^6.2.11",
"suppress-experimental-warnings": "^1.1.17"
}
}
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