create-noderize
Advanced tools
Comparing version 0.2.6 to 0.3.1
@@ -7,6 +7,6 @@ #!/usr/bin/env node | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["create-noderize"] = factory(); | ||
else | ||
root["create-noderize"] = factory(); | ||
else { | ||
var a = factory(); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(typeof self !== 'undefined' ? self : this, function() { | ||
@@ -82,16 +82,5 @@ return /******/ (function(modules) { // webpackBootstrap | ||
"use strict"; | ||
module.exports = __webpack_require__(1); | ||
var _run = __webpack_require__(1); | ||
var _minimist = _interopRequireDefault(__webpack_require__(6)); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// Parse args | ||
const args = (0, _minimist.default)(process.argv.slice(2)); | ||
const name = args._.length > 0 ? args._[0] : null; | ||
(0, _run.run)(name, args); | ||
/***/ }), | ||
@@ -102,173 +91,10 @@ /* 1 */ | ||
"use strict"; | ||
eval("\n\nvar _run = __webpack_require__(2);\n\nvar _minimist = _interopRequireDefault(__webpack_require__(7));\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Parse args\nconst args = (0, _minimist.default)(process.argv.slice(2));\nconst name = args._.length > 0 ? args._[0] : null;\n(0, _run.run)(name, args);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9zcmMvaW5kZXguanM/MWZkZiJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBydW4gfSBmcm9tIFwiLi9ydW5cIjtcbmltcG9ydCBwYXJzZUFyZ3MgZnJvbSBcIm1pbmltaXN0XCI7XG5cbi8vIFBhcnNlIGFyZ3NcbmNvbnN0IGFyZ3MgPSBwYXJzZUFyZ3MocHJvY2Vzcy5hcmd2LnNsaWNlKDIpKTtcbmNvbnN0IG5hbWUgPSBhcmdzLl8ubGVuZ3RoID4gMCA/IGFyZ3MuX1swXSA6IG51bGw7XG5cbnJ1bihuYW1lLCBhcmdzKTtcblxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyBzcmMvaW5kZXguanMiXSwibWFwcGluZ3MiOiI7O0FBQUE7QUFDQTtBQUFBO0FBQ0E7OztBQUNBO0FBQ0E7QUFDQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///1\n"); | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.run = run; | ||
var _chalk = _interopRequireDefault(__webpack_require__(2)); | ||
var _path = __webpack_require__(3); | ||
var _fsExtra = _interopRequireDefault(__webpack_require__(4)); | ||
var _child_process = __webpack_require__(5); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
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); } | ||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } function _next(value) { step("next", value); } function _throw(err) { step("throw", err); } _next(); }); }; } | ||
function run() { | ||
return _run.apply(this, arguments); | ||
} | ||
function _run() { | ||
_run = _asyncToGenerator(function* (name = null, { | ||
typescript = false, | ||
forceNpm = false, | ||
forceYarn = false | ||
} = {}) { | ||
if (!name) { | ||
printWarn(`No path given!`); | ||
process.exit(1); | ||
return; | ||
} // Get absolute path | ||
const path = (0, _path.resolve)((yield _fsExtra.default.realpath(process.cwd())), name); // Check if exist | ||
if (yield _fsExtra.default.exists(path)) { | ||
printWarn(`Path exists!`); | ||
process.exit(1); | ||
return; | ||
} | ||
printInfo(`Copying...`); // Copy from template | ||
try { | ||
yield _fsExtra.default.copy((0, _path.resolve)(__dirname, "..", "template"), path); | ||
} catch (error) { | ||
error(`Error copying.`, error); | ||
process.exit(1); | ||
return; | ||
} | ||
printInfo(`Setting up...`); // Set the "name" field in package.json | ||
try { | ||
const childPackagePath = (0, _path.resolve)(path, "package.json"); // Read | ||
const childPackage = yield _fsExtra.default.readJson(childPackagePath); | ||
const newChildPackage = _extends({ | ||
name | ||
}, childPackage); // Hack to put name at front | ||
if (typescript) { | ||
newChildPackage.noderize = { | ||
languages: "typescript" | ||
}; | ||
} // Write | ||
yield _fsExtra.default.writeJson(childPackagePath, newChildPackage, { | ||
spaces: "\t" | ||
}); | ||
} catch (error) { | ||
printError(`Error saving package.json.`, error); | ||
process.exit(1); | ||
return; | ||
} // Move "gitignore" to ".gitignore" | ||
try { | ||
yield _fsExtra.default.rename((0, _path.resolve)(path, "gitignore"), (0, _path.resolve)(path, ".gitignore")); | ||
} catch (error) { | ||
printError(`Error moving .gitignore.`, error); | ||
process.exit(1); | ||
return; | ||
} | ||
if (typescript) { | ||
// Setup TypeScript | ||
try { | ||
yield _fsExtra.default.rename((0, _path.resolve)(path, "src", "index.js"), (0, _path.resolve)(path, "src", "index.ts")); | ||
} catch (error) { | ||
printError(`Error moving src/index.js to src/index.ts.`, error); | ||
process.exit(1); | ||
return; | ||
} | ||
} | ||
printInfo(`Installing packages...`); | ||
console.log(); | ||
const useYarn = forceYarn ? true : forceNpm ? false : shouldUseYarn(); | ||
try { | ||
// Install latest | ||
if (useYarn) { | ||
(0, _child_process.execSync)("yarn add -D noderize-scripts", { | ||
cwd: path, | ||
stdio: "inherit" | ||
}); | ||
} else { | ||
(0, _child_process.execSync)("npm install -D noderize-scripts", { | ||
cwd: path, | ||
stdio: "inherit" | ||
}); | ||
} | ||
} catch (error) { | ||
printError(`Error installing packages.`, error); | ||
process.exit(1); | ||
return; | ||
} | ||
const runCommand = useYarn ? "yarn" : "npm run"; | ||
console.log(); | ||
printDone(`Done! Your Noderize app is ready!`); | ||
printDone(`You may visit your app with ${_chalk.default.cyan(`cd ${name}`)}`); | ||
printDone(`Develop by using ${_chalk.default.cyan(`${runCommand} watch`)}`); | ||
printDone(`Build a production version using ${_chalk.default.cyan(`${runCommand} build`)}`); | ||
printDone(`Visit documentation at ${_chalk.default.cyan(`https://noderize.js.org`)}`); | ||
}); | ||
return _run.apply(this, arguments); | ||
} | ||
function shouldUseYarn() { | ||
try { | ||
(0, _child_process.execSync)("yarn --version", { | ||
stdio: "ignore" | ||
}); | ||
return true; | ||
} catch (error) { | ||
return false; | ||
} | ||
} | ||
function printInfo(text) { | ||
console.log(`${_chalk.default.blueBright("[INFO]")} ${text}`); | ||
} | ||
function printDone(text) { | ||
console.log(`${_chalk.default.greenBright("[DONE]")} ${text}`); | ||
} | ||
function printWarn(text) { | ||
console.warn(`${_chalk.default.yellowBright("[WARN]")} ${text}`); | ||
} | ||
function printError(text, error) { | ||
console.error(`${_chalk.default.redBright("[ERROR]")} ${text}`); | ||
console.error(error); | ||
} | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
/***/ (function(module, exports, __webpack_require__) { | ||
module.exports = require("chalk"); | ||
"use strict"; | ||
eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.run = run;\n\nvar _chalk = _interopRequireDefault(__webpack_require__(3));\n\nvar _path = __webpack_require__(4);\n\nvar _fsExtra = _interopRequireDefault(__webpack_require__(5));\n\nvar _child_process = __webpack_require__(6);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _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); }\n\nasync function run(name = null, {\n typescript = false,\n forceNpm = false,\n forceYarn = false\n} = {}) {\n if (!name) {\n printWarn(`No path given!`);\n process.exit(1);\n return;\n } // Get absolute path\n\n\n const path = (0, _path.resolve)((await _fsExtra.default.realpath(process.cwd())), name); // Check if exist\n\n if (await _fsExtra.default.exists(path)) {\n printWarn(`Path exists!`);\n process.exit(1);\n return;\n }\n\n printInfo(`Copying...`); // Copy from template\n\n try {\n await _fsExtra.default.copy((0, _path.resolve)(__dirname, \"..\", \"template\"), path);\n } catch (error) {\n error(`Error copying.`, error);\n process.exit(1);\n return;\n }\n\n printInfo(`Setting up...`); // Set the \"name\" field in package.json\n\n try {\n const childPackagePath = (0, _path.resolve)(path, \"package.json\"); // Read\n\n const childPackage = await _fsExtra.default.readJson(childPackagePath);\n\n const newChildPackage = _extends({\n name\n }, childPackage); // Hack to put name at front\n\n\n if (typescript) {\n newChildPackage.noderize = {\n languages: \"typescript\"\n };\n } // Write\n\n\n await _fsExtra.default.writeJson(childPackagePath, newChildPackage, {\n spaces: \"\\t\"\n });\n } catch (error) {\n printError(`Error saving package.json.`, error);\n process.exit(1);\n return;\n } // Move \"gitignore\" to \".gitignore\"\n\n\n try {\n await _fsExtra.default.rename((0, _path.resolve)(path, \"gitignore\"), (0, _path.resolve)(path, \".gitignore\"));\n } catch (error) {\n printError(`Error moving .gitignore.`, error);\n process.exit(1);\n return;\n }\n\n if (typescript) {\n // Setup TypeScript\n try {\n await _fsExtra.default.rename((0, _path.resolve)(path, \"src\", \"index.js\"), (0, _path.resolve)(path, \"src\", \"index.ts\"));\n } catch (error) {\n printError(`Error moving src/index.js to src/index.ts.`, error);\n process.exit(1);\n return;\n }\n }\n\n printInfo(`Installing packages...`);\n console.log();\n const useYarn = forceYarn ? true : forceNpm ? false : shouldUseYarn();\n\n try {\n // Install latest\n if (useYarn) {\n (0, _child_process.execSync)(\"yarn add -D noderize-scripts\", {\n cwd: path,\n stdio: \"inherit\"\n });\n } else {\n (0, _child_process.execSync)(\"npm install -D noderize-scripts\", {\n cwd: path,\n stdio: \"inherit\"\n });\n }\n } catch (error) {\n printError(`Error installing packages.`, error);\n process.exit(1);\n return;\n }\n\n const runCommand = useYarn ? \"yarn\" : \"npm run\";\n console.log();\n printDone(`Done! Your Noderize app is ready!`);\n printDone(`You may visit your app with ${_chalk.default.cyan(`cd ${name}`)}`);\n printDone(`Develop by using ${_chalk.default.cyan(`${runCommand} watch`)}`);\n printDone(`Build a production version using ${_chalk.default.cyan(`${runCommand} build`)}`);\n printDone(`Visit documentation at ${_chalk.default.cyan(`https://noderize.js.org`)}`);\n}\n\nfunction shouldUseYarn() {\n try {\n (0, _child_process.execSync)(\"yarn --version\", {\n stdio: \"ignore\"\n });\n return true;\n } catch (error) {\n return false;\n }\n}\n\nfunction printInfo(text) {\n console.log(`${_chalk.default.blueBright(\"[INFO]\")} ${text}`);\n}\n\nfunction printDone(text) {\n console.log(`${_chalk.default.greenBright(\"[DONE]\")} ${text}`);\n}\n\nfunction printWarn(text) {\n console.warn(`${_chalk.default.yellowBright(\"[WARN]\")} ${text}`);\n}\n\nfunction printError(text, error) {\n console.error(`${_chalk.default.redBright(\"[ERROR]\")} ${text}`);\n console.error(error);\n}//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9zcmMvcnVuLmpzP2Y3MTIiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGNoYWxrIGZyb20gXCJjaGFsa1wiO1xuaW1wb3J0IHsgcmVzb2x2ZSB9IGZyb20gXCJwYXRoXCI7XG5pbXBvcnQgZnMgZnJvbSBcImZzLWV4dHJhXCI7XG5pbXBvcnQgeyBleGVjU3luYyB9IGZyb20gXCJjaGlsZF9wcm9jZXNzXCI7XG5cbmV4cG9ydCBhc3luYyBmdW5jdGlvbiBydW4oXG5cdG5hbWUgPSBudWxsLFxuXHR7IHR5cGVzY3JpcHQgPSBmYWxzZSwgZm9yY2VOcG0gPSBmYWxzZSwgZm9yY2VZYX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BO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///2\n"); | ||
@@ -279,3 +105,3 @@ /***/ }), | ||
module.exports = require("path"); | ||
eval("module.exports = require(\"chalk\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9leHRlcm5hbCBcImNoYWxrXCI/NTNmNyJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoXCJjaGFsa1wiKTtcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyBleHRlcm5hbCBcImNoYWxrXCJcbi8vIG1vZHVsZSBpZCA9IDNcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///3\n"); | ||
@@ -286,3 +112,3 @@ /***/ }), | ||
module.exports = require("fs-extra"); | ||
eval("module.exports = require(\"path\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9leHRlcm5hbCBcInBhdGhcIj81YjJhIl0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcInBhdGhcIik7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gZXh0ZXJuYWwgXCJwYXRoXCJcbi8vIG1vZHVsZSBpZCA9IDRcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///4\n"); | ||
@@ -293,3 +119,3 @@ /***/ }), | ||
module.exports = require("child_process"); | ||
eval("module.exports = require(\"fs-extra\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9leHRlcm5hbCBcImZzLWV4dHJhXCI/N2NhNiJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoXCJmcy1leHRyYVwiKTtcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyBleHRlcm5hbCBcImZzLWV4dHJhXCJcbi8vIG1vZHVsZSBpZCA9IDVcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///5\n"); | ||
@@ -300,6 +126,12 @@ /***/ }), | ||
module.exports = require("minimist"); | ||
eval("module.exports = require(\"child_process\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9leHRlcm5hbCBcImNoaWxkX3Byb2Nlc3NcIj80MzA4Il0sInNvdXJjZXNDb250ZW50IjpbIm1vZHVsZS5leHBvcnRzID0gcmVxdWlyZShcImNoaWxkX3Byb2Nlc3NcIik7XG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gZXh0ZXJuYWwgXCJjaGlsZF9wcm9jZXNzXCJcbi8vIG1vZHVsZSBpZCA9IDZcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///6\n"); | ||
/***/ }), | ||
/* 7 */ | ||
/***/ (function(module, exports) { | ||
eval("module.exports = require(\"minimist\");//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy9leHRlcm5hbCBcIm1pbmltaXN0XCI/OWFmZCJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IHJlcXVpcmUoXCJtaW5pbWlzdFwiKTtcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyBleHRlcm5hbCBcIm1pbmltaXN0XCJcbi8vIG1vZHVsZSBpZCA9IDdcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///7\n"); | ||
/***/ }) | ||
/******/ ]); | ||
}); |
@@ -11,17 +11,15 @@ { | ||
}, | ||
"version": "0.2.6", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
"bin": "dist/index.js", | ||
"devDependencies": { | ||
"noderize-scripts": "^0.2.6" | ||
}, | ||
"files": ["src", "dist", "template"], | ||
"scripts": { | ||
"watch": "noderize-scripts watch", | ||
"test": "noderize-scripts test", | ||
"format": "noderize-scripts format", | ||
"build": "noderize-scripts build", | ||
"start": "noderize-scripts start", | ||
"prepublishOnly": "noderize-scripts build --env production" | ||
"noderize-scripts": "node ../noderize-scripts/dist/index.js", | ||
"watch": "npm run noderize-scripts watch", | ||
"test": "npm run noderize-scripts test", | ||
"format": "npm run noderize-scripts format", | ||
"build": "npm run noderize-scripts build", | ||
"start": "npm run noderize-scripts start", | ||
"prepublishOnly": "npm run build --env production" | ||
}, | ||
"files": ["src", "dist", "template"], | ||
"dependencies": { | ||
@@ -28,0 +26,0 @@ "chalk": "^2.3.0", |
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
24526
0
1
1
319