scale-stack 0.0.1-alpha.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.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/dist/index.js +24 -0
  3. package/package.json +56 -0
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # Scale Stack
2
+
3
+ An opinionated scaffolding engine for Next.js 16.2+ projects. Scale Stack automates the setup of a colocation-first architecture, type-safe data layers, and an AI-native development environment.
4
+
5
+ See [PRD.md](PRD.md) for the full product requirements document.
6
+
7
+ ## Repository layout
8
+
9
+ This repository contains the **Scale Stack CLI** — the scaffolding engine, DAG runner, generators, and `sync` command. Running the CLI produces a **generated application template** (a standalone Next.js project) with optional modules layered on via CLI flags.
10
+
11
+ ## Status
12
+
13
+ Under active development. No published packages yet.
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+
3
+ // src/cli/index.ts
4
+ import { Command } from "commander";
5
+ import { readFileSync } from "fs";
6
+ import { fileURLToPath } from "url";
7
+ import { dirname, resolve } from "path";
8
+ var __dirname = dirname(fileURLToPath(import.meta.url));
9
+ var pkgVersion = "0.0.0";
10
+ try {
11
+ const pkg = JSON.parse(
12
+ readFileSync(resolve(__dirname, "../package.json"), "utf-8")
13
+ );
14
+ pkgVersion = pkg.version ?? pkgVersion;
15
+ } catch {
16
+ }
17
+ var program = new Command().name("scale-stack").description("Opinionated scaffolding engine for Next.js projects").version(pkgVersion);
18
+ program.command("init").description("Scaffold a new Scale Stack project").argument("[name]", "Project name").action((_name) => {
19
+ console.log("init is not yet implemented");
20
+ });
21
+ program.command("sync").description("Update an existing Scale Stack project").action(() => {
22
+ console.log("sync is not yet implemented");
23
+ });
24
+ program.parse();
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "scale-stack",
3
+ "version": "0.0.1-alpha.0",
4
+ "description": "Opinionated scaffolding engine for Next.js projects",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./dist/index.js"
9
+ }
10
+ },
11
+ "bin": {
12
+ "scale-stack": "dist/index.js"
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "scripts": {
21
+ "build": "tsup",
22
+ "dev": "tsup --watch",
23
+ "test": "vitest run",
24
+ "test:watch": "vitest",
25
+ "lint": "eslint . && prettier --check .",
26
+ "fix": "eslint . --fix && prettier --write .",
27
+ "prepublishOnly": "pnpm build",
28
+ "release": "pnpm build && npm publish",
29
+ "release:alpha": "pnpm build && npm publish --tag alpha"
30
+ },
31
+ "keywords": [],
32
+ "author": "balazs.farago@scale.com",
33
+ "license": "ISC",
34
+ "devDependencies": {
35
+ "@eslint/css": "^1.1.0",
36
+ "@eslint/js": "^10.0.1",
37
+ "@types/ejs": "^3.1.5",
38
+ "@types/node": "^25.6.0",
39
+ "@types/semver": "^7.7.1",
40
+ "eslint": "^10.2.0",
41
+ "globals": "^17.5.0",
42
+ "jiti": "^2.6.1",
43
+ "prettier": "^3.8.2",
44
+ "tsup": "^8.5.1",
45
+ "typescript": "^6.0.2",
46
+ "typescript-eslint": "^8.58.2",
47
+ "vitest": "^4.1.4"
48
+ },
49
+ "dependencies": {
50
+ "@clack/prompts": "^1.2.0",
51
+ "commander": "^14.0.3",
52
+ "ejs": "^5.0.2",
53
+ "picocolors": "^1.1.1",
54
+ "semver": "^7.7.4"
55
+ }
56
+ }