@titanpl/cli 2.0.4 → 3.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/package.json +2 -2
- package/templates/common/Dockerfile +0 -66
- package/templates/common/_dockerignore +0 -35
- package/templates/common/_gitignore +0 -33
- package/templates/common/app/t.native.d.ts +0 -2043
- package/templates/common/app/t.native.js +0 -39
- package/templates/extension/README.md +0 -69
- package/templates/extension/index.d.ts +0 -27
- package/templates/extension/index.js +0 -17
- package/templates/extension/jsconfig.json +0 -14
- package/templates/extension/native/Cargo.toml +0 -9
- package/templates/extension/native/src/lib.rs +0 -5
- package/templates/extension/package-lock.json +0 -522
- package/templates/extension/package.json +0 -26
- package/templates/extension/titan.json +0 -18
- package/templates/js/app/actions/getuser.js +0 -9
- package/templates/js/app/app.js +0 -7
- package/templates/js/eslint.config.js +0 -5
- package/templates/js/jsconfig.json +0 -27
- package/templates/js/package.json +0 -28
- package/templates/rust-js/app/actions/getuser.js +0 -9
- package/templates/rust-js/app/actions/rust_hello.rs +0 -14
- package/templates/rust-js/app/app.js +0 -9
- package/templates/rust-js/eslint.config.js +0 -5
- package/templates/rust-js/jsconfig.json +0 -27
- package/templates/rust-js/package.json +0 -27
- package/templates/rust-js/titan/bundle.js +0 -157
- package/templates/rust-js/titan/dev.js +0 -323
- package/templates/rust-js/titan/titan.js +0 -126
- package/templates/rust-ts/app/actions/getuser.ts +0 -9
- package/templates/rust-ts/app/actions/rust_hello.rs +0 -14
- package/templates/rust-ts/app/app.ts +0 -9
- package/templates/rust-ts/eslint.config.js +0 -12
- package/templates/rust-ts/package.json +0 -29
- package/templates/rust-ts/titan/bundle.js +0 -163
- package/templates/rust-ts/titan/dev.js +0 -435
- package/templates/rust-ts/titan/titan.d.ts +0 -19
- package/templates/rust-ts/titan/titan.js +0 -124
- package/templates/rust-ts/tsconfig.json +0 -28
- package/templates/ts/app/actions/getuser.ts +0 -9
- package/templates/ts/app/app.ts +0 -7
- package/templates/ts/eslint.config.js +0 -12
- package/templates/ts/package.json +0 -30
- package/templates/ts/tsconfig.json +0 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titanpl/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "The unified CLI for Titan Planet. Use it to create, manage, build, and deploy high-performance backend projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"titanpl",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"bin": {
|
|
19
19
|
"titan": "./index.js",
|
|
20
|
-
"
|
|
20
|
+
"t8n": "./index.js",
|
|
21
21
|
"tit": "./index.js"
|
|
22
22
|
},
|
|
23
23
|
"optionalDependencies": {
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
# ================================================================
|
|
2
|
-
# STAGE 1 — Build TitanPl
|
|
3
|
-
# ================================================================
|
|
4
|
-
FROM node:20.20.0-slim AS builder
|
|
5
|
-
|
|
6
|
-
WORKDIR /app
|
|
7
|
-
|
|
8
|
-
# Install native dependencies in case of native modules or hybrids
|
|
9
|
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
10
|
-
curl ca-certificates build-essential pkg-config libssl-dev git bash \
|
|
11
|
-
&& rm -rf /var/lib/apt/lists/*
|
|
12
|
-
|
|
13
|
-
ENV NODE_ENV=production
|
|
14
|
-
|
|
15
|
-
# ---------- Node Dependencies ----------
|
|
16
|
-
COPY package.json package-lock.json* ./
|
|
17
|
-
RUN npm install
|
|
18
|
-
|
|
19
|
-
# ---------- Copy Project ----------
|
|
20
|
-
COPY . .
|
|
21
|
-
|
|
22
|
-
# Run the Titan build command (compiles dist/)
|
|
23
|
-
RUN npx titan build
|
|
24
|
-
|
|
25
|
-
# ================================================================
|
|
26
|
-
# STAGE 2 — Gravity Engine (Production Ready)
|
|
27
|
-
# ================================================================
|
|
28
|
-
FROM node:20.20.0-slim
|
|
29
|
-
|
|
30
|
-
WORKDIR /app
|
|
31
|
-
|
|
32
|
-
# Ensure we have required OS-level certs if doing network fetching
|
|
33
|
-
RUN apt-get update && \
|
|
34
|
-
apt-get install -y --no-install-recommends ca-certificates curl && \
|
|
35
|
-
rm -rf /var/lib/apt/lists/*
|
|
36
|
-
|
|
37
|
-
# ---- Copy Production package.json and install ONLY dependencies ----
|
|
38
|
-
COPY package.json package-lock.json* ./
|
|
39
|
-
RUN npm ci --omit=dev
|
|
40
|
-
|
|
41
|
-
# ---- Copy Dist Build from Builder ----
|
|
42
|
-
COPY --from=builder /app/dist ./dist
|
|
43
|
-
|
|
44
|
-
# ---------------- OPTIONAL APP FOLDERS ----------------
|
|
45
|
-
# Static assets
|
|
46
|
-
# COPY --from=builder /app/app/static ./static
|
|
47
|
-
|
|
48
|
-
# Public assets
|
|
49
|
-
# COPY --from=builder /app/app/public ./public
|
|
50
|
-
|
|
51
|
-
# DB
|
|
52
|
-
# COPY --from=builder /app/app/db ./db
|
|
53
|
-
|
|
54
|
-
# ---- Create User After Copy ----
|
|
55
|
-
RUN useradd -m titan && chown -R titan:titan /app
|
|
56
|
-
USER titan
|
|
57
|
-
|
|
58
|
-
# ---- Platform Defaults ----
|
|
59
|
-
ENV HOST=0.0.0.0
|
|
60
|
-
ENV PORT=5100
|
|
61
|
-
ENV TITAN_DEV=0
|
|
62
|
-
|
|
63
|
-
EXPOSE 5100
|
|
64
|
-
|
|
65
|
-
# ---- Force Foreground Process via Titan CLI ----
|
|
66
|
-
CMD ["npx", "titan", "start"]
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
node_modules
|
|
2
|
-
npm-debug.log
|
|
3
|
-
.git
|
|
4
|
-
.gitignore
|
|
5
|
-
|
|
6
|
-
package-lock.json
|
|
7
|
-
yarn.lock
|
|
8
|
-
|
|
9
|
-
# Titan Gravity Engine
|
|
10
|
-
dist/
|
|
11
|
-
.titan/
|
|
12
|
-
.ext/
|
|
13
|
-
|
|
14
|
-
deploy/
|
|
15
|
-
|
|
16
|
-
# Rust Build Artifacts
|
|
17
|
-
server/target/
|
|
18
|
-
Cargo.lock
|
|
19
|
-
|
|
20
|
-
# OS Files
|
|
21
|
-
.DS_Store
|
|
22
|
-
Thumbs.db
|
|
23
|
-
*.tmp
|
|
24
|
-
*.bak
|
|
25
|
-
|
|
26
|
-
# Environment & Secrets
|
|
27
|
-
.env
|
|
28
|
-
.env.local
|
|
29
|
-
.env.*.local
|
|
30
|
-
|
|
31
|
-
# IDEs
|
|
32
|
-
.vscode/
|
|
33
|
-
.idea/
|
|
34
|
-
*.swp
|
|
35
|
-
*.swo
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# Node & Packages
|
|
2
|
-
node_modules/
|
|
3
|
-
npm-debug.log*
|
|
4
|
-
yarn-debug.log*
|
|
5
|
-
yarn-error.log*
|
|
6
|
-
package-lock.json
|
|
7
|
-
yarn.lock
|
|
8
|
-
|
|
9
|
-
# Titan Engine (Auto-generated - DO NOT COMMIT)
|
|
10
|
-
dist/
|
|
11
|
-
.titan/
|
|
12
|
-
.ext/
|
|
13
|
-
.env
|
|
14
|
-
|
|
15
|
-
# Rust Build Artifacts (If using Hybrid)
|
|
16
|
-
server/target/
|
|
17
|
-
Cargo.lock
|
|
18
|
-
|
|
19
|
-
# OS Files
|
|
20
|
-
.DS_Store
|
|
21
|
-
Thumbs.db
|
|
22
|
-
*.tmp
|
|
23
|
-
*.bak
|
|
24
|
-
|
|
25
|
-
# Environment & Secrets
|
|
26
|
-
.env.local
|
|
27
|
-
.env.*.local
|
|
28
|
-
|
|
29
|
-
# IDEs
|
|
30
|
-
.vscode/
|
|
31
|
-
.idea/
|
|
32
|
-
*.swp
|
|
33
|
-
*.swo
|