@decohere/create 0.0.1-dev.39 → 0.0.1-dev.40
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/commonjs/src/models/const.js +3 -1
- package/commonjs/src/models/package-json.model.js +15 -8
- package/commonjs/src/webapi/const.js +22 -0
- package/commonjs/src/webapi/create-api.js +14 -5
- package/commonjs/src/webapi/features/auth.feature.js +3 -3
- package/commonjs/src/webapi/features/database.feature.js +3 -3
- package/commonjs/src/webapi/models/api-package-json.model.js +2 -1
- package/commonjs/src/webapi/models/github-ci.model.js +193 -0
- package/commonjs/src/webapi/models/production-dockerfile.model.js +98 -0
- package/es6/src/models/const.js +3 -1
- package/es6/src/models/package-json.model.js +15 -8
- package/es6/src/webapi/const.js +7 -0
- package/es6/src/webapi/create-api.js +10 -3
- package/es6/src/webapi/features/auth.feature.js +2 -2
- package/es6/src/webapi/features/database.feature.js +2 -2
- package/es6/src/webapi/models/api-package-json.model.js +2 -1
- package/es6/src/webapi/models/github-ci.model.js +186 -0
- package/es6/src/webapi/models/production-dockerfile.model.js +91 -0
- package/package.json +2 -2
- package/types/src/models/const.d.ts +2 -0
- package/types/src/models/package-json.model.d.ts +3 -1
- package/types/src/webapi/const.d.ts +7 -0
- package/types/src/webapi/create-api.d.ts +1 -1
- package/types/src/webapi/models/github-ci.model.d.ts +9 -0
- package/types/src/webapi/models/production-dockerfile.model.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decohere/create",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.40",
|
|
4
4
|
"description": "Scaffold a new Decohere project — build with Forge, serve with Flux",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"decohere",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@decohere/nexus": "0.0.1-dev.
|
|
24
|
+
"@decohere/nexus": "0.0.1-dev.40",
|
|
25
25
|
"commander": "^13.1.0",
|
|
26
26
|
"openapi-to-postmanv2": "^5.0.0"
|
|
27
27
|
},
|
|
@@ -12,7 +12,9 @@ export declare class PackageJson implements KeyedModel {
|
|
|
12
12
|
private readonly _dependencies;
|
|
13
13
|
private readonly _devDependencies;
|
|
14
14
|
private readonly _scripts;
|
|
15
|
-
constructor(name: string
|
|
15
|
+
constructor(name: string, options?: {
|
|
16
|
+
startEntry?: string;
|
|
17
|
+
});
|
|
16
18
|
addDependency(name: string, version: string): this;
|
|
17
19
|
addDevDependency(name: string, version: string): this;
|
|
18
20
|
addScript(name: string, command: string): this;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Relative path of the scaffolded API project inside the monorepo. */
|
|
2
|
+
export declare const WEBAPI_PROJECT_DIR = "projects/api";
|
|
3
|
+
/**
|
|
4
|
+
* Forge release entry for the scaffolded API (`pack: true` → per-target outDir).
|
|
5
|
+
* Keep in sync with root `package.json` `"start"` and the production Dockerfile.
|
|
6
|
+
*/
|
|
7
|
+
export declare const WEBAPI_RELEASE_ENTRY = "dist/release/projects/api/es6/src/main.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KeyedModel, SourceFile } from "../../models/source-file.js";
|
|
2
|
+
/**
|
|
3
|
+
* Minimal GitHub Actions for scaffolded apps: lint ∥ test, build gate on default branch,
|
|
4
|
+
* npm publish after CI (skips private packages). No default forge docker --push.
|
|
5
|
+
*/
|
|
6
|
+
export declare class GithubCiWorkflows implements KeyedModel {
|
|
7
|
+
readonly key: string;
|
|
8
|
+
files(): SourceFile[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { KeyedModel, SourceFile } from "../../models/source-file.js";
|
|
2
|
+
/**
|
|
3
|
+
* Repo-root production Dockerfile for PaaS (Railway/Fly) and local `docker build`.
|
|
4
|
+
* Runs conventional `pnpm run build` / `pnpm start` so Nixpacks and Docker share scripts.
|
|
5
|
+
*/
|
|
6
|
+
export declare class WebapiProductionDockerfile implements KeyedModel {
|
|
7
|
+
readonly key: string;
|
|
8
|
+
files(): SourceFile[];
|
|
9
|
+
}
|