create-payload-app 0.5.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,86 +1,84 @@
1
1
  "use strict";
2
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
- return cooked;
5
- };
6
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
7
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8
- return new (P || (P = Promise))(function (resolve, reject) {
9
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
10
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
11
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
12
- step((generator = generator.apply(thisArg, _arguments || [])).next());
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
13
9
  });
14
- };
15
- var __generator = (this && this.__generator) || function (thisArg, body) {
16
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
17
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
18
- function verb(n) { return function (v) { return step([n, v]); }; }
19
- function step(op) {
20
- if (f) throw new TypeError("Generator is already executing.");
21
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
22
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
23
- if (y = 0, t) op = [op[0] & 2, t.value];
24
- switch (op[0]) {
25
- case 0: case 1: t = op; break;
26
- case 4: _.label++; return { value: op[1], done: false };
27
- case 5: _.label++; y = op[1]; op = [0]; continue;
28
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
29
- default:
30
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
31
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
32
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
33
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
34
- if (t[2]) _.ops.pop();
35
- _.trys.pop(); continue;
36
- }
37
- op = body.call(thisArg, _);
38
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
39
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
10
+ }
11
+ _export(exports, {
12
+ welcomeMessage: function() {
13
+ return welcomeMessage;
14
+ },
15
+ helpMessage: function() {
16
+ return helpMessage;
17
+ },
18
+ successMessage: function() {
19
+ return successMessage;
40
20
  }
41
- };
42
- var __importDefault = (this && this.__importDefault) || function (mod) {
43
- return (mod && mod.__esModule) ? mod : { "default": mod };
44
- };
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.successMessage = exports.helpMessage = exports.welcomeMessage = void 0;
47
- var chalk_1 = __importDefault(require("chalk"));
48
- var figures_1 = __importDefault(require("figures"));
49
- var terminal_link_1 = __importDefault(require("terminal-link"));
50
- var templates_1 = require("../lib/templates");
51
- var path_1 = __importDefault(require("path"));
52
- var header = function (message) {
53
- return "".concat(chalk_1.default.yellow(figures_1.default.star), " ").concat(chalk_1.default.bold(message));
54
- };
55
- exports.welcomeMessage = (0, chalk_1.default)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n {green Welcome to Payload. Let's create a project! }\n"], ["\n {green Welcome to Payload. Let's create a project! }\n"])));
56
- var spacer = ' '.repeat(8);
21
+ });
22
+ const _chalk = /*#__PURE__*/ _interop_require_default(require("chalk"));
23
+ const _figures = /*#__PURE__*/ _interop_require_default(require("figures"));
24
+ const _path = /*#__PURE__*/ _interop_require_default(require("path"));
25
+ const _terminallink = /*#__PURE__*/ _interop_require_default(require("terminal-link"));
26
+ const _templates = require("../lib/templates");
27
+ function _interop_require_default(obj) {
28
+ return obj && obj.__esModule ? obj : {
29
+ default: obj
30
+ };
31
+ }
32
+ const header = (message)=>`${_chalk.default.yellow(_figures.default.star)} ${_chalk.default.bold(message)}`;
33
+ const welcomeMessage = (0, _chalk.default)`
34
+ {green Welcome to Payload. Let's create a project! }
35
+ `;
36
+ const spacer = ' '.repeat(8);
57
37
  function helpMessage() {
58
- return __awaiter(this, void 0, void 0, function () {
59
- var validTemplates;
60
- return __generator(this, function (_a) {
61
- switch (_a.label) {
62
- case 0: return [4 /*yield*/, (0, templates_1.getValidTemplates)()];
63
- case 1:
64
- validTemplates = _a.sent();
65
- return [2 /*return*/, (0, chalk_1.default)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n {bold USAGE}\n\n {dim $} {bold npx create-payload-app}\n {dim $} {bold npx create-payload-app} my-project\n {dim $} {bold npx create-payload-app} -n my-project -t blog\n\n {bold OPTIONS}\n\n -n {underline my-payload-app} Set project name\n -t {underline template_name} Choose specific template\n\n {dim Available templates: ", "}\n\n --use-npm Use npm to install dependencies\n --use-yarn Use yarn to install dependencies\n --use-pnpm Use pnpm to install dependencies\n --no-deps Do not install any dependencies\n -h Show help\n"], ["\n {bold USAGE}\n\n {dim $} {bold npx create-payload-app}\n {dim $} {bold npx create-payload-app} my-project\n {dim $} {bold npx create-payload-app} -n my-project -t blog\n\n {bold OPTIONS}\n\n -n {underline my-payload-app} Set project name\n -t {underline template_name} Choose specific template\n\n {dim Available templates: ", "}\n\n --use-npm Use npm to install dependencies\n --use-yarn Use yarn to install dependencies\n --use-pnpm Use pnpm to install dependencies\n --no-deps Do not install any dependencies\n -h Show help\n"])), formatTemplates(validTemplates))];
66
- }
67
- });
68
- });
38
+ const validTemplates = (0, _templates.getValidTemplates)();
39
+ return (0, _chalk.default)`
40
+ {bold USAGE}
41
+
42
+ {dim $} {bold npx create-payload-app}
43
+ {dim $} {bold npx create-payload-app} my-project
44
+ {dim $} {bold npx create-payload-app} -n my-project -t blog
45
+
46
+ {bold OPTIONS}
47
+
48
+ -n {underline my-payload-app} Set project name
49
+ -t {underline template_name} Choose specific template
50
+
51
+ {dim Available templates: ${formatTemplates(validTemplates)}}
52
+
53
+ --use-npm Use npm to install dependencies
54
+ --use-yarn Use yarn to install dependencies
55
+ --use-pnpm Use pnpm to install dependencies
56
+ --no-deps Do not install any dependencies
57
+ -h Show help
58
+ `;
69
59
  }
70
- exports.helpMessage = helpMessage;
71
60
  function formatTemplates(templates) {
72
- return "\n\n".concat(spacer).concat(templates
73
- .map(function (t) { return "".concat(t.name).concat(' '.repeat(28 - t.name.length)).concat(t.description); })
74
- .join("\n".concat(spacer)));
61
+ return `\n\n${spacer}${templates.map((t)=>`${t.name}${' '.repeat(28 - t.name.length)}${t.description}`).join(`\n${spacer}`)}`;
75
62
  }
76
63
  function successMessage(projectDir, packageManager) {
77
- return "\n ".concat(header('Launch Application:'), "\n\n - cd ").concat(projectDir, "\n - ").concat(packageManager === 'yarn' ? 'yarn' : 'npm run', " dev or follow directions in ").concat(createTerminalLink('README.md', "file://".concat(path_1.default.resolve(projectDir, 'README.md'))), "\n\n ").concat(header('Documentation:'), "\n\n - ").concat(createTerminalLink('Getting Started', 'https://payloadcms.com/docs/getting-started/what-is-payload'), "\n - ").concat(createTerminalLink('Configuration', 'https://payloadcms.com/docs/configuration/overview'), "\n\n");
64
+ return `
65
+ ${header('Launch Application:')}
66
+
67
+ - cd ${projectDir}
68
+ - ${packageManager === 'yarn' ? 'yarn' : 'npm run'} dev or follow directions in ${createTerminalLink('README.md', `file://${_path.default.resolve(projectDir, 'README.md')}`)}
69
+
70
+ ${header('Documentation:')}
71
+
72
+ - ${createTerminalLink('Getting Started', 'https://payloadcms.com/docs/getting-started/what-is-payload')}
73
+ - ${createTerminalLink('Configuration', 'https://payloadcms.com/docs/configuration/overview')}
74
+
75
+ `;
78
76
  }
79
- exports.successMessage = successMessage;
80
77
  // Create terminalLink with fallback for unsupported terminals
81
78
  function createTerminalLink(text, url) {
82
- return (0, terminal_link_1.default)(text, url, {
83
- fallback: function (text, url) { return "".concat(text, ": ").concat(url); },
79
+ return (0, _terminallink.default)(text, url, {
80
+ fallback: (text, url)=>`${text}: ${url}`
84
81
  });
85
82
  }
86
- var templateObject_1, templateObject_2;
83
+
84
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9tZXNzYWdlcy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgY2hhbGsgZnJvbSAnY2hhbGsnXG5pbXBvcnQgZmlndXJlcyBmcm9tICdmaWd1cmVzJ1xuaW1wb3J0IHBhdGggZnJvbSAncGF0aCdcbmltcG9ydCB0ZXJtaW5hbExpbmsgZnJvbSAndGVybWluYWwtbGluaydcblxuaW1wb3J0IHR5cGUgeyBQcm9qZWN0VGVtcGxhdGUgfSBmcm9tICcuLi90eXBlcydcblxuaW1wb3J0IHsgZ2V0VmFsaWRUZW1wbGF0ZXMgfSBmcm9tICcuLi9saWIvdGVtcGxhdGVzJ1xuXG5jb25zdCBoZWFkZXIgPSAobWVzc2FnZTogc3RyaW5nKTogc3RyaW5nID0+IGAke2NoYWxrLnllbGxvdyhmaWd1cmVzLnN0YXIpfSAke2NoYWxrLmJvbGQobWVzc2FnZSl9YFxuXG5leHBvcnQgY29uc3Qgd2VsY29tZU1lc3NhZ2UgPSBjaGFsa2BcbiAge2dyZWVuIFdlbGNvbWUgdG8gUGF5bG9hZC4gTGV0J3MgY3JlYXRlIGEgcHJvamVjdCEgfVxuYFxuXG5jb25zdCBzcGFjZXIgPSAnICcucmVwZWF0KDgpXG5cbmV4cG9ydCBmdW5jdGlvbiBoZWxwTWVzc2FnZSgpOiBzdHJpbmcge1xuICBjb25zdCB2YWxpZFRlbXBsYXRlcyA9IGdldFZhbGlk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UJBQWlCLHNEQUFzRDs7QUFFbEcsQ0FBQztBQUNEO0FBRUEsOERBQThEO0FBQzlELFNBQVNBLG1CQUFtQkcsSUFBWSxFQUFFQyxHQUFXO0lBQ25ELE9BQU9DLElBQUFBLHFCQUFZLEVBQUNGLE1BQU1DLEtBQUs7UUFDN0JFLFVBQVUsQ0FBQ0gsTUFBTUMsTUFBUSxDQUFDLEVBQUVELEtBQUssRUFBRSxFQUFFQyxJQUFJLENBQUM7SUFDNUM7QUFDRiJ9
package/package.json CHANGED
@@ -1,23 +1,10 @@
1
1
  {
2
2
  "name": "create-payload-app",
3
+ "version": "1.0.0",
3
4
  "license": "MIT",
4
5
  "bin": {
5
6
  "create-payload-app": "bin/cli.js"
6
7
  },
7
- "scripts": {
8
- "build": "tsc && yarn copyfiles",
9
- "copyfiles": "copyfiles -u 1 \"src/templates/**\" \"src/lib/common-files/**\" dist",
10
- "clean": "rimraf dist",
11
- "typecheck": "tsc --noEmit",
12
- "lint": "eslint \"src/**/*.ts\"",
13
- "lint:fix": "eslint \"src/**/*.ts\" --fix",
14
- "lint-staged": "lint-staged --quiet",
15
- "test": "jest",
16
- "prepublishOnly": "yarn test && yarn clean && yarn build",
17
- "prepare": "husky install",
18
- "release:beta": "yarn publish --tag beta",
19
- "release": "yarn publish"
20
- },
21
8
  "files": [
22
9
  "package.json",
23
10
  "dist",
@@ -37,7 +24,6 @@
37
24
  "prompts": "^2.4.2",
38
25
  "terminal-link": "^2.1.1"
39
26
  },
40
- "version": "0.5.2",
41
27
  "devDependencies": {
42
28
  "@types/command-exists": "^1.2.0",
43
29
  "@types/degit": "^2.8.3",
@@ -45,29 +31,12 @@
45
31
  "@types/jest": "^27.0.3",
46
32
  "@types/node": "^16.6.2",
47
33
  "@types/prompts": "^2.4.1",
48
- "@typescript-eslint/eslint-plugin": "^5.41.0",
49
- "@typescript-eslint/parser": "^5.41.0",
50
- "copyfiles": "^2.4.1",
51
- "eslint": "^7.32.0",
52
- "eslint-config-airbnb-base": "^14.2.1",
53
- "eslint-config-prettier": "^8.3.0",
54
- "eslint-plugin-prettier": "^3.4.0",
55
- "husky": "^8.0.1",
56
- "jest": "^27.4.5",
57
- "lint-staged": "^13.0.3",
58
- "prettier": "^2.3.2",
59
- "rimraf": "^4.1.2",
60
- "ts-jest": "^27.1.1",
61
- "typescript": "^4.8.4"
34
+ "ts-jest": "^29.1.0"
62
35
  },
63
- "husky": {
64
- "hooks": {
65
- "pre-commit": "lint-staged"
66
- }
67
- },
68
- "lint-staged": {
69
- "*.{ts,tsx}": [
70
- "eslint \"src/**/*.ts\" --cache --fix"
71
- ]
36
+ "scripts": {
37
+ "build": "pnpm build:swc",
38
+ "build:swc": "swc ./src -d ./dist --config-file .swcrc",
39
+ "clean": "rimraf dist",
40
+ "test": "jest"
72
41
  }
73
- }
42
+ }
@@ -1,13 +0,0 @@
1
- {
2
- // Use IntelliSense to learn about possible attributes.
3
- // Hover to view descriptions of existing attributes.
4
- "configurations": [
5
- {
6
- "command": "ts-node -T ./src/index.ts -n asdf -t blank --db mongodb --no-deps",
7
- "cwd": "${workspaceFolder}",
8
- "name": "Debug",
9
- "request": "launch",
10
- "type": "node-terminal"
11
- },
12
- ]
13
- }