@webship.co/workspace-demos 1.0.9 → 1.0.11
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.
|
@@ -18,4 +18,17 @@ shift $#;
|
|
|
18
18
|
trim_project_name ; # "v11x00b1/" -> "v11x00b1" — see functions/fun-project-name.sh
|
|
19
19
|
|
|
20
20
|
backup_workspace_item "${PROJECT_NAME}" || exit 1 ;
|
|
21
|
-
|
|
21
|
+
|
|
22
|
+
# The database goes beside the archive. A project that runs without one (an Astro or Gatsby site:
|
|
23
|
+
# omit_containers: [db]) has only its files to back up; ddev export-db would fail on it and leave
|
|
24
|
+
# an empty dump behind, which a restore then tries to import.
|
|
25
|
+
dump="${backups}/${doc_name}/${doc_name}---${PROJECT_NAME}--${BACKUP_TIME}-db.sql.gz" ;
|
|
26
|
+
if grep -qsE '^omit_containers:.*\bdb\b' ${PROJECT_NAME}/.ddev/config.yaml ${PROJECT_NAME}/.ddev/config.*.yaml ; then
|
|
27
|
+
echo "${PROJECT_NAME} runs without a database: its files are backed up, and there is no database to export." ;
|
|
28
|
+
exit 0 ;
|
|
29
|
+
fi
|
|
30
|
+
if ! (cd ${PROJECT_NAME} && ddev export-db --file="${dump}") ; then
|
|
31
|
+
[ -s "${dump}" ] || rm -f "${dump}" ;
|
|
32
|
+
echo "The database of ${PROJECT_NAME} could not be exported: only its files are backed up." ;
|
|
33
|
+
exit 1 ;
|
|
34
|
+
fi
|
package/features/demos.feature
CHANGED
|
@@ -7,23 +7,26 @@ Feature: The Demos workspace plugin
|
|
|
7
7
|
Then the element "h1" should be displayed
|
|
8
8
|
And "#webship-workspace-projects, .items-list, .workspace-page" should be attached
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# The Plugins page names each plugin; the package is on the plugin's own page (the row shows it on hover only).
|
|
11
|
+
Scenario: The plugin is listed on the Plugins page, and its own page names its package
|
|
11
12
|
Given I am on "/settings/plugins"
|
|
12
13
|
Then I should see "Demos"
|
|
13
|
-
|
|
14
|
+
When I go to "/settings/plugin/demos"
|
|
15
|
+
Then I should see "@webship.co/workspace-demos"
|
|
14
16
|
|
|
17
|
+
# The AI folders are searched by name: with every plugin on, a folder lists more than one page of items.
|
|
15
18
|
Scenario: The AI Agents folder lists the agent the plugin ships
|
|
16
|
-
Given I am on "/ai-agents"
|
|
19
|
+
Given I am on "/ai-agents?q=demos-site-builder"
|
|
17
20
|
Then I should see "demos-site-builder"
|
|
18
21
|
|
|
19
22
|
Scenario: The AI Skills folder lists the skill the plugin ships
|
|
20
|
-
Given I am on "/ai-skills"
|
|
23
|
+
Given I am on "/ai-skills?q=demos-workflow"
|
|
21
24
|
Then I should see "demos-workflow"
|
|
22
25
|
|
|
23
26
|
Scenario: The AI Commands folder lists the command the plugin ships
|
|
24
|
-
Given I am on "/ai-commands"
|
|
27
|
+
Given I am on "/ai-commands?q=demos-build"
|
|
25
28
|
Then I should see "demos-build"
|
|
26
29
|
|
|
27
30
|
Scenario: The AI Prompts folder lists the prompt the plugin ships
|
|
28
|
-
Given I am on "/ai-prompts"
|
|
31
|
+
Given I am on "/ai-prompts?q=demos-build-a-demo"
|
|
29
32
|
Then I should see "demos-build-a-demo"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webship.co/workspace-demos",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "The Demos workspace for Webship Workspace: the `demos/` folder (type sites), its settings file, its 27 commands, its docs and its AI items (an agent, a skill, a command and a prompt, each in the folder of its kind), activated as a plugin.",
|
|
5
5
|
"main": "dist/src/index.js",
|
|
6
6
|
"types": "dist/src/index.d.ts",
|