@synopackageland/templates 0.35.4 → 0.35.5
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/README.md +19 -0
- package/package.json +1 -1
- package/templates/_shared/e2e.config.ts +3 -0
- package/templates/_shared/package.json +14 -0
- package/templates/_shared/tests/e2e/smoke.e2e.ts +5 -0
- package/templates/binary/gitignore +4 -0
- package/templates/compose/gitignore +5 -0
- package/templates/native-go/gitignore +4 -0
- package/templates/native-go-vue/gitignore +4 -0
- package/templates/native-node/gitignore +4 -0
- package/templates/native-node-vue/gitignore +4 -0
- package/templates/native-python/gitignore +4 -0
- package/templates/native-python-vue/gitignore +4 -0
- package/templates/native-rust/gitignore +4 -0
- package/templates/native-rust-vue/gitignore +4 -0
package/README.md
CHANGED
|
@@ -313,3 +313,22 @@ ports prefill the DSM wizard, selected values flow through the SDK-generated
|
|
|
313
313
|
configuration and DSM service definition, and upgrades retain the selection.
|
|
314
314
|
Changing ports uses reinstall. Declare `{port: gateway_https}` runtime bindings
|
|
315
315
|
when an upstream application needs its public port in its own configuration.
|
|
316
|
+
|
|
317
|
+
## App-open smoke
|
|
318
|
+
|
|
319
|
+
Every generated project includes `tests/e2e/smoke.e2e.ts`, `e2e.config.ts` and
|
|
320
|
+
a root `package.json`. Run `npm install` at the project root, install Chromium once with
|
|
321
|
+
`npx @e2e-dev/web install chromium`, then run `npm run e2e:smoke`. Set `DSM_E2E_SSH` and private mode-600 account files in
|
|
322
|
+
`DSM_E2E_ACCOUNT_ADMIN` and `DSM_E2E_ACCOUNT_NORMAL`; grant the normal account
|
|
323
|
+
Application Privileges first. Missing normal credentials/profile produces a
|
|
324
|
+
reported skip. Profiles reuse the existing CLI target/user cache. `.env` and
|
|
325
|
+
`.e2e/` stay private and untracked.
|
|
326
|
+
|
|
327
|
+
The shared CLI helper derives the launch id and entry from `dsm-package.yaml`,
|
|
328
|
+
checks ready content for administrator and normal users, and checks the login
|
|
329
|
+
gate in a fresh anonymous context. Keep a content-specific `ready` selector
|
|
330
|
+
(or `{text: 'Exact text'}`); wrapped upstream Apps must replace the template
|
|
331
|
+
marker with their own. Use `entry` only for a configured entry override. An
|
|
332
|
+
entry declared upstream-authenticated in the manifest also needs `publicLogin`
|
|
333
|
+
to identify its own login page. A DSM-gated entry cannot opt out of the gate.
|
|
334
|
+
This smoke checks opening only; it does not install packages or change accounts.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synopackageland/templates",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.5",
|
|
4
4
|
"description": "Project templates for synopkgland init: native-go, native-python, native-node and native-rust (plain or Vue, with jobs, delegate and root-ops overlays), binary and compose.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "module",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"e2e:smoke": "node --env-file-if-exists=.env node_modules/@synopackageland/cli/dist/e2e/dsm.js tunnel -- e2e run tests/e2e/smoke.e2e.ts"
|
|
6
|
+
},
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@synopackageland/cli": "^0.41.6",
|
|
9
|
+
"@e2e-dev/web": "^0.14.0",
|
|
10
|
+
"e2e": "^0.19.0",
|
|
11
|
+
"@ai-sdk/openai": "^4.0.91",
|
|
12
|
+
"ai": "^7.0.137"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { appOpenSmoke } from '@synopackageland/cli/e2e';
|
|
2
|
+
|
|
3
|
+
// Keep a marker that appears only after your App has loaded its content.
|
|
4
|
+
// For a wrapped upstream, replace ready with its own selector or {text: '…'}.
|
|
5
|
+
appOpenSmoke({ ready: '[data-app-status], .dsmapp-facts dd, .binary-app, [data-app-ready]' });
|