create-stackkit-app 0.1.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.
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ require('../dist/index.js');
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,25 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const execa_1 = __importDefault(require("execa"));
8
+ /**
9
+ * Thin wrapper that calls `stackkit init` with arguments
10
+ * This allows users to run `npx create-stackkit@latest my-app`
11
+ */
12
+ async function main() {
13
+ const args = process.argv.slice(2);
14
+ try {
15
+ // Call stackkit init with forwarded arguments
16
+ await (0, execa_1.default)('npx', ['stackkit-cli@latest', 'init', ...args], {
17
+ stdio: 'inherit',
18
+ });
19
+ }
20
+ catch (error) {
21
+ process.exit(1);
22
+ }
23
+ }
24
+ main();
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AACA,kDAA0B;AAE1B;;;GAGG;AACH,KAAK,UAAU,IAAI;IACjB,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAEnC,IAAI,CAAC;QACH,8CAA8C;QAC9C,MAAM,IAAA,eAAK,EAAC,KAAK,EAAE,CAAC,qBAAqB,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE;YAC3D,KAAK,EAAE,SAAS;SACjB,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,EAAE,CAAC"}
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "create-stackkit-app",
3
+ "version": "0.1.0",
4
+ "description": "Create a new StackKit project",
5
+ "main": "dist/index.js",
6
+ "bin": {
7
+ "create-stackkit": "./bin/create-stackkit.js"
8
+ },
9
+ "type": "commonjs",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/tariqul420/stackkit.git",
13
+ "directory": "apps/create-stackkit"
14
+ },
15
+ "homepage": "https://github.com/tariqul420/stackkit#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/tariqul420/stackkit/issues"
18
+ },
19
+ "scripts": {
20
+ "dev": "tsc --watch",
21
+ "build": "tsc",
22
+ "clean": "rm -rf dist",
23
+ "typecheck": "tsc --noEmit"
24
+ },
25
+ "keywords": [
26
+ "create",
27
+ "stackkit",
28
+ "generator",
29
+ "nextjs",
30
+ "template"
31
+ ],
32
+ "author": "Your Name",
33
+ "license": "MIT",
34
+ "dependencies": {
35
+ "execa": "^5.1.1"
36
+ },
37
+ "devDependencies": {
38
+ "@types/node": "^20.11.0",
39
+ "typescript": "^5.3.3"
40
+ }
41
+ }
package/src/index.ts ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ import execa from 'execa';
3
+
4
+ /**
5
+ * Thin wrapper that calls `stackkit init` with arguments
6
+ * This allows users to run `npx create-stackkit@latest my-app`
7
+ */
8
+ async function main() {
9
+ const args = process.argv.slice(2);
10
+
11
+ try {
12
+ // Call stackkit init with forwarded arguments
13
+ await execa('npx', ['stackkit-cli@latest', 'init', ...args], {
14
+ stdio: 'inherit',
15
+ });
16
+ } catch (error) {
17
+ process.exit(1);
18
+ }
19
+ }
20
+
21
+ main();
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./dist",
5
+ "rootDir": "./src"
6
+ },
7
+ "include": ["src/**/*"],
8
+ "exclude": ["node_modules", "dist"]
9
+ }