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

create-noderize

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-noderize - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

30

dist/index.js

@@ -93,3 +93,3 @@ #!/usr/bin/env node

var _chalk = _interopRequireDefault(__webpack_require__(2));
var chalk = _interopRequireWildcard(__webpack_require__(2));

@@ -106,2 +106,4 @@ var _util = __webpack_require__(3);

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

@@ -116,3 +118,3 @@

if (!name) {
console.log(`${_chalk.default.red("[INFO]")} No path given!`);
console.log(`${chalk.red("[INFO]")} No path given!`);
return;

@@ -125,7 +127,7 @@ } // Get absolute path

if (_fs.default.existsSync(path)) {
console.log(`${_chalk.default.red("[INFO]")} Path exists!`);
console.log(`${chalk.red("[INFO]")} Path exists!`);
return;
}
console.log(`${_chalk.default.yellowBright("[INFO]")} Copying...`); // Copy from template
console.log(`${chalk.yellowBright("[INFO]")} Copying...`); // Copy from template

@@ -135,3 +137,3 @@ try {

} catch (error) {
console.error(`${_chalk.default.redBright("[ERROR]")} Error copying.`);
console.error(`${chalk.redBright("[ERROR]")} Error copying.`);
console.error(error);

@@ -141,3 +143,3 @@ return;

console.log(`${_chalk.default.yellowBright("[INFO]")} Setting up...`); // Set the "name" field in package.json
console.log(`${chalk.yellowBright("[INFO]")} Setting up...`); // Set the "name" field in package.json

@@ -157,3 +159,3 @@ try {

} catch (error) {
console.error(`${_chalk.default.redBright("[ERROR]")} Error setting name.`);
console.error(`${chalk.redBright("[ERROR]")} Error setting name.`);
console.error(error);

@@ -166,7 +168,7 @@ } // Move "gitignore" to ".gitignore"

} catch (error) {
console.error(`${_chalk.default.redBright("[ERROR]")} Error moving .gitignore.`);
console.error(`${chalk.redBright("[ERROR]")} Error moving .gitignore.`);
console.error(error);
}
console.log(`${_chalk.default.yellowBright("[INFO]")} Installing packages...`);
console.log(`${chalk.yellowBright("[INFO]")} Installing packages...`);
const useYarn = shouldUseYarn();

@@ -186,3 +188,3 @@

} catch (error) {
console.error(`${_chalk.default.redBright("[ERROR]")} Error installing packages.`);
console.error(`${chalk.redBright("[ERROR]")} Error installing packages.`);
console.error(error);

@@ -192,6 +194,6 @@ }

const runCommand = useYarn ? "yarn" : "npm run";
console.log(`${_chalk.default.greenBright("[INFO]")} Done!`);
console.log(`${_chalk.default.greenBright("[INFO]")} You may visit your app with ${_chalk.default.cyan(`cd ${name}`)}`);
console.log(`${_chalk.default.greenBright("[INFO]")} Develop by using ${_chalk.default.cyan(`${runCommand} watch`)}`);
console.log(`${_chalk.default.greenBright("[INFO]")} Build a production version using ${_chalk.default.cyan(`${runCommand} build`)}`);
console.log(`${chalk.greenBright("[INFO]")} Done!`);
console.log(`${chalk.greenBright("[INFO]")} You may visit your app with ${chalk.cyan(`cd ${name}`)}`);
console.log(`${chalk.greenBright("[INFO]")} Develop by using ${chalk.cyan(`${runCommand} watch`)}`);
console.log(`${chalk.greenBright("[INFO]")} Build a production version using ${chalk.cyan(`${runCommand} build`)}`);
})();

@@ -198,0 +200,0 @@

@@ -10,3 +10,3 @@ {

},
"version": "0.1.3",
"version": "0.1.4",
"license": "MIT",

@@ -13,0 +13,0 @@ "bin": "dist/index.js",

import { ncp } from "ncp";
import chalk from "chalk";
import * as chalk from "chalk";
import { promisify } from "util";

@@ -4,0 +4,0 @@ import { resolve } from "path";

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