create-make 0.7.4 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/version.json +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# create-make
|
|
2
2
|
[](https://www.npmjs.com/package/create-make) [](https://www.npmjs.com/package/create-make)
|
|
3
|
+
|
|
3
4
|
An advanced CLI tool for creating projects from GitHub repositories or custom templates with lightning-fast setup.
|
|
4
5
|
|
|
6
|
+
## 🎥 Video Demo
|
|
7
|
+
|
|
8
|
+
[](https://www.youtube.com/watch?v=ZSE7zMnBFkw)
|
|
9
|
+
|
|
5
10
|
## ✨ Features
|
|
6
11
|
- ⚡ Blazing Fast: Clone templates directly from GitHub or local configs
|
|
7
12
|
|
|
@@ -129,6 +134,7 @@ Built-in Templates (TypeScript Category)
|
|
|
129
134
|
| vite-phaser-ts | Game development with Phaser | Vite + Phaser + TypeScript |
|
|
130
135
|
| vite-node-ts | Node.js backend with Vite | Vite + Node.js + TypeScript |
|
|
131
136
|
| vite-monorepo-ts | Monorepo setup with Vite | Vite + Monorepo + TypeScript |
|
|
137
|
+
| vite-lib-ts | TypeScript Library with Vite | Vite + TypeScript Library |
|
|
132
138
|
|
|
133
139
|
__Pro Tip__: Create an alias for even faster usage! Add this to your shell config:
|
|
134
140
|
```bash
|
package/dist/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const node_child_process = require('node:child_process');
|
|
|
7
7
|
const node_path = require('node:path');
|
|
8
8
|
const inquirer = require('inquirer');
|
|
9
9
|
|
|
10
|
-
var OS_NAME=process.platform;var OS_APP_HOME=process.env.APPDATA||(OS_NAME=="darwin"?process.env.HOME+"/Library/Preferences":process.env.HOME+"/.local/share");var APP_PATH="".concat(OS_APP_HOME,"/create-make");var CONFIG_PATH="".concat(APP_PATH,"/config.json");var DEFAULT_CATEGORIES={TypeScript:{"vite-vanilla-ts":{name:"Vanilla",repo:"https://github.com/z-starter/vite-vanilla-ts.git",args:[{str:"vite-vanilla-ts",value:"projectName"}]},"vite-phaser-ts":{name:"Phaser",repo:"https://github.com/z-starter/vite-phaser-ts.git",args:[{str:"vite-phaser-ts",value:"projectName"}]},"vite-node-ts":{name:"Vite Node",repo:"https://github.com/z-starter/vite-node-ts.git",args:[{str:"vite-node-ts",value:"projectName"}]},"vite-monorepo-ts":{name:"Vite Monorepo",repo:"https://github.com/z-starter/vite-monorepo-ts.git",args:[{str:"vite-monorepo-ts",value:"projectName"}]}}};var SCHEMA_PATH="".concat(APP_PATH,"/schema.json");var DEFAULT_SCHEMA={$schema:"https://json-schema.org/draft-07/schema",$id:"https://example.com/product.schema.json",title:"Create Make",description:"An advanced CLI tool for creating projects from GitHub repositories or custom templates with lightning-fast setup.",type:"object",properties:{categories:{type:"object",additionalProperties:{type:"object",additionalProperties:{type:"object",properties:{name:{type:"string",default:"templateName"},repo:{type:"string",default:"repoUrl"},args:{type:"array",items:{type:"object",properties:{str:{type:"string",default:"contentToReplace"},value:{type:"string",default:"projectName"}}}}}}}}}};
|
|
10
|
+
var OS_NAME=process.platform;var OS_APP_HOME=process.env.APPDATA||(OS_NAME=="darwin"?process.env.HOME+"/Library/Preferences":process.env.HOME+"/.local/share");var APP_PATH="".concat(OS_APP_HOME,"/create-make");var CONFIG_PATH="".concat(APP_PATH,"/config.json");var DEFAULT_CATEGORIES={TypeScript:{"vite-vanilla-ts":{name:"Vanilla",repo:"https://github.com/z-starter/vite-vanilla-ts.git",args:[{str:"vite-vanilla-ts",value:"projectName"}]},"vite-phaser-ts":{name:"Phaser",repo:"https://github.com/z-starter/vite-phaser-ts.git",args:[{str:"vite-phaser-ts",value:"projectName"}]},"vite-node-ts":{name:"Vite Node",repo:"https://github.com/z-starter/vite-node-ts.git",args:[{str:"vite-node-ts",value:"projectName"}]},"vite-monorepo-ts":{name:"Vite Monorepo",repo:"https://github.com/z-starter/vite-monorepo-ts.git",args:[{str:"vite-monorepo-ts",value:"projectName"}]},"vite-lib-ts":{name:"Vite Library",repo:"https://github.com/z-starter/vite-lib-ts.git",args:[{str:"vite-lib-ts",value:"projectName"}]}}};var SCHEMA_PATH="".concat(APP_PATH,"/schema.json");var DEFAULT_SCHEMA={$schema:"https://json-schema.org/draft-07/schema",$id:"https://example.com/product.schema.json",title:"Create Make",description:"An advanced CLI tool for creating projects from GitHub repositories or custom templates with lightning-fast setup.",type:"object",properties:{categories:{type:"object",additionalProperties:{type:"object",additionalProperties:{type:"object",properties:{name:{type:"string",default:"templateName"},repo:{type:"string",default:"repoUrl"},args:{type:"array",items:{type:"object",properties:{str:{type:"string",default:"contentToReplace"},value:{type:"string",default:"projectName"}}}}}}}}}};
|
|
11
11
|
|
|
12
12
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
13
|
try {
|
|
@@ -113,7 +113,7 @@ var getCli = function() {
|
|
|
113
113
|
return _ts_generator$2(this, function(_state) {
|
|
114
114
|
switch (_state.label) {
|
|
115
115
|
case 0:
|
|
116
|
-
version = "0.
|
|
116
|
+
version = "0.8.0";
|
|
117
117
|
yargsInstance = yargs(helpers.hideBin(process.argv)).scriptName("create-make").usage("Usage: $0 [projectName] [options]").epilogue("\n\u{1F4E6} Create projects in seconds with built-in or custom templates!\n\nQuick Start:\n \u2022 Interactive mode: $0 (Guided setup)\n \u2022 Built-in template: $0 my-app -t vite-vanilla-ts (Skip prompts)\n \u2022 Custom template: $0 my-project -o express-api (Use custom config)\n\n\u{1F4A1} Tips:\n \u2022 When using --template or --other-template, projectName is required\n \u2022 Omit projectName to be prompted for it\n \u2022 Add custom templates via config file at ".concat(CONFIG_PATH, "\n\nFor more information, visit: https://github.com/z-npm/create-make\n")).example("$0", "Start interactive mode - guided project setup").example("$0 my-project", "Set project name, then choose template interactively").example("$0 my-app --template vite-vanilla-ts", "Create Vite web project (skips prompts)").example("$0 my-api -t vite-node-ts", "Create Vite Node project (alias, skips prompts)").example("$0 my-project --other-template my-backend", "Use custom template from config").example("$0 my-site -o react-starter", "Use custom template (alias)").option("template", { alias: "t", type: "string", describe: "Use built-in template (skips category/template selection)", requiresArg: true, conflicts: "other-template" }).option("other-template", { alias: "o", type: "string", describe: "Use custom template from config (skips to custom template selection)", requiresArg: true, conflicts: "template" }).option("help", { alias: "h", type: "boolean", describe: "Show help information" }).check(function(argv2) {
|
|
118
118
|
if ((argv2.template || argv2["other-template"]) && !argv2._[0]) {
|
|
119
119
|
throw new Error("Project name is required when using --template or --other-template");
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { execSync } from 'node:child_process';
|
|
|
5
5
|
import { join } from 'node:path';
|
|
6
6
|
import inquirer from 'inquirer';
|
|
7
7
|
|
|
8
|
-
var OS_NAME=process.platform;var OS_APP_HOME=process.env.APPDATA||(OS_NAME=="darwin"?process.env.HOME+"/Library/Preferences":process.env.HOME+"/.local/share");var APP_PATH="".concat(OS_APP_HOME,"/create-make");var CONFIG_PATH="".concat(APP_PATH,"/config.json");var DEFAULT_CATEGORIES={TypeScript:{"vite-vanilla-ts":{name:"Vanilla",repo:"https://github.com/z-starter/vite-vanilla-ts.git",args:[{str:"vite-vanilla-ts",value:"projectName"}]},"vite-phaser-ts":{name:"Phaser",repo:"https://github.com/z-starter/vite-phaser-ts.git",args:[{str:"vite-phaser-ts",value:"projectName"}]},"vite-node-ts":{name:"Vite Node",repo:"https://github.com/z-starter/vite-node-ts.git",args:[{str:"vite-node-ts",value:"projectName"}]},"vite-monorepo-ts":{name:"Vite Monorepo",repo:"https://github.com/z-starter/vite-monorepo-ts.git",args:[{str:"vite-monorepo-ts",value:"projectName"}]}}};var SCHEMA_PATH="".concat(APP_PATH,"/schema.json");var DEFAULT_SCHEMA={$schema:"https://json-schema.org/draft-07/schema",$id:"https://example.com/product.schema.json",title:"Create Make",description:"An advanced CLI tool for creating projects from GitHub repositories or custom templates with lightning-fast setup.",type:"object",properties:{categories:{type:"object",additionalProperties:{type:"object",additionalProperties:{type:"object",properties:{name:{type:"string",default:"templateName"},repo:{type:"string",default:"repoUrl"},args:{type:"array",items:{type:"object",properties:{str:{type:"string",default:"contentToReplace"},value:{type:"string",default:"projectName"}}}}}}}}}};
|
|
8
|
+
var OS_NAME=process.platform;var OS_APP_HOME=process.env.APPDATA||(OS_NAME=="darwin"?process.env.HOME+"/Library/Preferences":process.env.HOME+"/.local/share");var APP_PATH="".concat(OS_APP_HOME,"/create-make");var CONFIG_PATH="".concat(APP_PATH,"/config.json");var DEFAULT_CATEGORIES={TypeScript:{"vite-vanilla-ts":{name:"Vanilla",repo:"https://github.com/z-starter/vite-vanilla-ts.git",args:[{str:"vite-vanilla-ts",value:"projectName"}]},"vite-phaser-ts":{name:"Phaser",repo:"https://github.com/z-starter/vite-phaser-ts.git",args:[{str:"vite-phaser-ts",value:"projectName"}]},"vite-node-ts":{name:"Vite Node",repo:"https://github.com/z-starter/vite-node-ts.git",args:[{str:"vite-node-ts",value:"projectName"}]},"vite-monorepo-ts":{name:"Vite Monorepo",repo:"https://github.com/z-starter/vite-monorepo-ts.git",args:[{str:"vite-monorepo-ts",value:"projectName"}]},"vite-lib-ts":{name:"Vite Library",repo:"https://github.com/z-starter/vite-lib-ts.git",args:[{str:"vite-lib-ts",value:"projectName"}]}}};var SCHEMA_PATH="".concat(APP_PATH,"/schema.json");var DEFAULT_SCHEMA={$schema:"https://json-schema.org/draft-07/schema",$id:"https://example.com/product.schema.json",title:"Create Make",description:"An advanced CLI tool for creating projects from GitHub repositories or custom templates with lightning-fast setup.",type:"object",properties:{categories:{type:"object",additionalProperties:{type:"object",additionalProperties:{type:"object",properties:{name:{type:"string",default:"templateName"},repo:{type:"string",default:"repoUrl"},args:{type:"array",items:{type:"object",properties:{str:{type:"string",default:"contentToReplace"},value:{type:"string",default:"projectName"}}}}}}}}}};
|
|
9
9
|
|
|
10
10
|
function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11
11
|
try {
|
|
@@ -111,7 +111,7 @@ var getCli = function() {
|
|
|
111
111
|
return _ts_generator$2(this, function(_state) {
|
|
112
112
|
switch (_state.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
version = "0.
|
|
114
|
+
version = "0.8.0";
|
|
115
115
|
yargsInstance = yargs(hideBin(process.argv)).scriptName("create-make").usage("Usage: $0 [projectName] [options]").epilogue("\n\u{1F4E6} Create projects in seconds with built-in or custom templates!\n\nQuick Start:\n \u2022 Interactive mode: $0 (Guided setup)\n \u2022 Built-in template: $0 my-app -t vite-vanilla-ts (Skip prompts)\n \u2022 Custom template: $0 my-project -o express-api (Use custom config)\n\n\u{1F4A1} Tips:\n \u2022 When using --template or --other-template, projectName is required\n \u2022 Omit projectName to be prompted for it\n \u2022 Add custom templates via config file at ".concat(CONFIG_PATH, "\n\nFor more information, visit: https://github.com/z-npm/create-make\n")).example("$0", "Start interactive mode - guided project setup").example("$0 my-project", "Set project name, then choose template interactively").example("$0 my-app --template vite-vanilla-ts", "Create Vite web project (skips prompts)").example("$0 my-api -t vite-node-ts", "Create Vite Node project (alias, skips prompts)").example("$0 my-project --other-template my-backend", "Use custom template from config").example("$0 my-site -o react-starter", "Use custom template (alias)").option("template", { alias: "t", type: "string", describe: "Use built-in template (skips category/template selection)", requiresArg: true, conflicts: "other-template" }).option("other-template", { alias: "o", type: "string", describe: "Use custom template from config (skips to custom template selection)", requiresArg: true, conflicts: "template" }).option("help", { alias: "h", type: "boolean", describe: "Show help information" }).check(function(argv2) {
|
|
116
116
|
if ((argv2.template || argv2["other-template"]) && !argv2._[0]) {
|
|
117
117
|
throw new Error("Project name is required when using --template or --other-template");
|
package/dist/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-make",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "An advanced CLI tool for creating projects from GitHub repositories or custom templates with lightning-fast setup.",
|
|
5
5
|
"homepage": "https://github.com/z-npm/create-make#readme",
|
|
6
6
|
"docs": "https://github.com/z-npm/create-make#readme",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@types/inquirer": "^9.0.9",
|
|
66
|
-
"@types/node": "^25.0.
|
|
66
|
+
"@types/node": "^25.0.9",
|
|
67
67
|
"@types/yargs": "^17.0.35",
|
|
68
68
|
"@z-code/vite-plugin-swc": "^0.5.5",
|
|
69
69
|
"rollup-plugin-node-externals": "^8.1.2",
|
|
70
70
|
"typescript": "^5.9.3",
|
|
71
|
-
"vite": "^7.3.
|
|
71
|
+
"vite": "^7.3.1"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"inquirer": "^13.
|
|
74
|
+
"inquirer": "^13.2.0",
|
|
75
75
|
"yargs": "^18.0.0"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|