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.4 to 0.1.5

47

dist/index.js

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

/******/ // Return the exports of the module
/******/ (function (module) {
/******/ if (module.exports
/******/ && !module.exports.__esModule
/******/ && module.exports.default === undefined
/******/ ) {
/******/ if (module.exports.headers
/******/ && module.exports.headers.common
/******/ && module.exports.headers.common.Accept
/******/ && module.exports.adapter
/******/ && module.exports.transformRequest
/******/ && module.exports.transformResponse
/******/ ) {
/******/ return;
/******/ }
/******/ module.exports.default = module.exports;
/******/ }
/******/ })(module);
/******/ return module.exports;

@@ -94,3 +77,3 @@ /******/ }

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

@@ -107,4 +90,2 @@ 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); }

@@ -119,3 +100,3 @@

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

@@ -128,7 +109,7 @@ } // Get absolute path

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

@@ -138,3 +119,3 @@ try {

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

@@ -144,3 +125,3 @@ return;

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

@@ -160,3 +141,3 @@ try {

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

@@ -169,7 +150,7 @@ } // Move "gitignore" to ".gitignore"

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

@@ -189,3 +170,3 @@

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

@@ -195,6 +176,6 @@ }

const runCommand = useYarn ? "yarn" : "npm run";
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`)}`);
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`)}`);
})();

@@ -201,0 +182,0 @@

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

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

@@ -30,3 +30,6 @@ "bin": "dist/index.js",

"template"
]
],
"dependencies": {
"chalk": "^2.3.0"
}
}
import { ncp } from "ncp";
import * as chalk from "chalk";
import 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