@chinawatdc/create-custom-stack 1.0.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 ADDED
@@ -0,0 +1,17 @@
1
+ # @chinawatdc/create-custom-stack
2
+
3
+ > CLI สำหรับสร้าง Boilerplate เฉพาะกลุ่ม เช่น Next.js + Tailwind + Zod + Prisma
4
+
5
+ ## 📌 แผนการพัฒนา (Roadmap)
6
+ 1. ออกแบบ API และโครงสร้างฟังก์ชันหลัก
7
+ 2. เขียนโค้ดด้วย TypeScript
8
+ 3. ทดสอบการทำงาน (Unit Tests)
9
+ 4. อัปโหลดขึ้น npm
10
+
11
+ ## 🚀 วิธีติดตั้ง (ในอนาคต)
12
+ ```bash
13
+ npm install @chinawatdc/create-custom-stack
14
+ ```
15
+
16
+ ## 📖 วิธีใช้งานเบื้องต้น
17
+ *รอการอัปเดตหลังจากพัฒนาเสร็จสิ้น...*
@@ -0,0 +1,3 @@
1
+ declare function initStack(options: any): boolean;
2
+
3
+ export { initStack };
@@ -0,0 +1,3 @@
1
+ declare function initStack(options: any): boolean;
2
+
3
+ export { initStack };
package/dist/index.js ADDED
@@ -0,0 +1,32 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/index.ts
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ initStack: () => initStack
23
+ });
24
+ module.exports = __toCommonJS(index_exports);
25
+ function initStack(options) {
26
+ console.log("Initializing custom stack with options:", options);
27
+ return true;
28
+ }
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ initStack
32
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,8 @@
1
+ // src/index.ts
2
+ function initStack(options) {
3
+ console.log("Initializing custom stack with options:", options);
4
+ return true;
5
+ }
6
+ export {
7
+ initStack
8
+ };
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@chinawatdc/create-custom-stack",
3
+ "version": "1.0.0",
4
+ "main": "./dist/index.js",
5
+ "scripts": {
6
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
7
+ "dev": "tsup src/index.ts --format cjs,esm --watch",
8
+ "test": "echo \"No test yet\""
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "description": "CLI สำหรับสร้าง Boilerplate เฉพาะกลุ่ม เช่น Next.js + Tailwind + Zod + Prisma",
14
+ "module": "./dist/index.mjs",
15
+ "types": "./dist/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.mjs",
20
+ "require": "./dist/index.js"
21
+ }
22
+ },
23
+ "devDependencies": {
24
+ "tsup": "^8.5.1",
25
+ "typescript": "^5.4.5"
26
+ }
27
+ }
package/src/index.ts ADDED
@@ -0,0 +1,4 @@
1
+ export function initStack(options: any) {
2
+ console.log("Initializing custom stack with options:", options);
3
+ return true;
4
+ }