create-compute 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 computesdk
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # create-compute
2
+
3
+ Create ComputeSDK projects with a single command.
4
+
5
+ ## Usage
6
+
7
+ ```bash
8
+ npx create-compute my-app
9
+ ```
10
+
11
+ ## Status
12
+
13
+ This CLI tool is under development. Check back soon for template support and project scaffolding features.
14
+
15
+ ## Development
16
+
17
+ This package is part of the ComputeSDK monorepo. To work on it locally:
18
+
19
+ ```bash
20
+ # From the monorepo root
21
+ pnpm install
22
+ pnpm build
23
+
24
+ # Test the CLI
25
+ node packages/create-compute/dist/index.js
26
+ ```
package/dist/index.js ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/index.ts
4
+ import { Command } from "commander";
5
+ import pc from "picocolors";
6
+ import { readFileSync } from "fs";
7
+ import { fileURLToPath } from "url";
8
+ import { dirname, join } from "path";
9
+ var __filename = fileURLToPath(import.meta.url);
10
+ var __dirname = dirname(__filename);
11
+ var packageJson = JSON.parse(
12
+ readFileSync(join(__dirname, "..", "package.json"), "utf-8")
13
+ );
14
+ var program = new Command();
15
+ program.name("create-compute").description("Create ComputeSDK projects with a single command").version(packageJson.version).argument("[project-name]", "Name of your project").option("-t, --template <template>", "Template to use", "basic").action((projectName, options) => {
16
+ console.log(pc.bold(pc.cyan("\n\u{1F4E6} Welcome to create-compute!\n")));
17
+ if (projectName) {
18
+ console.log(`Creating a new ComputeSDK project: ${pc.green(projectName)}`);
19
+ console.log(`Using template: ${pc.yellow(options.template)}`);
20
+ } else {
21
+ console.log("No project name provided. Run with a project name:");
22
+ console.log(pc.gray(" npx create-compute my-app"));
23
+ }
24
+ console.log(pc.gray("\nThis CLI is under development. Check back soon!"));
25
+ });
26
+ program.parse();
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import { Command } from 'commander'\nimport pc from 'picocolors'\nimport { readFileSync } from 'fs'\nimport { fileURLToPath } from 'url'\nimport { dirname, join } from 'path'\n\nconst __filename = fileURLToPath(import.meta.url)\nconst __dirname = dirname(__filename)\n\n// Read package.json to get version\nconst packageJson = JSON.parse(\n readFileSync(join(__dirname, '..', 'package.json'), 'utf-8')\n)\n\nconst program = new Command()\n\nprogram\n .name('create-compute')\n .description('Create ComputeSDK projects with a single command')\n .version(packageJson.version)\n .argument('[project-name]', 'Name of your project')\n .option('-t, --template <template>', 'Template to use', 'basic')\n .action((projectName, options) => {\n console.log(pc.bold(pc.cyan('\\n📦 Welcome to create-compute!\\n')))\n \n if (projectName) {\n console.log(`Creating a new ComputeSDK project: ${pc.green(projectName)}`)\n console.log(`Using template: ${pc.yellow(options.template)}`)\n } else {\n console.log('No project name provided. Run with a project name:')\n console.log(pc.gray(' npx create-compute my-app'))\n }\n \n console.log(pc.gray('\\nThis CLI is under development. Check back soon!'))\n })\n\nprogram.parse()"],"mappings":";;;AAAA,SAAS,eAAe;AACxB,OAAO,QAAQ;AACf,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;AAC9B,SAAS,SAAS,YAAY;AAE9B,IAAM,aAAa,cAAc,YAAY,GAAG;AAChD,IAAM,YAAY,QAAQ,UAAU;AAGpC,IAAM,cAAc,KAAK;AAAA,EACvB,aAAa,KAAK,WAAW,MAAM,cAAc,GAAG,OAAO;AAC7D;AAEA,IAAM,UAAU,IAAI,QAAQ;AAE5B,QACG,KAAK,gBAAgB,EACrB,YAAY,kDAAkD,EAC9D,QAAQ,YAAY,OAAO,EAC3B,SAAS,kBAAkB,sBAAsB,EACjD,OAAO,6BAA6B,mBAAmB,OAAO,EAC9D,OAAO,CAAC,aAAa,YAAY;AAChC,UAAQ,IAAI,GAAG,KAAK,GAAG,KAAK,0CAAmC,CAAC,CAAC;AAEjE,MAAI,aAAa;AACf,YAAQ,IAAI,sCAAsC,GAAG,MAAM,WAAW,CAAC,EAAE;AACzE,YAAQ,IAAI,mBAAmB,GAAG,OAAO,QAAQ,QAAQ,CAAC,EAAE;AAAA,EAC9D,OAAO;AACL,YAAQ,IAAI,oDAAoD;AAChE,YAAQ,IAAI,GAAG,KAAK,6BAA6B,CAAC;AAAA,EACpD;AAEA,UAAQ,IAAI,GAAG,KAAK,mDAAmD,CAAC;AAC1E,CAAC;AAEH,QAAQ,MAAM;","names":[]}
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "create-compute",
3
+ "version": "0.0.1",
4
+ "description": "Create ComputeSDK projects with a single command",
5
+ "author": "Garrison",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "bin": {
9
+ "create-compute": "./dist/index.js"
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "README.md"
14
+ ],
15
+ "keywords": [
16
+ "create",
17
+ "init",
18
+ "scaffold",
19
+ "computesdk",
20
+ "sandbox",
21
+ "cli"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/computesdk/computesdk.git"
26
+ },
27
+ "homepage": "https://github.com/computesdk/computesdk",
28
+ "bugs": {
29
+ "url": "https://github.com/computesdk/computesdk/issues"
30
+ },
31
+ "dependencies": {
32
+ "commander": "^11.1.0",
33
+ "picocolors": "^1.0.0"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "^20.0.0",
37
+ "@vitest/coverage-v8": "^1.0.0",
38
+ "eslint": "^8.37.0",
39
+ "rimraf": "^5.0.0",
40
+ "tsup": "^8.0.0",
41
+ "typescript": "^5.0.0",
42
+ "vitest": "^1.0.0"
43
+ },
44
+ "scripts": {
45
+ "build": "tsup",
46
+ "clean": "rimraf dist",
47
+ "dev": "tsup --watch",
48
+ "test": "vitest",
49
+ "test:watch": "vitest watch",
50
+ "test:coverage": "vitest run --coverage",
51
+ "typecheck": "tsc --noEmit",
52
+ "lint": "eslint ."
53
+ }
54
+ }